/* Extra interaction styles for /home-v2 React adaptations */

/* ---------- Grid helpers missing from base ---------- */
.xiomi-v2 .col-12,
.xiomi-v2 .col-xl-5 {
  flex: 0 0 auto;
  width: 100%;
}
@media (min-width: 1200px) {
  .xiomi-v2 .col-xl-5 { width: 41.666667%; }
}

/* ---------- Brand text (replaces image logo) ---------- */
.xiomi-v2 .xv2-brand-text {
  display: inline-flex;
  align-items: center;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--header, #1c1d20);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.xiomi-v2 .xv2-brand-text--footer {
  font-size: 28px;
  color: var(--white, #fff);
}
.xiomi-v2 .sticky.header-1 .xv2-brand-text,
.xiomi-v2 .sticky.header-1 .logo-2 .xv2-brand-text {
  color: var(--header, #1c1d20);
}

/* Navbar vertical height — match Xiomi reference padding */
.xiomi-v2 .header-main {
  padding: 10px 0;
}
.xiomi-v2 .header-main .main-menu ul li a {
  padding: 20px 0;
}
.xiomi-v2 .header-1 .logo {
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* =========================================================
   HERO — Xiomi composition: shape + portrait + text column CTAs
   ========================================================= */
.xiomi-v2 .hero-1 {
  /* Fill the viewport and pin the composition toward the bottom so leftover
     space sits under the navbar instead of as an empty strip below the hero. */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 72px !important;
  padding-bottom: 40px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  /* Keep green artwork inside the Hero — never paint into the Navbar */
  overflow: clip;
}

/* One unit: image, shapes, socials, copy, buttons — internal layout unchanged */
.xiomi-v2 .xv2-hero-stage {
  position: relative;
  width: 100%;
  padding-top: 48px;
  box-sizing: border-box;
}

/* Curved arrow — floating above “Hey There!” */
.xiomi-v2 .hero-1 .arrow-shape {
  top: 100px !important;
  left: 50% !important;
  z-index: 5;
  pointer-events: none;
}
@media (min-width: 1400px) {
  .xiomi-v2 .hero-1 .arrow-shape {
    left: 50% !important;
  }
}

/* Portrait column: left-aligned like Xiomi; figure wraps image + green shape */
.xiomi-v2 .xv2-hero-images {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.xiomi-v2 .xv2-hero-figure {
  position: relative;
  display: inline-block;
  max-width: min(100%, 520px);
  vertical-align: bottom;
  /* Nudge portrait + green down for navbar breathing room; size unchanged */
  transform: translateY(40px);
}

/* Slightly smaller than full natural size — image only, not the section */
.xiomi-v2 .xv2-hero-figure > img.xv2-portrait-img,
.xiomi-v2 .xv2-hero-images > img.xv2-portrait-img {
  position: relative;
  z-index: 2;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 620px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  display: block;
}

@media (max-width: 1199px) {
  .xiomi-v2 .xv2-hero-figure {
    max-width: 100%;
    transform: none;
  }
  .xiomi-v2 .xv2-hero-figure > img.xv2-portrait-img,
  .xiomi-v2 .xv2-hero-images > img.xv2-portrait-img {
    max-height: none !important;
  }
}

/* Green shape — same size; lowered so pieces sit mid-body (Xiomi gaps) */
.xiomi-v2 .hero-1 .xv2-hero-figure .hero-shape,
.xiomi-v2 .hero-1 .xv2-hero-images .hero-shape {
  position: absolute;
  left: -10px !important;
  /* Was 40px — drop behind torso so upper petal meets shoulder, not navbar */
  bottom: -48px !important;
  z-index: 1;
  width: 98% !important;
  max-width: none;
  transform: none;
  pointer-events: none;
}
.xiomi-v2 .hero-1 .xv2-hero-figure .hero-shape img,
.xiomi-v2 .hero-1 .xv2-hero-images .hero-shape img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  display: block;
}

@media (max-width: 1199px) {
  .xiomi-v2 .hero-1 .xv2-hero-figure .hero-shape,
  .xiomi-v2 .hero-1 .xv2-hero-images .hero-shape {
    display: none;
  }
}

/* Restore reference-scale typography */
.xiomi-v2 .xv2-hero-content {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  /* Slight downward shift of the whole text/CTA block only */
  transform: translateY(50px);
}
.xiomi-v2 .hero-1 .hero-content.xv2-hero-content h1,
.xiomi-v2 .hero-1 .xv2-hero-content h1 {
  font-size: 75px !important;
  line-height: 1.15 !important;
  margin-top: 10px !important;
  margin-bottom: 25px !important;
  max-width: 100%;
  overflow: visible;
}
.xiomi-v2 .xv2-hero-name {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
}
@media (max-width: 1199px) {
  .xiomi-v2 .hero-1 .hero-content.xv2-hero-content h1,
  .xiomi-v2 .hero-1 .xv2-hero-content h1 {
    font-size: 55px !important;
  }
}
@media (max-width: 767px) {
  .xiomi-v2 .hero-1 .hero-content.xv2-hero-content h1,
  .xiomi-v2 .hero-1 .xv2-hero-content h1 {
    font-size: 42px !important;
  }
}
@media (max-width: 575px) {
  .xiomi-v2 .hero-1 .hero-content.xv2-hero-content h1,
  .xiomi-v2 .hero-1 .xv2-hero-content h1 {
    font-size: 34px !important;
  }
}

/* Typed role: one line on desktop, no page overflow */
.xiomi-v2 .hero-1 .hero-content h1 .type-text {
  display: inline-block !important;
  position: relative;
  white-space: nowrap !important;
  min-width: 1ch;
  max-width: 100%;
  font-weight: 800;
  word-break: keep-all !important;
  overflow: visible;
  vertical-align: top;
  /* Smaller than the name so “Senior Software Engineer” stays one line */
  font-size: 0.62em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  min-height: 1.25em;
}
.xiomi-v2 .hero-1 .hero-content h1 .type-text .xv2-typed-measure {
  visibility: hidden;
  display: block;
  white-space: nowrap;
  pointer-events: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.xiomi-v2 .hero-1 .hero-content h1 .type-text .xv2-typed-live {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
@media (min-width: 1400px) {
  .xiomi-v2 .hero-1 .hero-content h1 .type-text {
    font-size: 0.68em;
  }
}
@media (max-width: 1199px) {
  .xiomi-v2 .hero-1 .hero-content h1 .type-text {
    font-size: 0.78em;
    white-space: normal !important;
  }
}
@media (max-width: 767px) {
  .xiomi-v2 .hero-1 .hero-content h1 .type-text {
    font-size: inherit;
  }
}
.xiomi-v2 .type-text .highlight {
  color: var(--text, #666666);
}

/* CTAs stay in the right text column, under description */
.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  position: relative;
  left: 0;
  margin-left: 0;
  transform: none;
}

/* Secondary hero CTA — LinkedIn, styled as a social action instead of a player */
.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper .xv2-linkedin-btn .icon {
  background: rgba(10, 169, 150, 0.12);
  border-color: rgba(10, 169, 150, 0.4);
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper .xv2-linkedin-btn .icon i {
  font-size: 20px;
  transition: color 0.3s ease-in-out;
}

.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper .xv2-linkedin-btn .text {
  color: var(--header, #1c1d20);
  transition: color 0.3s ease-in-out;
}

.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper .xv2-linkedin-btn:hover .icon {
  background: var(--theme, var(--accent-green, #0AA996));
  border-color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper .xv2-linkedin-btn:hover .icon i {
  color: var(--header, #1c1d20);
}

/* Side social links — mid-portrait on the left rail (relative to stage unit) */
.xiomi-v2 .hero-1 .hero-info {
  left: 80px !important;
  /* The trailing translateX runs along the rotated axis, so the rail stays
     centred on `top` no matter how many links it holds. */
  top: 58% !important;
  gap: 28px !important;
  z-index: 20;
  transform-origin: left center !important;
  transform: translateY(-50%) rotate(-90deg) translateX(-50%) !important;
}
@media (max-width: 1399px) {
  .xiomi-v2 .hero-1 .hero-info {
    left: 68px !important;
  }
}

/* Greeting star sits inline to the left of “Hey There!” */
.xiomi-v2 .hero-1 .xv2-hero-content > span {
  display: inline-flex;
  align-items: center;
}
.xiomi-v2 .hero-1 .xv2-hero-content > span img {
  display: block;
  flex-shrink: 0;
}
@media (max-width: 1199px) {
  .xiomi-v2 .hero-1 .hero-info {
    display: none !important;
  }
}

/* ---------- Hero entrance animations (Xiomi-style) ---------- */
@keyframes xv2-fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.xiomi-v2 .xv2-hero-fade {
  opacity: 0;
  animation: xv2-fade-in-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Sequence: greeting → name/role → description → CTAs */
.xiomi-v2 .xv2-hero-fade--delay-1 { animation-delay: 0.12s; }
.xiomi-v2 .xv2-hero-fade--delay-2 { animation-delay: 0.32s; }
.xiomi-v2 .xv2-hero-fade--delay-3 { animation-delay: 0.55s; }
.xiomi-v2 .xv2-hero-fade--delay-4 { animation-delay: 0.85s; }

.xiomi-v2 .xv2-hero-decor {
  animation-duration: 3s;
}

/* Ensure img-custom-anim-left ends in a stable resting state */
.xiomi-v2 .hero-1 .img-custom-anim-left {
  will-change: transform, opacity, clip-path;
}

/* ---------- Marquee (CTO rotating text — component commented out on page) ---------- */
.xiomi-v2 .xv2-marquee-track,
.xiomi-v2 .marquee-content.xv2-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: xv2-marquee 28s linear infinite;
}

@keyframes xv2-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer copyright: the base theme reserves 180px on the right for a link list
   this layout does not render, which leaves the text sitting left of center. */
.xiomi-v2 .footer-bottom .footer-bottom-wrapper.style-2 {
  justify-content: center;
  width: 100%;
}
.xiomi-v2 .footer-bottom .footer-bottom-wrapper.style-2 p {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  text-align: center;
}

/* ---------- Project logo slider ---------- */
.xiomi-v2 .xv2-brand-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.xiomi-v2 .xv2-brand-track {
  display: flex;
  width: max-content;
  animation: xv2-brand-marquee 64s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.xiomi-v2 .xv2-brand-set {
  --xv2-logo-gap: 60px;
  display: flex;
  align-items: center;
  gap: var(--xv2-logo-gap);
  flex: 0 0 auto;
  padding-right: var(--xv2-logo-gap);
}

.xiomi-v2 .xv2-brand-slot {
  width: 180px;
  height: 70px;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.xiomi-v2 .xv2-brand-marquee:hover .xv2-brand-track {
  animation-play-state: paused;
}

/* Identical display box for every mark. Intrinsic PNG size cannot affect layout. */
.xiomi-v2 .xv2-project-logo,
.xiomi-v2 .xv2-brand-slot .xv2-project-logo {
  display: block;
  width: 180px;
  height: 40px;
  max-width: 180px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0) invert(0.9);
  opacity: 0.92;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.xiomi-v2 .xv2-brand-slot:hover .xv2-project-logo {
  filter: none;
  opacity: 1;
}

.xiomi-v2 .client-section .social-media-area h4 {
  padding-right: 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes xv2-brand-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Portfolio cards ---------- */
.xiomi-v2 .xv2-project-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.xiomi-v2 .project-items-2 .images {
  height: 448px;
  overflow: hidden;
}

.xiomi-v2 .project-items-2 .images img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: all 0.4s ease-in-out;
}

@media (max-width: 1199px) {
  .xiomi-v2 .project-items-2 .images {
    height: 390px;
  }
}

@media (max-width: 991px) {
  .xiomi-v2 .project-items-2 .images {
    height: 320px;
  }
}

.xiomi-v2 .xv2-project-trigger .content h4 span {
  color: inherit;
  transition: color 0.3s ease;
}

.xiomi-v2 .xv2-project-trigger:hover .content h4 span {
  color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-portfolio-more {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  opacity: 0;
  overflow: hidden;
  overflow-anchor: none;
  transition: grid-template-rows 0.5s ease, opacity 0.35s ease;
}

.xiomi-v2 .xv2-portfolio-more.is-open {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
}

.xiomi-v2 .xv2-portfolio-more-inner {
  overflow: hidden;
  min-height: 0;
  overflow-anchor: none;
}

.xiomi-v2 .xv2-portfolio-more:not(.is-open) {
  pointer-events: none;
}

.xiomi-v2 .xv2-portfolio-toggle {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.xiomi-v2 button.theme-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.xiomi-v2 .project-items-2 .content .icon span {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--theme);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header);
  transform: rotate(-45deg);
  transition: all 0.4s ease-in-out;
  background: #eafff5;
}

.xiomi-v2 .project-items-2:hover .content .icon span,
.xiomi-v2 .xv2-project-trigger:hover .content .icon span {
  background-color: var(--theme);
  transform: rotate(0);
}

/* Full-viewport project details popup */
.xiomi-v2 .xv2-project-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.xiomi-v2 .xv2-project-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 29, 32, 0.55);
  cursor: pointer;
}

.xiomi-v2 .xv2-project-popup__panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 96vw);
  height: min(96vh, 100%);
  margin: auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.xiomi-v2 .xv2-project-popup__bar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.xiomi-v2 .xv2-project-popup__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28, 29, 32, 0.12);
  background: #fff;
  color: #1c1d20;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xiomi-v2 .xv2-project-popup__close:hover {
  background: var(--theme, var(--accent-green, #0AA996));
  border-color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-project-popup__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.xiomi-v2 .xv2-project-popup .project-details-images {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.xiomi-v2 .xv2-project-popup .project-details-content > span {
  display: inline-block;
  color: var(--theme, var(--accent-green, #0AA996));
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

/* ---------- FAQ accordion (content-driven height; no peek / no clip) ---------- */
.xiomi-v2 .xv2-faq-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}

.xiomi-v2 .xv2-faq-panel-inner {
  overflow: hidden;
}

.xiomi-v2 .faq-items .accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
}

.xiomi-v2 .faq-items .accordion-item .accordion-header .accordion-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 0;
  position: relative;
  padding-right: 56px;
  background: #fff;
}

.xiomi-v2 .faq-items .accordion-item .accordion-collapse .accordion-body {
  padding: 0 56px 20px 24px;
  position: relative;
}

.xiomi-v2 .faq-items .accordion-item .accordion-collapse .accordion-body p {
  margin: 0;
  color: var(--text, #666);
  line-height: 1.7;
}

/* Expand/collapse chevrons — same right rail on the question and the answer */
.xiomi-v2 .faq-items .xv2-faq-chevron {
  position: absolute;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme, var(--accent-green, #0AA996));
  background: rgba(10, 169, 150, 0.12);
  transition: transform 0.35s ease, background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.xiomi-v2 .faq-items .xv2-faq-chevron i {
  font-size: 12px;
  line-height: 1;
}

.xiomi-v2 .faq-items .accordion-button .xv2-faq-chevron {
  top: 50%;
  transform: translateY(-50%);
}

.xiomi-v2 .faq-items .accordion-button:not(.collapsed) .xv2-faq-chevron {
  transform: translateY(-50%) rotate(180deg);
  background: var(--theme, var(--accent-green, #0AA996));
  color: var(--header, #1c1d20);
}

.xiomi-v2 .faq-items .xv2-faq-chevron--answer {
  top: 0;
  width: 22px;
  height: 22px;
  background: none;
}

.xiomi-v2 .faq-items .xv2-faq-chevron--answer i {
  font-size: 10px;
}

/* ---------- Mobile-only responsive fixes (≤767px) ---------- */
@media (max-width: 767px) {
  /* 1) Hero: moderate reduction of empty space above “Hey There!” */
  .xiomi-v2 .hero-1 {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 64px !important;
    /* Room for the portrait translate so overflow:clip does not crop feet */
    padding-bottom: 32px !important;
  }

  .xiomi-v2 .xv2-hero-stage {
    padding-top: 16px;
  }

  .xiomi-v2 .xv2-hero-content {
    transform: none;
  }

  .xiomi-v2 .hero-1 .hero-content .hero-btn-wrapper {
    margin-top: 28px;
    margin-bottom: 4px;
  }

  /* 2) Hero: nudge person lower for bg alignment + button breathing room.
     Size/stretch unchanged — translate only. */
  .xiomi-v2 .xv2-hero-images {
    margin-top: 12px;
  }

  .xiomi-v2 .xv2-hero-figure {
    transform: translateY(24px);
  }

  /* 4) About: hide circular decorative element on mobile only */
  .xiomi-v2 .about-wrapper-2 .about-images .video {
    display: none;
  }

  /* 5) FAQ: keep chevron clear of question text */
  .xiomi-v2 .faq-items .accordion-item .accordion-header .accordion-button,
  .xiomi-v2 .faq-items .accordion-item .accordion-header .accordion-button.collapsed {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 58px;
  }

  .xiomi-v2 .faq-items .accordion-item .accordion-header .accordion-button::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
  }

  .xiomi-v2 .faq-items .xv2-faq-chevron {
    right: 14px;
  }
}

/* ---------- Service icons: inset artwork that fills its own viewBox ----------
   A square icon only stays inside the 70px circle while its half-diagonal is
   under the 35px radius, so cap the artwork box well below the circle width. */
.xiomi-v2 .service-card-items-2 .icon.xv2-icon-tight {
  padding: 13px;
  box-sizing: border-box;
  overflow: hidden;
}

.xiomi-v2 .service-card-items-2 .icon.xv2-icon-tight img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
}

/* ---------- Process icons centered ---------- */
.xiomi-v2 .work-wrapper .work-items .icon.xv2-work-icon,
.xiomi-v2 .work-wrapper .work-items .icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  place-content: center;
}

.xiomi-v2 .work-wrapper .work-items .icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0;
}

@media (max-width: 1199px) {
  .xiomi-v2 .work-wrapper .work-items .icon img {
    width: 25px;
    height: 25px;
  }
}

/* ---------- Testimonials — contained slider (override .mxg -500px overflow) ---------- */
.xiomi-v2 .testimonials-2 .mxg,
.xiomi-v2 .testimonials-2 .xv2-testimonial-slider {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.xiomi-v2 .xv2-testimonial-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.xiomi-v2 .xv2-testimonial-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.xiomi-v2 .xv2-testimonial-track {
  display: flex;
  transition: transform 0.55s ease;
  width: 100%;
}

.xiomi-v2 .xv2-testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.xiomi-v2 .xv2-testimonial-page {
  display: grid;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.xiomi-v2 .xv2-testimonial-page--2 {
  grid-template-columns: 1fr 1fr;
}

.xiomi-v2 .xv2-testimonial-page--1 {
  grid-template-columns: 1fr;
}

/* Equal top edge + equal height — kill Xiomi staggered margin-top */
.xiomi-v2 .xv2-testimonial-page .testimonials-item,
.xiomi-v2 .xv2-testimonial-page .testimonials-item.style-2 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.xiomi-v2 .xv2-testimonial-page .testimonials-item > p {
  flex: 1 1 auto;
}

/* Letter avatar — same circle size as photo thumbs */
.xiomi-v2 .testimonials-2 .testimonials-item .head .info .thumb .xv2-testimonial-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 169, 150, 0.14);
  color: var(--header, #1c1d20);
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

/* Align Testimonials badge with heading (override centered inline pill) */
.xiomi-v2 .testimonials-2 .section-title > .xv2-reveal:first-child {
  display: block;
  width: 100%;
  text-align: left !important;
}

.xiomi-v2 .testimonials-2 .section-title > .xv2-reveal:first-child span.style-2 {
  margin-left: 0;
}

.xiomi-v2 .xv2-testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.xiomi-v2 .xv2-dots {
  display: flex;
  gap: 8px;
}

.xiomi-v2 .xv2-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(28, 29, 32, 0.2);
  cursor: pointer;
}

.xiomi-v2 .xv2-dots button.active {
  background: var(--theme, var(--accent-green, #0AA996));
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 991px) {
  .xiomi-v2 .xv2-testimonial-page--2 {
    grid-template-columns: 1fr;
  }
  .xiomi-v2 .testimonials-2 .testimonials-item.style-2 {
    margin-top: 0;
  }
}

/* ---------- Section badges — pill above heading; icon inline in pill ---------- */
.xiomi-v2 .section-title > .xv2-reveal {
  display: block;
}

.xiomi-v2 .section-title span.style-2 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  vertical-align: middle;
}

.xiomi-v2 .section-title span.style-2 img,
.xiomi-v2 .section-title span.style-2 > span {
  display: inline-block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
}

/* ---------- Offcanvas / mobile menu ---------- */
/* Sit above .header-1 (z-index 9999) so the header logo/hamburger
   cannot paint over the drawer (duplicate name + dead close button). */
.xiomi-v2 .offcanvas__info {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 90vw);
  height: 100%;
  background: #fff;
  z-index: 100050;
  transform: translateX(-110%);
  transition: transform 0.35s ease;
  padding: 0;
  overflow-y: auto;
}

.xiomi-v2 .offcanvas__info.info-open {
  transform: translateX(0);
}

.xiomi-v2 .offcanvas__wrapper {
  padding: 20px 20px 24px;
  height: 100%;
  box-sizing: border-box;
}

.xiomi-v2 .offcanvas__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem !important;
  min-height: 45px;
}

.xiomi-v2 .offcanvas__logo {
  width: auto;
  max-width: calc(100% - 60px);
  flex: 1 1 auto;
  min-width: 0;
}

.xiomi-v2 .offcanvas__logo .xv2-brand-text {
  font-size: 20px;
}

.xiomi-v2 .offcanvas__close {
  position: relative;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  margin: 0;
  margin-left: auto;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--theme, #0AA996);
  z-index: 2;
  cursor: pointer;
  align-self: flex-start;
}

.xiomi-v2 .offcanvas__close button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.xiomi-v2 .offcanvas__close button i {
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}

.xiomi-v2 .offcanvas__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  z-index: 100040;
  transition: 0.3s ease;
}

.xiomi-v2 .offcanvas__overlay.overlay-open {
  opacity: 1;
  visibility: visible;
}

.xiomi-v2 .header__hamburger .sidebar__toggle {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: #1C1D20;
}

.xiomi-v2 .mobile-menu ul li {
  border-bottom: 1px solid rgba(102, 102, 102, 0.16);
  padding: 12px 0;
}

.xiomi-v2 .mobile-menu ul li button,
.xiomi-v2 .mobile-menu ul li a {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1C1D20;
  cursor: pointer;
}

.xiomi-v2 .col-lg-12 { flex: 0 0 auto; width: 100%; }

/* ---------- Contact form spacing ---------- */
.xiomi-v2 .contact-box .row > [class*="col-"] {
  margin-bottom: 16px;
}

.xiomi-v2 .contact-1 .contact-form .contact-box input,
.xiomi-v2 .contact-1 .contact-form .contact-box textarea {
  width: 100%;
}

/* ---------- Blog cards: reference-style image cards ---------- */
.xiomi-v2 .news-content-wrapper.xv2-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}

.xiomi-v2 .xv2-blog-grid__item,
.xiomi-v2 .news-content-wrapper.xv2-blog-grid > .xv2-reveal {
  height: 100%;
  display: flex;
}

.xiomi-v2 .xv2-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1.5px solid rgba(28, 29, 32, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.xiomi-v2 .xv2-blog-card:hover {
  border-color: rgba(10, 169, 150, 0.55);
  box-shadow: 0 12px 28px rgba(28, 29, 32, 0.06);
}

.xiomi-v2 .xv2-blog-card:focus-visible {
  outline: 2px solid var(--theme, var(--accent-green, #0AA996));
  outline-offset: 3px;
}

.xiomi-v2 .xv2-blog-card__thumb {
  flex: 0 0 auto;
  padding: 12px 12px 0;
  overflow: hidden;
}

.xiomi-v2 .xv2-blog-card__thumb img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  max-width: 100%;
  transition: transform 0.45s ease;
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__thumb img {
  transform: scale(1.04);
}

.xiomi-v2 .xv2-blog-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 22px;
  min-height: 0;
}

.xiomi-v2 .xv2-blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.xiomi-v2 .xv2-blog-card__meta li {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
}

.xiomi-v2 .xv2-blog-card__meta .green {
  color: var(--theme);
  font-weight: 600;
}

.xiomi-v2 .xv2-blog-card__meta li span {
  width: 5px;
  height: 5px;
  border-radius: 100px;
  background-color: var(--text);
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 3px;
  vertical-align: middle;
}

.xiomi-v2 .xv2-blog-card__body h4 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--header);
}

.xiomi-v2 .xv2-blog-card__body h4 a {
  color: inherit;
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__body h4 a {
  color: var(--header);
}

/* Card action: arrow stays left; "Read More" slides in to the right on hover */
.xiomi-v2 .xv2-blog-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  font-family: Manrope, "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--header, #1c1d20);
  transition: color 0.3s ease-in-out;
}

.xiomi-v2 .xv2-blog-card__more-text {
  display: grid;
  grid-template-columns: 0fr;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-columns 0.4s ease,
    margin-left 0.4s ease,
    opacity 0.35s ease;
}

.xiomi-v2 .xv2-blog-card__more-text > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-14px);
  transition: transform 0.4s ease;
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__more,
.xiomi-v2 .xv2-blog-card:focus-within .xv2-blog-card__more {
  color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__more-text,
.xiomi-v2 .xv2-blog-card:focus-within .xv2-blog-card__more-text {
  grid-template-columns: 1fr;
  margin-left: 12px;
  opacity: 1;
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__more-text > span,
.xiomi-v2 .xv2-blog-card:focus-within .xv2-blog-card__more-text > span {
  transform: translateX(0);
}

.xiomi-v2 .xv2-blog-card__more .xv2-blog-card__arrow {
  margin-top: 0;
}

.xiomi-v2 .xv2-blog-card__arrow {
  width: 44px;
  height: 44px;
  margin-top: auto;
  border: 1.5px solid var(--theme);
  border-radius: 100px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  flex: 0 0 auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.xiomi-v2 .xv2-blog-card__arrow i {
  font-size: 14px;
  transform: rotate(-45deg);
  line-height: 1;
}

.xiomi-v2 .xv2-blog-card:hover .xv2-blog-card__arrow,
.xiomi-v2 .xv2-blog-card__arrow:hover {
  background-color: var(--theme);
  color: var(--header);
}

@media (max-width: 1199px) {
  .xiomi-v2 .news-content-wrapper.xv2-blog-grid {
    gap: 20px;
  }

  .xiomi-v2 .xv2-blog-card__thumb img {
    height: 210px;
  }

  .xiomi-v2 .xv2-blog-card__body h4 {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .xiomi-v2 .news-content-wrapper.xv2-blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .xiomi-v2 .xv2-blog-card__thumb img {
    height: 240px;
  }
}

@media (max-width: 575px) {
  .xiomi-v2 .xv2-blog-card__thumb {
    padding: 10px 10px 0;
  }

  .xiomi-v2 .xv2-blog-card__thumb img {
    height: 200px;
  }

  .xiomi-v2 .xv2-blog-card__body {
    padding: 16px 16px 20px;
  }

  .xiomi-v2 .xv2-blog-card__body h4 {
    font-size: 18px;
  }
}

@media (max-width: 1199px) {
  .xiomi-v2 .mean__menu-wrapper {
    display: none;
  }
}

/* Bootstrap-like order utilities — must beat unscoped order-* from main.css */
@media (min-width: 992px) {
  .xiomi-v2 .order-lg-1 { order: 1 !important; }
  .xiomi-v2 .order-lg-2 { order: 2 !important; }
}
@media (max-width: 991.98px) {
  .xiomi-v2 .order-1 { order: 1 !important; }
  .xiomi-v2 .order-2 { order: 2 !important; }
}

/* About portrait — keep contained, not stretched */
.xiomi-v2 .about-wrapper-2 .about-images > img.xv2-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.xiomi-v2 .xv2-about-img-wait {
  opacity: 0;
}

/* ---------- Footer phone icon centered in circle ---------- */
.xiomi-v2 .footer-widget-wrapper .single-footer-widget .ph-items .icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.xiomi-v2 .footer-widget-wrapper .single-footer-widget .ph-items .icon img {
  display: block;
  margin: 0;
  max-width: none;
  height: auto;
}

.xiomi-v2 .footer-widget-wrapper .single-footer-widget .ph-items .ph-item {
  display: flex;
  align-items: center;
  line-height: 1;
}

.xiomi-v2 .footer-widget-wrapper .single-footer-widget .ph-items .ph-item a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.xiomi-v2 .footer-widget-wrapper .single-footer-widget .footer-address .socials .social-icon {
  margin-top: 0;
}

.xiomi-v2 .footer-widget-wrapper .single-footer-widget .footer-address h3 a {
  text-transform: none;
}

/* Email reads as contact text, not a display heading */
.xiomi-v2 .footer-widget-wrapper .single-footer-widget .footer-address h3.xv2-footer-email {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
  word-break: break-word;
}

@media (max-width: 575px) {
  .xiomi-v2 .footer-widget-wrapper .single-footer-widget .footer-address h3.xv2-footer-email {
    font-size: 16px;
  }
}

/* ---------- Blog article popup ---------- */
.xiomi-v2 .xv2-blog-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: xv2-blog-popup-in 0.28s ease;
}

@keyframes xv2-blog-popup-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.xiomi-v2 .xv2-blog-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 29, 32, 0.55);
  cursor: pointer;
}

.xiomi-v2 .xv2-blog-popup__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  height: min(92vh, 100%);
  max-height: 92vh;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: xv2-blog-panel-in 0.32s ease;
}

@keyframes xv2-blog-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.xiomi-v2 .xv2-blog-popup__bar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.xiomi-v2 .xv2-blog-popup__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28, 29, 32, 0.12);
  background: #fff;
  color: #1c1d20;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xiomi-v2 .xv2-blog-popup__close:hover {
  background: var(--theme, var(--accent-green, #0AA996));
  border-color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-blog-popup__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 29, 32, 0.22) transparent;
}

.xiomi-v2 .xv2-blog-popup__scroll::-webkit-scrollbar {
  width: 8px;
}

.xiomi-v2 .xv2-blog-popup__scroll::-webkit-scrollbar-thumb {
  background: rgba(28, 29, 32, 0.22);
  border-radius: 8px;
}

.xiomi-v2 .xv2-blog-article {
  padding: 8px 40px 48px;
  max-width: 100%;
}

.xiomi-v2 .xv2-blog-article__tag {
  display: inline-block;
  color: var(--theme, var(--accent-green, #0AA996));
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.xiomi-v2 .xv2-blog-article h2 {
  font-size: 36px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--header, #1c1d20);
}

.xiomi-v2 .xv2-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--text, #5c5f66);
  font-size: 14px;
  font-weight: 600;
}

.xiomi-v2 .xv2-blog-article__meta li {
  position: relative;
}

.xiomi-v2 .xv2-blog-article__meta li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text, #5c5f66);
  transform: translateY(-50%);
}

.xiomi-v2 .xv2-blog-article__image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  border: var(--border, 1px solid rgba(28, 29, 32, 0.08));
}

.xiomi-v2 .xv2-blog-article__image img {
  display: block;
  width: 100%;
  height: auto;
}

.xiomi-v2 .xv2-blog-article__body section {
  margin-bottom: 8px;
}

.xiomi-v2 .xv2-blog-article__body h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--header, #1c1d20);
}

.xiomi-v2 .xv2-blog-article__body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text, #5c5f66);
  margin: 0 0 16px;
}

@media (max-width: 991px) {
  .xiomi-v2 .xv2-blog-popup__panel {
    width: min(960px, 96vw);
    height: min(94vh, 100%);
    max-height: 94vh;
    border-radius: 14px;
  }

  .xiomi-v2 .xv2-blog-article {
    padding: 4px 24px 36px;
  }

  .xiomi-v2 .xv2-blog-article h2 {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .xiomi-v2 .xv2-blog-popup {
    align-items: stretch;
  }

  .xiomi-v2 .xv2-blog-popup__panel {
    width: 100vw;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }

  .xiomi-v2 .xv2-blog-article {
    padding: 0 18px 32px;
  }

  .xiomi-v2 .xv2-blog-article h2 {
    font-size: 24px;
  }

  .xiomi-v2 .xv2-blog-article__body h3 {
    font-size: 19px;
  }

  .xiomi-v2 .xv2-blog-article__body p {
    font-size: 15px;
  }
}

/* ---------- Services (black band) — tighter badge-to-pills gap + process rows ---------- */
.xiomi-v2 .experience-section-2 .experience-wrapper-2 > .section-title {
  margin-bottom: 36px;
}

.xiomi-v2 .experience-section-2 .experience-wrapper-2 > .section-title span.style-2 {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-ease-process {
  margin-top: 56px;
}

.xiomi-v2 .xv2-ease-process-title {
  text-align: center;
  color: var(--white);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 36px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.xiomi-v2 .xv2-ease-process-title span {
  color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-title {
  opacity: 1;
  transform: none;
}

.xiomi-v2 .xv2-ease-process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.xiomi-v2 .xv2-ease-process-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 22px 32px;
  border-radius: 16px;
  border: 1.5px solid rgba(102, 102, 102, 0.28);
  background: transparent;
  cursor: default;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    border-color 0.4s ease;
}

.xiomi-v2 .xv2-ease-process-row:hover {
  border-color: var(--theme, var(--accent-green, #0AA996));
}

.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-row {
  opacity: 1;
  transform: none;
}

.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-row:nth-child(1) {
  transition-delay: 0.12s, 0.12s, 0s;
}
.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-row:nth-child(2) {
  transition-delay: 0.28s, 0.28s, 0s;
}
.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-row:nth-child(3) {
  transition-delay: 0.44s, 0.44s, 0s;
}
.xiomi-v2 .xv2-ease-process.is-visible .xv2-ease-process-row:nth-child(4) {
  transition-delay: 0.6s, 0.6s, 0s;
}

.xiomi-v2 .xv2-ease-process-head {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 0 0 300px;
  min-width: 0;
}

.xiomi-v2 .xv2-ease-process-head span {
  flex-shrink: 0;
  color: #bbbbbc;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.xiomi-v2 .xv2-ease-process-head strong {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.xiomi-v2 .xv2-ease-process-row p {
  flex: 1 1 auto;
  margin: 0;
  max-width: 460px;
  color: #bbbbbc;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.xiomi-v2 .experience-section-2 .experience-wrapper-2 .xv2-ease-process + .xv2-reveal h6,
.xiomi-v2 .experience-section-2 .experience-wrapper-2 h6 {
  margin-top: 48px;
}

@media (max-width: 1199px) {
  .xiomi-v2 .xv2-ease-process-title {
    font-size: 34px;
  }
  .xiomi-v2 .xv2-ease-process-head {
    flex: 0 0 240px;
    gap: 22px;
  }
  .xiomi-v2 .xv2-ease-process-head strong {
    font-size: 20px;
  }
  .xiomi-v2 .xv2-ease-process-row {
    gap: 28px;
    padding: 20px 24px;
  }
}

@media (max-width: 991px) {
  .xiomi-v2 .xv2-ease-process {
    margin-top: 44px;
  }
  .xiomi-v2 .xv2-ease-process-title {
    font-size: 30px;
    margin-bottom: 28px;
  }
  .xiomi-v2 .xv2-ease-process-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 22px;
  }
  .xiomi-v2 .xv2-ease-process-head {
    flex: 1 1 auto;
    width: 100%;
    gap: 18px;
  }
  .xiomi-v2 .xv2-ease-process-row p {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .xiomi-v2 .experience-section-2 .experience-wrapper-2 > .section-title {
    margin-bottom: 22px;
  }
  .xiomi-v2 .xv2-ease-process-title {
    font-size: 26px;
  }
  .xiomi-v2 .xv2-ease-process-head strong {
    font-size: 18px;
  }
  .xiomi-v2 .xv2-ease-process-row p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xiomi-v2 .xv2-ease-process-title,
  .xiomi-v2 .xv2-ease-process-row {
    opacity: 1;
    transform: none;
    transition: border-color 0.4s ease;
  }
}

/* ---------- Portfolio details page ---------- */
.xiomi-v2 a.xv2-project-trigger {
  text-decoration: none;
  color: inherit;
}

.xiomi-v2 .xv2-portfolio-details {
  overflow-anchor: none;
}

html:has(.xv2-portfolio-details) {
  scroll-behavior: auto !important;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.xiomi-v2 .xv2-portfolio-details .project-details-section.section-padding {
  padding-top: 48px;
  padding-bottom: 72px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(250px, 0.95fr);
  gap: 28px 28px;
  align-items: start;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-hero,
.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside,
.xiomi-v2 .xv2-portfolio-details .xv2-pd-intro {
  min-width: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside > * {
  width: 100%;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .single-sidebar-widget {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  /* object-fit: cover; */
  object-position: center;
  border: 0;
  border-radius: 16px;
  display: block;
  background: transparent;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .single-sidebar-widget {
  padding: 24px 24px 18px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .single-sidebar-widget .wid-title {
  margin-bottom: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .single-sidebar-widget .wid-title h3 {
  margin-bottom: 0;
  padding-bottom: 14px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item:last-child {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item h6 {
  width: 108px;
  flex-shrink: 0;
  margin: 0;
  position: relative;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item span {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta {
  width: 100%;
  margin-top: 0;
  padding: 40px 36px 36px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 100%, rgba(167, 232, 198, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 0%, rgba(186, 220, 245, 0.75) 0%, transparent 50%),
    radial-gradient(ellipse 55% 50% at 55% 45%, rgba(245, 220, 230, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, #eef8f3 0%, #f4f8fb 42%, #f7f4f6 100%);
  box-shadow: 0 18px 40px rgba(28, 80, 60, 0.08), 0 4px 12px rgba(28, 80, 60, 0.04);
  text-align: left;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__heading {
  margin: 0;
  max-width: 14ch;
  color: #14261c;
  font-size: clamp(1.55rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__subheading {
  margin: 14px 0 0;
  color: #5a6560;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 28px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, #2aa86a 0%, #1f8a54 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 138, 84, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__btn i {
  font-size: 0.85em;
  transition: transform 0.25s ease;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__btn:hover {
  background: linear-gradient(180deg, #24965e 0%, #1a7848 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 138, 84, 0.34);
  transform: translateY(-1px);
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__btn:hover i {
  transform: translateX(3px);
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack {
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--white, #fff);
  border: 1.5px solid rgba(102, 102, 102, 0.12);
  border-radius: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack .wid-title {
  margin-bottom: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack .wid-title h3 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: var(--border-3, 1px solid rgba(102, 102, 102, 0.12));
  font-size: 22px;
  line-height: 1.3;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__name {
  color: var(--header, #1c1d20);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-intro {
  margin-top: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-kicker {
  display: inline-block;
  color: var(--text, #666);
  font-weight: 500;
  margin-bottom: 4px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-intro h2 {
  font-size: 36px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-intro p {
  margin-bottom: 14px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-intro p:last-child {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-portfolio-details h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list li {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list li:last-child {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list li img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  max-width: 18px;
  margin-top: 4px;
  display: block;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list li p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text, #666);
  font-weight: 400;
  line-height: 1.65;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-list li p strong {
  color: var(--header, #1c1d20);
  font-weight: 700;
  margin-right: 4px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-challenges {
  width: 100%;
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--white, #fff);
  border: 1.5px solid rgba(102, 102, 102, 0.12);
  border-radius: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-challenges h3 {
  margin-bottom: 14px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-highlights.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-highlight {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-highlight img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  /* object-fit: cover; */
  object-position: center;
  border: 0;
  border-radius: 16px;
  display: block;
  background: transparent;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-features {
  width: 100%;
  margin-top: 32px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-features-list li {
  margin-bottom: 12px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-outcome-card {
  width: 100%;
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--white, #fff);
  border: 1.5px solid rgba(102, 102, 102, 0.16);
  border-radius: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-outcome-card h3 {
  margin-bottom: 16px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
}

.xiomi-v2 .xv2-portfolio-details .xv2-outcome-list li {
  margin-bottom: 0;
}

.xiomi-v2 .xv2-portfolio-details .xv2-pd-closing {
  margin-top: 28px;
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .xiomi-v2 .xv2-portfolio-details .xv2-pd-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr);
    gap: 24px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-intro h2 {
    font-size: 32px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item h6 {
    width: 110px;
  }
}

@media (max-width: 991px) {
  .xiomi-v2 .xv2-portfolio-details .project-details-section.section-padding {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-main {
    gap: 24px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-intro {
    margin-top: 0;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside {
    gap: 18px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta {
    padding: 32px 28px 28px;
    border-radius: 24px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__heading {
    max-width: none;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-challenges,
  .xiomi-v2 .xv2-portfolio-details .xv2-pd-highlights,
  .xiomi-v2 .xv2-portfolio-details .xv2-pd-features,
  .xiomi-v2 .xv2-portfolio-details .xv2-outcome-card {
    margin-top: 28px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-highlights {
    gap: 16px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-outcome-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .xiomi-v2 .xv2-portfolio-details .xv2-pd-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-intro h2 {
    font-size: 28px;
  }

  .xiomi-v2 .xv2-portfolio-details h3 {
    font-size: 24px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-highlights {
    grid-template-columns: 1fr;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-challenges,
  .xiomi-v2 .xv2-portfolio-details .xv2-outcome-card {
    padding: 20px 16px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .project-info .item {
    flex-wrap: wrap;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-contact-cta__btn {
    width: 100%;
    max-width: 100%;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack {
    padding: 20px 16px 16px;
  }

  .xiomi-v2 .xv2-portfolio-details .xv2-pd-aside .xv2-pd-tech-stack__grid {
    gap: 14px 10px;
  }
}
