/* Frameflow homepage — final polish layer (load last) */

/* ── Section rhythm ─────────────────────────────────────────── */
.frameflow-light.home-page .section-about-us {
  padding-top: clamp(48px, 6vw, 72px);
}

.frameflow-light.home-page .ff-value-strip {
  margin-block: 0;
}

.frameflow-light.home-page .ff-showreel {
  padding-top: clamp(32px, 4vw, 48px);
}

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

.frameflow-light.home-page .ff-tes-carousel {
  padding-bottom: clamp(48px, 6vw, 72px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.frameflow-light.home-page .section-hero--frameflow {
  min-height: auto;
  padding-bottom: 16px;
}

.frameflow-light.home-page .section-hero--frameflow .hero-image {
  background-position: 58% 42%;
  background-size: cover;
}

.frameflow-light.home-page .section-hero--frameflow .container:not(.hero-trust-wrap) {
  padding-top: clamp(24px, 3.5vw, 40px);
  padding-bottom: clamp(8px, 1.5vw, 16px) !important;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap {
  padding: clamp(16px, 2vw, 24px) clamp(8px, 2vw, 20px) clamp(12px, 2vw, 20px) 0 !important;
  max-width: 580px;
}

.frameflow-light.home-page .section-hero--frameflow .row {
  align-items: center;
}

.frameflow-light.home-page .section-hero--frameflow .col-lg-5 {
  display: flex;
  justify-content: center;
  padding-left: clamp(12px, 2vw, 24px);
  padding-right: clamp(8px, 1.5vw, 16px);
}

/* Hide legacy scroll tab — trust bar is the hero footer */
.frameflow-light.home-page .section-hero--frameflow .scroll-more {
  display: none !important;
}

/* Headline — clean two-tone, no muddy gradient */
.frameflow-light.home-page .section-hero--frameflow .content-wrap h1.title {
  margin-bottom: 16px;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap h1 .title1,
.frameflow-light.home-page .section-hero--frameflow .content-wrap h1 .title2 {
  display: block;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap h1 .title1 {
  color: #432692;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap h1 .title2 {
  color: #13072d;
  margin-top: 8px;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap .sub {
  margin-bottom: 18px;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap .sub::before {
  background: #432692 !important;
  box-shadow: 0 0 0 3px rgba(67, 38, 146, 0.2) !important;
}

.frameflow-light.home-page .section-hero--frameflow .content-wrap > .text {
  max-width: 32em;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(35, 35, 35, 0.82);
  margin-bottom: 24px;
}

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

/* Compact contact form */
.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact {
  width: 100%;
  max-width: 392px;
  margin: 0;
  padding: 20px 20px 18px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 16px 40px -18px rgba(19, 7, 45, 0.22),
    0 0 0 1px rgba(67, 38, 146, 0.05) inset !important;
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact::before {
  opacity: 0.25;
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .form-title {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #13072d;
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact .form-desc {
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.45;
  color: rgba(35, 35, 35, 0.72);
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact fieldset {
  margin-bottom: 0 !important;
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact label {
  font-size: 12px;
  margin-bottom: 5px !important;
  color: #13072d;
}

.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: 42px;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 10px;
  border-color: rgba(67, 38, 146, 0.14) !important;
  background: #fff !important;
}

.frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact textarea {
  min-height: 64px;
  resize: vertical;
}

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

/* Trust band — integrated hero footer */
.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap {
  position: relative;
  z-index: 6;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
}

.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__inner {
  background: linear-gradient(90deg, #13072d 0%, #2a1366 52%, #1e0f45 100%);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 10px 32px -14px rgba(19, 7, 45, 0.45);
}

.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__label {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.4;
}

.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__list li {
  font-size: 13px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 !important;
  flex: 0 0 auto;
}

.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__label {
  color: #fff;
}

@media (max-width: 991px) {
  .frameflow-light.home-page .section-hero--frameflow .content-wrap {
    padding: 8px 0 16px;
    max-width: none;
  }

  .frameflow-light.home-page .section-hero--frameflow .col-lg-5 {
    padding-inline: 0;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-contact-form--compact {
    max-width: none;
  }

  .frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__inner {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}

@media (max-width: 767px) {
  .frameflow-light.home-page .section-hero--frameflow .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Working process ─────────────────────────────────────────── */
.frameflow-light.home-page .ff-working-process {
  background: linear-gradient(180deg, #211247 0%, #432691 100%);
  position: relative;
  overflow: hidden;
}

.frameflow-light.home-page .ff-working-process::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.frameflow-light.home-page .ff-working-process > .container,
.frameflow-light.home-page .ff-working-process__gallery {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .frameflow-light.home-page .ff-working-process {
    padding-top: clamp(60px, 7vw, 96px) !important;
  }
}

@media (min-width: 1440px) {
  .frameflow-light.home-page .ff-working-process {
    padding-top: clamp(64px, 6vw, 88px) !important;
  }
}

.frameflow-light.home-page .ff-working-process__eyebrow {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frameflow-light.home-page .ff-working-process__eyebrow span {
  color: rgba(255, 255, 255, 0.65) !important;
  letter-spacing: 0.06em;
}

.frameflow-light.home-page .ff-working-process__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  filter: none;
}

.frameflow-light.home-page .ff-working-process__head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.frameflow-light.home-page .ff-working-process__gallery {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.frameflow-light.home-page .ff-wp-pill {
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 28px !important;
  overflow: hidden;
}

.frameflow-light.home-page .ff-wp-pill img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.frameflow-light.home-page .swiper-slide-active .ff-wp-pill,
.frameflow-light.home-page .ff-wp-pill:hover {
  transform: none;
  box-shadow:
    0 28px 56px -18px rgba(171, 5, 228, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.frameflow-light.home-page .swiper-slide-active .ff-wp-pill img,
.frameflow-light.home-page .ff-wp-pill:hover img {
  transform: none;
}

.frameflow-light.home-page .ff-working-process__lead {
  color: #fff !important;
  font-weight: 500;
  line-height: 1.55;
  opacity: 0.96;
}

.frameflow-light.home-page .ff-working-process__stat-label {
  color: #fff !important;
  opacity: 0.92;
}

.frameflow-light.home-page .ff-working-process__stat-num {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  filter: drop-shadow(0 0 48px rgba(171, 5, 228, 0.45));
}

.frameflow-light.home-page .ff-working-process__stat-num .number {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.frameflow-light.home-page .ff-working-process__stat-plus {
  color: rgba(255, 255, 255, 0.75) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.75) !important;
}

.frameflow-light.home-page .ff-working-process__steps {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 0;
}

.frameflow-light.home-page .ff-working-process__step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  border-radius: 0 12px 12px 0;
  position: relative;
  padding-top: 20px;
  padding-bottom: 28px;
}

.frameflow-light.home-page .ff-working-process__step::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 15%;
  bottom: 15%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.35s ease, top 0.35s ease, bottom 0.35s ease;
}

.frameflow-light.home-page .ff-working-process__step:hover {
  background: rgba(255, 255, 255, 0.12);
}

.frameflow-light.home-page .ff-working-process__step:hover::before {
  opacity: 1;
  top: 0%;
  bottom: 0%;
}

.frameflow-light.home-page .ff-working-process__step-body {
  flex: 1;
  min-width: 0;
  padding-top: clamp(4px, 0.6vw, 10px);
}

.frameflow-light.home-page .ff-working-process__step-num {
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none !important;
  border: none !important;
  border-radius: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  transition: opacity 0.3s ease;
}

.frameflow-light.home-page .ff-working-process__step:hover .ff-working-process__step-num {
  opacity: 0.9;
}

.frameflow-light.home-page .ff-working-process__step-title {
  color: #fff !important;
  margin-bottom: 10px;
}

.frameflow-light.home-page .ff-working-process__step-text {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 16px;
  line-height: 1.7;
}

/* Marquee band polish */
.frameflow-light.home-page .ff-wp-marquee__band--purple {
  box-shadow: 0 4px 32px -8px rgba(171, 5, 228, 0.4);
}

.frameflow-light.home-page .ff-wp-marquee__band--purple .ff-wp-marquee__item {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.frameflow-light.home-page .ff-wp-marquee__band--purple .ff-wp-marquee__item i {
  color: rgba(255, 255, 255, 0.7);
}

.frameflow-light.home-page .ff-wp-marquee__band--accent {
  background: linear-gradient(90deg, #ddd3ff 0%, #c9b8ff 50%, #ddd3ff 100%);
  box-shadow: 0 -2px 20px -6px rgba(67, 38, 146, 0.2);
}

.frameflow-light.home-page .ff-wp-marquee__band--accent .ff-wp-marquee__item {
  color: #13072d;
  font-weight: 700;
}

.frameflow-light.home-page .ff-wp-marquee__band--accent .ff-wp-marquee__item i {
  color: #432692;
  opacity: 0.8;
}

@media (min-width: 992px) {
  .frameflow-light.home-page .ff-working-process__step {
    padding-left: clamp(20px, 3vw, 36px);
  }
}

@media (max-width: 767px) {
  .frameflow-light.home-page .ff-working-process__steps {
    border-left: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 28px;
    margin-top: 8px;
  }

  .frameflow-light.home-page .ff-working-process__step {
    padding-left: 0 !important;
    gap: 20px;
  }

  .frameflow-light.home-page .ff-working-process__lead {
    margin-bottom: 40px !important;
  }
}

/* ── Project cards ─────────────────────────────────────────────── */
.frameflow-light.home-page .ff-ref-project-card.ff-cl-card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.frameflow-light.home-page .ff-ref-project-card.ff-cl-card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(67, 38, 146, 0.22);
}

.frameflow-light.home-page .ff-ref-project-card__thumb {
  aspect-ratio: 4 / 3;
}

.frameflow-light.home-page .ff-ref-project-card__thumb .image {
  height: 100%;
}

.frameflow-light.home-page .ff-ref-project-card__thumb .image > img {
  height: 100%;
}

/* ── Team avatars ─────────────────────────────────────────────── */
.frameflow-light.home-page .ff-team-card__avatar-wrap {
  overflow: hidden;
  border-radius: 50%;
}

.frameflow-light.home-page .ff-team-card__avatar-wrap img {
  transition: transform 1.1s cubic-bezier(0, 0, 0.44, 1.18);
}

.frameflow-light.home-page .ff-team-card:hover .ff-team-card__avatar-wrap img {
  transform: scale(1.06);
}

/* ── Section headings ─────────────────────────────────────────── */
.frameflow-light.home-page .ff-ref-section-head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.frameflow-light.home-page .ff-ref-eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: #432692;
  margin-bottom: 10px;
}

.frameflow-light.home-page .ff-ref-title {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* ── Showreel ─────────────────────────────────────────────────── */
.frameflow-light.home-page .ff-showreel__media {
  border-color: rgba(117, 85, 245, 0.18);
}

/* ── Testimonials ─────────────────────────────────────────────── */
.frameflow-light.home-page .ff-tes-swiper .swiper-slide {
  height: auto;
}

.frameflow-light.home-page .ff-tes-carousel .tes-item {
  min-height: 100%;
}

/* ── Services banner ──────────────────────────────────────────── */
.frameflow-light.home-page .ff-services-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 767px) {
  .frameflow-light.home-page .ff-services-banner .tf-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Motto ────────────────────────────────────────────────────── */
.frameflow-light.home-page .ff-home-motto__desc {
  max-width: 640px;
  margin-inline: auto;
}

.frameflow-light.home-page .box-quotes .image {
  border-radius: 16px;
  overflow: hidden;
}

/* ── Visibility safety ──────────────────────────────────────────── */
.frameflow-light.home-page .section-hero--frameflow .content-wrap h1,
.frameflow-light.home-page .section-hero--frameflow .content-wrap h1 span,
.frameflow-light.home-page .section-hero--frameflow .content-wrap > .text,
.frameflow-light.home-page .section-hero--frameflow .content-wrap .sub,
.frameflow-light.home-page .section-hero--frameflow .hero-contact-form {
  visibility: visible;
}

.frameflow-light.home-page .effectFade.ff-revealed,
.frameflow-light.home-page .effectFade[data-ff-revealed="true"],
.frameflow-light.home-page .ff-working-process .wow {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  .frameflow-light.home-page .ff-about-globe,
  .frameflow-light.home-page .box-quotes {
    animation: none;
  }
}
