/* ============================================================
   Frameflow Creatives — Home & inner-page mobile optimization
   Load after home-hero.css on all pages with .home-page.
   Scoped to .frameflow-light.home-page only.
   ============================================================ */

/* Safe area + sticky CTA clearance: see mobile.css + theme.css */

/* ── Section rhythm (tighter on small screens) ─────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .flat-spacing {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .frameflow-light.home-page .flat-spacing.pt-0 {
    padding-top: 0;
  }

  .frameflow-light.home-page .heading-section.mb-64,
  .frameflow-light.home-page .heading-section.mb-80 {
    margin-bottom: 28px;
  }

  .frameflow-light.home-page .mt-48 {
    margin-top: 32px !important;
  }
}

@media (max-width: 480px) {
  .frameflow-light.home-page .flat-spacing {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* ── Header ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .frameflow-light.home-page .tf-header--cl {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .frameflow-light.home-page .tf-header .header-inner {
    margin-inline: 12px !important;
    padding: 10px 12px !important;
    min-height: 52px;
    gap: 12px;
  }

  .frameflow-light.home-page .tf-header .logo-site img {
    height: 32px;
    width: auto;
    max-width: min(168px, 46vw);
  }

  .frameflow-light.home-page .tf-header .mobile-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .frameflow-light.home-page .tf-header .header-inner {
    margin-inline: 10px !important;
  }

  .frameflow-light.home-page .tf-header .logo-site img {
    height: 28px;
    max-width: min(150px, 44vw);
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .frameflow-light.home-page .section-hero--frameflow {
    min-height: auto !important;
    padding: 10px 10px 0 !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-image {
    inset: 10px 10px 0 10px !important;
    border-radius: 24px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .container:not(.hero-trust-wrap) {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .content-wrap {
    padding: 12px 0 20px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact {
    max-width: none !important;
    margin-top: 4px;
  }
}

@media (max-width: 767px) {
  .frameflow-light.home-page .section-hero--frameflow .content-wrap h1.title {
    font-size: clamp(28px, 7.2vw, 34px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em;
    margin-bottom: 14px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .content-wrap h1 .title2 {
    margin-top: 6px;
    font-size: 0.94em;
  }

  .frameflow-light.home-page .section-hero--frameflow .content-wrap .sub {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .frameflow-light.home-page .section-hero--frameflow .content-wrap > .text {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-actions {
    gap: 10px;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-actions .tf-btn,
  .frameflow-light.home-page .section-hero--frameflow .hero-actions .tf-btn-2 {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Single-column form fields for easier tapping */
  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact {
    padding: 20px 18px 18px !important;
    border-radius: 20px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .form-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact input,
  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact textarea,
  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .nice-select {
    min-height: 46px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .tf-btn {
    min-height: 48px;
  }

  /* Trust band */
  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap {
    margin-top: 20px;
    padding-bottom: 16px;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__inner {
    padding: 14px 16px;
    border-radius: 16px;
    gap: 12px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__label {
    font-size: 14px;
    line-height: 1.45;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__list {
    width: 100%;
    gap: 8px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__list li,
  .frameflow-light.home-page .ff-trust-band__list li {
    white-space: normal;
    text-align: center;
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .frameflow-light.home-page .section-hero--frameflow {
    padding: 8px 8px 0 !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-image {
    inset: 8px 8px 0 8px !important;
    border-radius: 18px !important;
  }

  .frameflow-light.home-page .section-hero--frameflow .content-wrap h1.title {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
}

/* ── About ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .frameflow-light.home-page .section-about-us {
    min-height: auto !important;
  }
}

/* ── About testimonial card — no floating / 3D motion ─────── */
.frameflow-light.home-page .section-about-us .box-quotes {
  animation: none !important;
}

.frameflow-light.home-page .section-about-us .box-quotes::before {
  animation: none !important;
}

/* Client satisfaction box — always visible (PDF: 98% must show) */
.frameflow-light.home-page .section-about-us .ff-review-box:not(.is-revealed),
.frameflow-light.home-page .section-about-us .ff-review-box.is-revealed {
  opacity: 1 !important;
  visibility: visible !important;
}

.frameflow-light.home-page .section-about-us .ff-review-counter .number {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.frameflow-light.home-page .section-about-us .ff-review-counter:not(.is-counting) .number {
  opacity: 1 !important;
}

.frameflow-light.home-page .section-about-us .ff-review-counter.is-counting .number {
  opacity: 1;
  transition: opacity 0.25s ease;
}

@media (max-width: 767px) {
  .frameflow-light.home-page .section-about-us .heading-title br {
    display: none;
  }

  .frameflow-light.home-page .section-about-us .col-left .title {
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.2;
  }

  .frameflow-light.home-page .section-about-us .col-left {
    min-height: auto;
    border-radius: 20px;
    padding: 40px 20px 0;
  }

  .frameflow-light.home-page .ff-about-studio-card__content {
    padding: 0 18px;
  }

  .frameflow-light.home-page .ff-about-studio-card__lead {
    font-size: 15px;
  }

  .frameflow-light.home-page .section-about-us .col-left .sub {
    max-width: calc(100% - 8px);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    font-size: 13px;
  }

  .frameflow-light.home-page .ff-about-globe img {
    margin-top: -12px;
    border-radius: 0 0 20px 20px;
  }

  .frameflow-light.home-page .section-about-us .box-quotes {
    gap: 16px;
    padding: 20px 18px 22px !important;
    border-radius: 20px;
    animation: none !important;
    transform: none !important;
  }

  .frameflow-light.home-page .section-about-us .box-quotes::before {
    animation: none !important;
  }

  .frameflow-light.home-page .section-about-us .box-quotes .content {
    margin-top: 0;
    width: 100%;
  }

  .frameflow-light.home-page .section-about-us .box-quotes .image {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin-inline: auto;
    box-shadow: 0 12px 32px -12px rgba(19, 7, 45, 0.18);
  }

  .frameflow-light.home-page .section-about-us .box-quotes .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 16px;
  }

  .frameflow-light.home-page .section-about-us .box-quotes .desc {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .frameflow-light.home-page .section-about-us .box-quotes .cite {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .frameflow-light.home-page .section-about-us .review-box .counter {
    font-size: clamp(36px, 10vw, 48px);
  }
}

/* ── Working process ───────────────────────────────────────── */
@media (max-width: 991px) {
  .frameflow-light.home-page .ff-working-process {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .frameflow-light.home-page .ff-working-process__title {
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.15;
  }

  .frameflow-light.home-page .ff-working-process__head {
    margin-bottom: 32px;
  }

  .frameflow-light.home-page .ff-working-process__gallery {
    margin-bottom: 32px;
    padding-inline: 4px;
  }

  .frameflow-light.home-page .ff-wp-swiper .swiper-slide {
    width: auto;
  }
}

@media (max-width: 767px) {
  .frameflow-light.home-page .ff-working-process__lead {
    margin-bottom: 28px !important;
    font-size: 17px;
    line-height: 1.55;
  }

  .frameflow-light.home-page .ff-working-process__lead br {
    display: none;
  }

  .frameflow-light.home-page .ff-working-process__stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .frameflow-light.home-page .ff-working-process__stat-num {
    font-size: clamp(56px, 18vw, 80px) !important;
  }

  .frameflow-light.home-page .ff-working-process__stat-label {
    padding-bottom: 0 !important;
    font-size: 16px;
  }

  .frameflow-light.home-page .ff-working-process__step {
    gap: 14px !important;
    padding: 18px 16px 18px 14px !important;
    align-items: center !important;
  }

  .frameflow-light.home-page .ff-working-process__step-num {
    width: clamp(56px, 14vw, 72px);
    min-width: clamp(56px, 14vw, 72px);
    font-size: clamp(64px, 16vw, 84px) !important;
    line-height: 1 !important;
  }

  .frameflow-light.home-page .ff-working-process__step-body {
    padding-top: 0 !important;
  }

  .frameflow-light.home-page .ff-working-process__step-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .frameflow-light.home-page .ff-working-process__step-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .frameflow-light.home-page .ff-wp-marquee {
    margin-bottom: 0 !important;
  }
}

/* ── Value strip & partners ────────────────────────────────── */

/* Premium value strip — icons, cards, no bounce animation */
.frameflow-light.home-page .ff-value-strip {
  padding: clamp(28px, 4vw, 40px) 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(117, 85, 245, 0.06) 0%, transparent 58%),
    #faf9fc !important;
}

.frameflow-light.home-page .ff-value-strip__grid {
  gap: 16px;
}

.frameflow-light.home-page .ff-value-strip__item {
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(67, 38, 146, 0.09) !important;
  box-shadow:
    0 1px 2px rgba(19, 7, 45, 0.04),
    0 6px 20px -8px rgba(67, 38, 146, 0.1) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.frameflow-light.home-page .ff-value-strip__item:hover {
  transform: none !important;
  border-color: rgba(117, 85, 245, 0.22) !important;
  box-shadow:
    0 2px 4px rgba(19, 7, 45, 0.04),
    0 10px 28px -10px rgba(67, 38, 146, 0.16) !important;
}

.frameflow-light.home-page .ff-value-strip__icon {
  flex-shrink: 0;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  background:
    linear-gradient(145deg, #ffffff 0%, #f3eefb 52%, #ebe4f8 100%) !important;
  border: 1px solid rgba(117, 85, 245, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 12px -4px rgba(67, 38, 146, 0.22);
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.frameflow-light.home-page .ff-value-strip__item:hover .ff-value-strip__icon {
  transform: none !important;
  rotate: none !important;
  color: inherit !important;
  background:
    linear-gradient(145deg, #ffffff 0%, #f3eefb 52%, #ebe4f8 100%) !important;
  border-color: rgba(117, 85, 245, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 16px -4px rgba(171, 5, 228, 0.28);
}

.frameflow-light.home-page .ff-value-strip__icon svg,
.frameflow-light.home-page .ff-value-strip__icon img,
.frameflow-light.ff-about-page .ff-value-strip__icon svg,
.frameflow-light.ff-about-page .ff-value-strip__icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.frameflow-light.home-page .ff-value-strip__copy {
  min-width: 0;
  flex: 1;
}

.frameflow-light.home-page .ff-value-strip__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #13072d;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.frameflow-light.home-page .ff-value-strip__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(35, 35, 35, 0.68);
  margin: 0;
}

.frameflow-light.home-page .ff-value-strip__defs {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Partner logo marquee — seamless CSS loop (no reset jump) ─ */
.frameflow-light.home-page .ff-partner-marquee {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.frameflow-light.home-page .ff-partner-marquee__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.frameflow-light.home-page .ff-partner-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ff-partner-marquee-scroll 32s linear infinite;
}

.frameflow-light.home-page .ff-partner-marquee__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(48px, 7vw, 72px);
  padding-right: clamp(48px, 7vw, 72px);
}

.frameflow-light.home-page .ff-partner-marquee__set img {
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity 0.3s ease;
}

.frameflow-light.home-page .ff-partner-marquee__set img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

@keyframes ff-partner-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frameflow-light.home-page .ff-partner-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 24px 40px;
  }

  .frameflow-light.home-page .ff-partner-marquee__set[aria-hidden="true"] {
    display: none;
  }

  .frameflow-light.home-page .ff-partner-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .frameflow-light.home-page .ff-services-marquee__slide,
  .frameflow-light.home-page .ff-wp-marquee__slide {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 14px !important;
    overflow: visible !important;
  }

  .frameflow-light.home-page .ff-services-marquee .infiniteslide_clone,
  .frameflow-light.home-page .ff-wp-marquee__slide .infiniteslide_clone {
    display: none !important;
  }
}

/* ── Services dual marquee — seamless + premium styling ─────── */
.frameflow-light.home-page .ff-services-marquee {
  overflow: hidden;
  margin-block: 0;
}

.frameflow-light.home-page .ff-services-marquee__row {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.frameflow-light.home-page .ff-services-marquee__row--dark {
  background: linear-gradient(90deg, #5a38d4 0%, #7555f5 38%, #9b3fd4 68%, #bc28f5 100%);
  box-shadow:
    0 4px 24px -8px rgba(67, 38, 146, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.frameflow-light.home-page .ff-services-marquee__row--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%, transparent 65%, rgba(255, 255, 255, 0.04) 100%);
  z-index: 0;
}

.frameflow-light.home-page .ff-services-marquee__row--light {
  background: linear-gradient(90deg, #ebe6ff 0%, #e4d9ff 50%, #ebe6ff 100%);
  border-top: 1px solid rgba(67, 38, 146, 0.08);
  border-bottom: 1px solid rgba(67, 38, 146, 0.06);
}

.frameflow-light.home-page .ff-services-marquee__slide {
  position: relative;
  z-index: 1;
}

.frameflow-light.home-page .ff-services-marquee__slide.infiniteslide_clone,
.frameflow-light.home-page .ff-services-marquee .infiniteslide_wrap {
  position: relative;
  z-index: 1;
}

.frameflow-light.home-page .ff-services-marquee__item {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 2.2vw, 18px) clamp(28px, 4vw, 44px) !important;
  font-family: "Inter", sans-serif;
  font-size: clamp(15px, 1.8vw, 20px) !important;
  font-weight: 700;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit;
}

.frameflow-light.home-page .ff-services-marquee__text {
  display: inline-block;
  color: inherit;
  -webkit-text-fill-color: currentColor !important;
}

.frameflow-light.home-page .ff-services-marquee__row--dark .ff-services-marquee__item {
  color: #fff !important;
}

.frameflow-light.home-page .ff-services-marquee__row--dark .ff-services-marquee__text {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(19, 7, 45, 0.18);
}

.frameflow-light.home-page .ff-services-marquee__row--dark .ff-services-marquee__item .icon {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 0.95;
}

.frameflow-light.home-page .ff-services-marquee__row--light .ff-services-marquee__item {
  color: #13072d !important;
}

.frameflow-light.home-page .ff-services-marquee__row--light .ff-services-marquee__text {
  color: #13072d !important;
}

.frameflow-light.home-page .ff-services-marquee__row--light .ff-services-marquee__item .icon {
  font-size: 12px;
  color: #432692 !important;
  opacity: 0.75;
}

.frameflow-light.home-page .ff-services-marquee__dot {
  display: none;
}

@media (max-width: 767px) {
  .frameflow-light.home-page .ff-services-marquee__item {
    gap: 10px;
    padding: 13px 24px !important;
    font-size: 15px !important;
  }
}

/* ── Tools strip — polished Adobe tool chips ───────────────── */
.frameflow-light.home-page .ff-tools-strip {
  padding: clamp(32px, 4vw, 44px) 0 !important;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(117, 85, 245, 0.05) 0%, transparent 62%),
    #faf9fc !important;
  border-top: 1px solid rgba(67, 38, 146, 0.08);
}

.frameflow-light.home-page .ff-tools-strip__label {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(67, 38, 146, 0.72);
}

.frameflow-light.home-page .ff-tools-strip__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.frameflow-light.home-page .ff-tools-strip__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  margin: 0;
  padding: 16px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(67, 38, 146, 0.1);
  box-shadow:
    0 1px 2px rgba(19, 7, 45, 0.04),
    0 4px 14px -6px rgba(67, 38, 146, 0.12);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #13072d;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.frameflow-light.home-page .ff-tools-strip__chip-logo {
  flex-shrink: 0;
  display: block;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 2px 8px -4px rgba(19, 7, 45, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.frameflow-light.home-page .ff-tools-strip__logos .ff-tools-strip__chip-label {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #13072d !important;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  transform: none !important;
  hyphens: none;
}

.frameflow-light.home-page .ff-tools-strip__chip:hover .ff-tools-strip__chip-label {
  color: #13072d !important;
  transform: none !important;
}

.frameflow-light.home-page .ff-tools-strip__chip:hover {
  transform: none !important;
  border-color: rgba(117, 85, 245, 0.22);
  box-shadow:
    0 2px 4px rgba(19, 7, 45, 0.04),
    0 8px 20px -8px rgba(67, 38, 146, 0.16);
}

.frameflow-light.home-page .ff-tools-strip__chip:hover .ff-tools-strip__chip-logo {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(67, 38, 146, 0.22);
}

@media (min-width: 992px) {
  .frameflow-light.home-page .ff-value-strip__grid {
    gap: 18px;
  }

  .frameflow-light.home-page .ff-value-strip__item {
    padding: 18px 16px !important;
  }
}

@media (max-width: 767px) {
  .frameflow-light.home-page .ff-value-strip {
    padding: 24px 0;
  }

  .frameflow-light.home-page .ff-value-strip__grid {
    gap: 12px;
  }

  .frameflow-light.home-page .ff-value-strip__item {
    padding: 16px !important;
  }

  .frameflow-light.home-page .ff-value-strip__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .frameflow-light.home-page .ff-value-strip__icon svg,
  .frameflow-light.home-page .ff-value-strip__icon img {
    width: 20px;
    height: 20px;
  }

  .frameflow-light.home-page .ff-value-strip__title {
    font-size: 14px;
  }

  .frameflow-light.home-page .ff-value-strip__text {
    font-size: 13px;
  }

  .frameflow-light.home-page .section-partner.ff-ref-partner {
    padding: 20px 0 24px;
  }

  .frameflow-light.home-page .section-partner.ff-ref-partner .partner-wrap {
    padding: 24px 0 28px;
    gap: 18px;
  }

  .frameflow-light.home-page .section-partner.ff-ref-partner .partner-wrap > p,
  .frameflow-light.home-page .section-partner.ff-ref-partner .ff-partner-eyebrow {
    max-width: 320px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .frameflow-light.home-page .ff-partner-marquee__set {
    gap: clamp(32px, 8vw, 48px);
    padding-right: clamp(32px, 8vw, 48px);
  }

  .frameflow-light.home-page .ff-partner-marquee__set img {
    height: 28px;
    max-width: 110px;
  }

  .frameflow-light.home-page .ff-partner-marquee__track {
    animation-duration: 28s;
  }

  .frameflow-light.home-page .ff-tools-strip {
    padding: 28px 0;
  }

  .frameflow-light.home-page .ff-tools-strip__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .frameflow-light.home-page .ff-tools-strip__chip {
    min-height: 104px;
    padding: 14px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .frameflow-light.home-page .ff-tools-strip__logos .ff-tools-strip__chip-label {
    font-size: 12px;
    line-height: 1.35;
  }

  .frameflow-light.home-page .ff-tools-strip__chip-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
  }
}

/* ── Services heading — gradient clip shows as solid bar when text is hidden ─ */
.frameflow-light.home-page .section-services .heading-title,
.frameflow-light.home-page .section-services .heading-title.text-gradient-3,
.frameflow-light.home-page .section-services .heading-title.ff-services-heading {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #13072d !important;
  color: #13072d !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.frameflow-light.home-page .section-services .heading-title > div,
.frameflow-light.home-page .section-services .heading-title .ff-rev-word,
.frameflow-light.home-page .section-services .heading-title .ff-rev-char {
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  color: inherit !important;
}

.frameflow-light.home-page .section-services .heading-section.mb-48 {
  margin-bottom: clamp(20px, 5vw, 32px);
}

/* ── Services intro copy — prevent horizontal clip on mobile ─ */
.frameflow-light.home-page .section-services .top {
  overflow: visible !important;
}

.frameflow-light.home-page .section-services .top > .text,
.frameflow-light.home-page .section-services .ff-services-intro__desc {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: clamp(2px, 1.5vw, 8px);
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: clamp(15px, 3.8vw, 16px);
  line-height: 1.65;
  color: var(--secondary, rgba(35, 35, 35, 0.75));
}

.frameflow-light.home-page .section-services .top .overflow-hidden {
  overflow: visible !important;
  width: 100% !important;
  max-width: none !important;
}

/* ── Services accordion ────────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .section-services .accordion-faq_list.gap-32 {
    gap: 16px;
  }

  .frameflow-light.home-page .section-services .accordion-faq_item {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .frameflow-light.home-page .section-services .accordion-faq_item .accordion-title {
    font-size: 22px;
    line-height: 1.25;
    gap: 12px;
  }

  .frameflow-light.home-page .section-services .accordion-faq_item.style-1 .accordion-content {
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .frameflow-light.home-page .section-services .list-tags {
    flex-wrap: wrap;
    gap: 8px;
  }

  .frameflow-light.home-page .ff-services-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
    border-radius: 18px;
  }

  .frameflow-light.home-page .ff-services-banner__title {
    font-size: 18px;
  }

  .frameflow-light.home-page .ff-services-banner .tf-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

/* ── Projects & showreel ───────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .ff-ref-projects {
    padding-top: 44px;
  }

  .frameflow-light.home-page .ff-ref-section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
  }

  .frameflow-light.home-page .ff-ref-section-head .tf-btn-2 {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .frameflow-light.home-page .ff-ref-title {
    font-size: clamp(26px, 6.5vw, 32px);
    max-width: none;
  }

  .frameflow-light.home-page .ff-showreel__media {
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }

  .frameflow-light.home-page .ff-showreel__label {
    font-size: 14px;
  }
}

/* ── Testimonials & motto ──────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .ff-tes-carousel {
    padding-bottom: 44px;
  }

  .frameflow-light.home-page .ff-tes-carousel__title {
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.2;
  }

  .frameflow-light.home-page .ff-tes-carousel .tes-item {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .frameflow-light.home-page .ff-home-motto {
    padding: 48px 16px;
  }

  .frameflow-light.home-page .ff-home-motto__title {
    font-size: clamp(26px, 6.8vw, 36px);
    line-height: 1.22;
  }

  .frameflow-light.home-page .ff-home-motto__desc {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.6;
  }
}

/* ── Team ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .ff-team-ref {
    padding-top: 44px;
  }

  .frameflow-light.home-page .ff-team-ref__title {
    font-size: clamp(26px, 6.5vw, 32px);
  }

  .frameflow-light.home-page .ff-team-ref__intro .tf-btn-2 {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* Stats band — single-column card, full width on all phones */
  .frameflow-light.home-page .ff-team-ref__stats {
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
  }

  .frameflow-light.home-page .ff-team-ref__stats > .container {
    padding-inline: 0;
    max-width: 100%;
  }

  .frameflow-light.home-page .ff-team-ref__stats-bar {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    padding: 4px 0 8px;
    border-radius: 22px;
    gap: 0 !important;
    background:
      radial-gradient(ellipse 90% 80% at 50% -20%, rgba(155, 127, 255, 0.22) 0%, transparent 55%),
      linear-gradient(160deg, #3d2e8a 0%, #3a1f9e 48%, #302570 100%);
    box-shadow:
      0 20px 48px -16px rgba(42, 27, 110, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .frameflow-light.home-page .ff-team-ref__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 26px 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(245, 244, 248, 0.14);
    -webkit-tap-highlight-color: transparent;
  }

  .frameflow-light.home-page .ff-team-ref__stat:last-child {
    border-bottom: none;
    padding-bottom: 28px;
  }

  .frameflow-light.home-page .ff-team-ref__stat:first-child {
    padding-top: 28px;
  }

  .frameflow-light.home-page .ff-team-ref__stat__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 21px;
    flex-shrink: 0;
    margin-bottom: 2px;
  }

  .frameflow-light.home-page .ff-team-ref__stat__num {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: clamp(32px, 8.5vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }

  .frameflow-light.home-page .ff-team-ref__stat__num .number {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .frameflow-light.home-page .ff-team-ref__stat__label {
    font-size: clamp(13px, 3.4vw, 14px);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(245, 244, 248, 0.85);
    max-width: 18em;
    text-wrap: balance;
    letter-spacing: 0.01em;
  }

  @media (hover: none) {
    .frameflow-light.home-page .ff-team-ref__stat:hover {
      transform: none;
    }

    .frameflow-light.home-page .ff-team-ref__stat:hover .ff-team-ref__stat__icon {
      transform: none;
    }
  }
}

@media (max-width: 479px) {
  .frameflow-light.home-page .ff-team-ref__stats {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }

  .frameflow-light.home-page .ff-team-ref__stats-bar {
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-team-ref__stat {
    min-height: 120px;
    padding: 22px 16px;
    gap: 8px;
  }

  .frameflow-light.home-page .ff-team-ref__stat:first-child {
    padding-top: 24px;
  }

  .frameflow-light.home-page .ff-team-ref__stat:last-child {
    padding-bottom: 24px;
  }

  .frameflow-light.home-page .ff-team-ref__stat__icon {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .frameflow-light.home-page .ff-team-ref__stat__num {
    font-size: clamp(28px, 7.8vw, 34px);
  }

  .frameflow-light.home-page .ff-team-ref__stat__label {
    font-size: 13px;
  }
}

@media (max-width: 359px) {
  .frameflow-light.home-page .ff-team-ref__stat {
    min-height: 112px;
    padding: 20px 12px;
  }

  .frameflow-light.home-page .ff-team-ref__stat__label {
    font-size: 12px;
    max-width: 14em;
  }
}

/* ── Pricing ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .section-pricing .heading-section.mb-80 {
    margin-bottom: 32px;
  }

  .frameflow-light.home-page .section-pricing .heading-title br {
    display: none;
  }

  .frameflow-light.home-page .ff-pricing-plan {
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-pricing-custom__inner {
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-pricing-custom__actions .tf-btn,
  .frameflow-light.home-page .ff-pricing-custom__actions .tf-btn-2 {
    min-height: 48px;
  }
}

/* ── CTA band + contact spacing ─────────────────────────────── */
.frameflow-light.home-page .section-faqs.flat-spacing {
  padding-top: clamp(28px, 3.5vw, 40px) !important;
  padding-bottom: clamp(40px, 5vw, 56px) !important;
}

.frameflow-light.home-page .ff-cta-department-section,
.frameflow-light.home-page .ff-cta-department-section.flat-spacing {
  padding-top: clamp(40px, 5vw, 56px) !important;
  padding-bottom: clamp(40px, 5vw, 56px) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6fc 100%);
}

.frameflow-light.home-page .ff-cta-department-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.frameflow-light.home-page .ff-cta-department {
  width: 100%;
  margin-inline: auto;
}

.frameflow-light.home-page .ff-cta-department__inner {
  margin-inline: auto;
  text-align: center;
}

.frameflow-light.home-page .ff-cta-department__title,
.frameflow-light.home-page .ff-cta-department__text {
  margin-inline: auto;
  text-align: center;
}

.frameflow-light.home-page .ff-contact-section,
.frameflow-light.home-page .ff-contact-section.flat-spacing {
  padding-top: clamp(48px, 6vw, 72px) !important;
  padding-bottom: clamp(48px, 6vw, 72px) !important;
  background: linear-gradient(180deg, #211247 0%, #432691 100%) !important;
  border-top: none !important;
}

.frameflow-light.home-page .ff-contact-section .row {
  align-items: stretch !important;
}

@media (min-width: 992px) {
  .frameflow-light.home-page .ff-contact-section .row > .col-lg-6 {
    display: flex;
    flex-direction: column;
  }

  .frameflow-light.home-page .ff-contact-visual {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100% !important;
  }

  .frameflow-light.home-page .ff-contact-visual__panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100% !important;
  }

  .frameflow-light.home-page .ff-contact-visual__channels {
    margin-top: auto;
  }

  .frameflow-light.home-page .ff-contact-form-wrap {
    flex: 1 1 auto;
    height: 100% !important;
    align-self: stretch !important;
  }
}

.frameflow-light.home-page .ff-contact-form-wrap {
  padding: clamp(24px, 3vw, 40px) !important;
}

.frameflow-light.home-page .ff-contact-form {
  margin-bottom: 0;
}

.frameflow-light.home-page .ff-contact-form .form-contact__desc {
  margin-bottom: 20px !important;
}

.frameflow-light.home-page .ff-contact-form fieldset.mb-21 {
  margin-bottom: 14px !important;
}

.frameflow-light.home-page .ff-contact-form fieldset.mb-18 {
  margin-bottom: 0 !important;
}

.frameflow-light.home-page .ff-contact-form textarea {
  min-height: 96px !important;
}

@media (min-width: 992px) {
  .frameflow-light.home-page .ff-contact-form textarea {
    height: auto !important;
    min-height: 140px !important;
  }
}

.frameflow-light.home-page .ff-contact-form .tf-btn {
  margin-top: 4px;
}

.frameflow-light.home-page .ff-contact-visual__grid {
  margin: 20px 0;
}

.frameflow-light.home-page .ff-contact-visual__channels {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ── FAQ, CTA band, contact (mobile) ─────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .section-faqs .heading-title {
    font-size: 30px;
    line-height: 1.18;
  }

  .frameflow-light.home-page .section-faqs.flat-spacing {
    padding-bottom: 32px !important;
  }

  .frameflow-light.home-page .ff-cta-department-section,
  .frameflow-light.home-page .ff-cta-department-section.flat-spacing {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .frameflow-light.home-page .ff-cta-department {
    min-height: unset;
    padding: clamp(40px, 10vw, 52px) 20px;
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-cta-department__inner {
    gap: 16px;
  }

  .frameflow-light.home-page .ff-cta-department__title {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .frameflow-light.home-page .ff-cta-department .tf-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .frameflow-light.home-page .ff-contact-section,
  .frameflow-light.home-page .ff-contact-section.flat-spacing {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .frameflow-light.home-page .ff-contact-section .col-lg-6:first-child {
    display: block;
  }

  .frameflow-light.home-page .ff-contact-visual__channels {
    margin-top: 16px;
  }

  .frameflow-light.home-page .ff-contact-visual__panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-contact-visual__title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .frameflow-light.home-page .ff-contact-visual__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .frameflow-light.home-page .ff-contact-form-wrap {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .frameflow-light.home-page .ff-contact-form input,
  .frameflow-light.home-page .ff-contact-form textarea,
  .frameflow-light.home-page .ff-contact-form .nice-select {
    font-size: 16px;
    min-height: 46px;
  }
}

/* ── Resources / blog journal (homepage) ───────────────────── */
@media (max-width: 991px) {
  .frameflow-light.home-page .ff-blog-journal {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .frameflow-light.home-page .ff-blog-journal__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .frameflow-light.home-page .ff-blog-journal__card {
    padding: 12px;
  }
}

@media (max-width: 575px) {
  .frameflow-light.home-page .ff-blog-journal__mobile-cta .ff-blog-journal__cta {
    width: 100%;
    justify-content: center;
  }

  .frameflow-light.home-page .ff-blog-journal__mobile-cta .ff-blog-journal__cta-text {
    flex: 1;
    justify-content: center;
  }
}

/* ── Footer CTA (homepage) ───────────────────────────────────── */
@media (max-width: 767px) {
  .frameflow-light.home-page .ff-site-footer__cta-card {
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }

  .frameflow-light.home-page .ff-site-footer__cta-actions {
    flex-direction: column;
    gap: 10px;
  }

  .frameflow-light.home-page .ff-site-footer__cta-actions .tf-btn,
  .frameflow-light.home-page .ff-site-footer__cta-actions .tf-btn-2 {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

/* ── Edge containers ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .frameflow-light.home-page .container,
  .frameflow-light.home-page .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
}
