/* ================================================================
   SYNERGY GRID — About Page Animations
   assets/css/about-animations.css

   Covers:
   • Phase 1 — Hero freeze → fires after preloader exits
   • Phase 2 — Scroll reveal for ALL sections
   • Clients & FAQ section styles (new sections)
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   PHASE 1 — HERO: frozen until preloader done
   ────────────────────────────────────────────────────────────── */
body.page-loading .about-hero__eyebrow,
body.page-loading .about-hero__title,
body.page-loading .about-hero__sub,
body.page-loading .about-hero__lead,
body.page-loading .about-hero__pill-list span,
body.page-loading .about-hero__badge,
body.page-loading .about-hero__scroll {
  opacity: 0 !important;
  animation-play-state: paused !important;
}
body.page-loading .about-hero__bg img {
  opacity: 0 !important;
  transform: scale(1.1) !important;
}

/* Fire each element in sequence on page-ready */
body.page-ready .about-hero__bg img {
  animation: heroImgReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important;
}
body.page-ready .about-hero__eyebrow {
  animation: aboutHeroPop     0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.10s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__title {
  animation: aboutHeroZoom    0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__sub {
  animation: aboutHeroFadeUp  0.85s ease 0.48s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__lead {
  animation: aboutHeroFadeUp  0.85s ease 0.64s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__pill-list span:nth-child(1) {
  animation: aboutHeroBubble 0.7s ease 0.82s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__pill-list span:nth-child(2) {
  animation: aboutHeroBubble 0.7s ease 0.96s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__pill-list span:nth-child(3) {
  animation: aboutHeroBubble 0.7s ease 1.10s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__pill-list span:nth-child(4) {
  animation: aboutHeroBubble 0.7s ease 1.24s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__badge {
  animation: aboutHeroFadeUp  0.85s ease 1.00s forwards !important;
  animation-play-state: running !important;
}
body.page-ready .about-hero__scroll {
  animation: aboutHeroFadeIn  1s ease 1.40s forwards !important;
  animation-play-state: running !important;
}

@keyframes heroImgReveal {
  0%   { opacity: 0; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1.04); }
}
@keyframes aboutHeroFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.7; }
}

/* ──────────────────────────────────────────────────────────────
   PHASE 2 — SCROLL REVEAL BASE STATES
   ────────────────────────────────────────────────────────────── */
[data-sg-anim] {
  opacity: 0;
  will-change: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-property: opacity, transform;
  transition-delay: var(--sg-delay, 0s);
}
[data-sg-anim="fade-up"]    { transform: translateY(48px);              transition-duration: 0.85s; }
[data-sg-anim="fade-left"]  { transform: translateX(-56px);             transition-duration: 0.9s;  }
[data-sg-anim="fade-right"] { transform: translateX(56px);              transition-duration: 0.9s;  }
[data-sg-anim="scale-up"]   { transform: scale(0.88) translateY(28px);  transition-duration: 0.85s; }
[data-sg-anim="fade-in"]    { transform: none;                          transition-duration: 0.75s; }

[data-sg-anim].sg-revealed {
  opacity: 1;
  transform: none !important;
}

/* ──────────────────────────────────────────────────────────────
   SECTION HEADING EM UNDERLINE DRAW
   ────────────────────────────────────────────────────────────── */
.story-text__headline em,
.clients-title em,
.services-title em,
.faq-title em,
.values-headline em,
.team-title em,
.pricing-title em {
  position: relative;
  display: inline-block;
}
.story-text__headline em::after,
.clients-title em::after,
.services-title em::after,
.faq-title em::after,
.values-headline em::after,
.team-title em::after,
.pricing-title em::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.sg-revealed .story-text__headline em::after,
.sg-revealed .clients-title em::after,
.sg-revealed .services-title em::after,
.sg-revealed .faq-title em::after,
.sg-revealed .values-headline em::after,
.sg-revealed .team-title em::after,
.sg-revealed .pricing-title em::after {
  transform: scaleX(1);
}

/* ──────────────────────────────────────────────────────────────
   STORY — layered image stack
   ────────────────────────────────────────────────────────────── */
.story-image__accent {
  opacity: 0;
  transform: translateX(-24px) translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s,
              transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s;
}
.story-image.sg-revealed .story-image__accent { opacity: 1; transform: none; }

.story-image__frame {
  opacity: 0;
  transform: translate(8px,-8px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}
.story-image.sg-revealed .story-image__frame { opacity: 0.45; transform: none; }

/* ──────────────────────────────────────────────────────────────
   STATS BAR — numbers slide up, labels fade
   ────────────────────────────────────────────────────────────── */
.stat-item__num {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease var(--sg-delay, 0s),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s);
}
.stat-item.sg-revealed .stat-item__num { opacity: 1; transform: none; }

.stat-item__label {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease calc(var(--sg-delay,0s) + 0.18s),
              transform 0.6s ease calc(var(--sg-delay,0s) + 0.18s);
}
.stat-item.sg-revealed .stat-item__label { opacity: 0.45; transform: none; }

/* ──────────────────────────────────────────────────────────────
   CLIENTS SECTION
   ────────────────────────────────────────────────────────────── */
.clients-section {
  padding: 90px 0;
  background: rgba(13, 13, 20, 0.90);
  border-top: 1px solid rgba(69, 84, 177, 0.12);
  border-bottom: 1px solid rgba(69, 84, 177, 0.12);
  position: relative;
  overflow: hidden;
}

/* subtle moving gradient beam */
.clients-section::before {
  content: '';
  position: absolute;
  top: 0; left: -60%; right: -60%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--sg-blue) 30%,
    var(--sg-green) 50%,
    var(--sg-blue) 70%,
    transparent 100%
  );
  opacity: 0.35;
}

.clients-header {
  margin-bottom: 60px;
}

.clients-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin: 0;
}
.clients-title em {
  font-style: normal;
  color: var(--sg-blue-light);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}

.client-item {
  background: rgba(13, 13, 20, 0.92);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.client-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sg-blue), var(--sg-blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.client-item:hover { background: rgba(69, 84, 177, 0.07); }
.client-item:hover::after { transform: scaleX(1); }

.client-item__logo {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(69, 84, 177, 0.22);
  border-radius: 4px;
  background: rgba(69, 84, 177, 0.07);
  font-size: 24px;
  color: rgba(240, 237, 232, 0.35);
  transition: all 0.4s ease;
}
.client-item:hover .client-item__logo {
  border-color: rgba(107, 125, 232, 0.45);
  background: rgba(69, 84, 177, 0.15);
  color: var(--sg-blue-light);
  transform: scale(1.08);
}

.client-item__name {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.32);
  transition: color 0.3s;
  line-height: 1.4;
}
.client-item:hover .client-item__name { color: rgba(240, 237, 232, 0.65); }

/* Client item reveal stagger */
.client-item {
  opacity: 0;
  transform: scale(0.88) translateY(28px);
  transition-property: opacity, transform, background;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1), ease;
  transition-duration: 0.75s, 0.75s, 0.4s;
  transition-delay: var(--sg-delay, 0s), var(--sg-delay, 0s), 0s;
}
.client-item.sg-revealed { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────────────────
   SERVICE CARDS — sub-element stagger
   ────────────────────────────────────────────────────────────── */
.service-card .service-card__icon,
.service-card .service-card__icon2 {
  opacity: 0;
  transform: scale(0.7) translateY(8px);
  transition: opacity 0.5s ease var(--sg-icon-delay, 0.3s),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--sg-icon-delay, 0.3s);
}
.service-card.sg-revealed .service-card__icon,
.service-card.sg-revealed .service-card__icon2 { opacity: 1; transform: none; }

.service-card .service-card__title {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s ease calc(var(--sg-icon-delay,0.3s) + 0.1s),
              transform 0.55s ease calc(var(--sg-icon-delay,0.3s) + 0.1s);
}
.service-card.sg-revealed .service-card__title { opacity: 1; transform: none; }

.service-card .service-card__text {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s ease calc(var(--sg-icon-delay,0.3s) + 0.2s),
              transform 0.55s ease calc(var(--sg-icon-delay,0.3s) + 0.2s);
}
.service-card.sg-revealed .service-card__text { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────────────────
   VALUES — left column sticky, right items stagger in
   ────────────────────────────────────────────────────────────── */
.value-item {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.7s ease var(--sg-delay, 0s),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s);
}
.values-list.sg-revealed .value-item { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────────────────
   FAQ SECTION
   ────────────────────────────────────────────────────────────── */
.faq-section {
  padding: 110px 0;
  background: rgba(17, 17, 17, 0.82);
}

.faq-header {
  margin-bottom: 70px;
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin: 0;
}
.faq-title em {
  font-style: normal;
  color: var(--sg-blue-light);
}

.faq-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(240, 237, 232, 0.45);
  margin-top: 14px;
  margin-bottom: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
}

.faq-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 22px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  transition: padding-left 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  transition-property: opacity, transform, padding-left;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1), ease;
  transition-duration: 0.7s, 0.7s, 0.3s;
  transition-delay: var(--sg-delay, 0s), var(--sg-delay, 0s), 0s;
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.055); }
.faq-item:hover { padding-left: 6px; }

.faq-col.sg-revealed .faq-item { opacity: 1; transform: none; }

.faq-item__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--sg-blue-light);
  padding-top: 3px;
  opacity: 0.6;
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.faq-item__a {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(240, 237, 232, 0.50);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────
   TEAM CARDS
   ────────────────────────────────────────────────────────────── */
.team-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s);
}
.team-card.sg-revealed { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────────────────
   PRICING CARDS — alternate from sides
   ────────────────────────────────────────────────────────────── */
.pricing-card {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--sg-delay, 0s),
              box-shadow 0.8s ease var(--sg-delay, 0s);
}
.pricing-card:nth-child(1) { transform: translateX(-36px) translateY(20px); }
.pricing-card:nth-child(3) { transform: translateX(36px)  translateY(20px); }
.pricing-card.sg-revealed  { opacity: 1; transform: none; }
.pricing-card--featured.sg-revealed { box-shadow: 0 0 60px rgba(69, 84, 177, 0.22); }

/* ──────────────────────────────────────────────────────────────
   CTA BAND
   ────────────────────────────────────────────────────────────── */
.cta-band::before {
  transition: opacity 1s ease 0.3s;
  opacity: 0;
}
.cta-band.sg-cta-visible::before { opacity: 1; }

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-col + .faq-col .faq-item:first-child { border-top: none; }
}

@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-section  { padding: 64px 0; }
  .clients-section { padding: 64px 0; }
}

/* ──────────────────────────────────────────────────────────────
   REDUCE MOTION
   ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-sg-anim],
  .stat-item__num, .stat-item__label,
  .service-card .service-card__icon,
  .service-card .service-card__icon2,
  .service-card .service-card__title,
  .service-card .service-card__text,
  .value-item, .team-card, .pricing-card,
  .story-image__accent, .story-image__frame,
  .client-item, .faq-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ================================================================
   CLIENTS / PARTNERS SECTION
   ================================================================ */
.clients-section {
    background: rgba(17, 17, 17, 0.80);
    padding: 110px 0;
    overflow: hidden;
}

.clients-header {
    margin-bottom: 64px;
}

.clients-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
    margin: 0 0 12px;
}

.clients-title em {
    font-style: normal;
    color: var(--sg-blue-light);
}

.clients-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    color: rgba(240, 237, 232, 0.45);
    margin-top: 14px;
    max-width: 480px;
}

/* Client logo grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 64px;
}

.client-card {
    background: rgba(13, 13, 13, 0.88);
    padding: 44px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.client-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sg-blue), var(--sg-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.client-card:hover { background: rgba(69, 84, 177, 0.07); }
.client-card:hover::before { transform: scaleX(1); }

.client-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.client-card__inner i {
    font-size: 28px;
    color: rgba(240, 237, 232, 0.25);
    transition: color 0.3s ease, transform 0.3s ease;
}

.client-card__inner span {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.35);
    transition: color 0.3s ease;
}

.client-card:hover .client-card__inner i {
    color: var(--sg-blue-light);
    transform: translateY(-3px);
}
.client-card:hover .client-card__inner span {
    color: rgba(240, 237, 232, 0.75);
}

/* Trust bar */
.clients-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid rgba(69, 84, 177, 0.14);
    padding: 28px 40px;
    background: rgba(69, 84, 177, 0.04);
}

.clients-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 32px;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.45);
}

.clients-trust__item i {
    color: var(--sg-blue-light);
    font-size: 16px;
    flex-shrink: 0;
}

.clients-trust__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* Client card animation — stagger applied by JS */
.client-card[data-sg-anim] {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition-duration: 0.7s;
}
.client-card[data-sg-anim].sg-revealed {
    opacity: 1;
    transform: none;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
    background: rgba(13, 13, 13, 0.82);
    padding: 110px 0;
}

.faq-header {
    margin-bottom: 70px;
}

.faq-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
    margin: 0 0 12px;
}

.faq-title em {
    font-style: normal;
    color: var(--sg-green);
}

.faq-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    color: rgba(240, 237, 232, 0.45);
    margin-top: 14px;
    max-width: 480px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    align-items: start;
}

.faq-col {
    background: rgba(13, 13, 13, 0.82);
    display: flex;
    flex-direction: column;
}

/* FAQ accordion item */
.sg-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.sg-faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-faq-item__q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.sg-faq-item__q:hover {
    background: rgba(69, 84, 177, 0.05);
}

.sg-faq-item__q span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(240, 237, 232, 0.80);
    line-height: 1.5;
    transition: color 0.3s;
}

.sg-faq-item__icon {
    font-size: 14px;
    color: var(--sg-blue-light);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}

/* Open state */
.sg-faq-item.is-open .sg-faq-item__q {
    background: rgba(69, 84, 177, 0.07);
}
.sg-faq-item.is-open .sg-faq-item__q span {
    color: var(--sg-white);
}
.sg-faq-item.is-open .sg-faq-item__icon {
    transform: rotate(45deg);
    color: var(--sg-green);
}

/* Answer panel — animated height */
.sg-faq-item__a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                padding 0.35s ease;
    opacity: 0;
    padding: 0 32px;
}

.sg-faq-item__a[hidden] {
    display: block !important; /* override hidden for animation */
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.sg-faq-item.is-open .sg-faq-item__a {
    max-height: 400px;
    opacity: 1;
    padding: 0 32px 26px;
}

.sg-faq-item__a p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.85;
    color: rgba(240, 237, 232, 0.50);
    margin: 0;
    border-left: 2px solid rgba(22, 156, 83, 0.3);
    padding-left: 18px;
}

/* FAQ item entrance animation — stagger by JS */
.sg-faq-item[data-sg-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition-duration: 0.7s;
}
.sg-faq-item[data-sg-anim].sg-revealed {
    opacity: 1;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-trust {
        gap: 8px;
        padding: 20px 24px;
    }
    .clients-trust__divider { display: none; }
    .clients-trust__item { padding: 6px 16px; }

    .faq-layout {
        grid-template-columns: 1fr;
    }
    .faq-col--right .sg-faq-item:first-child {
        border-top: none;
    }
}

@media (max-width: 767px) {
    .clients-section,
    .faq-section { padding: 64px 0; }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }
    .client-card { padding: 28px 16px; }

    .sg-faq-item__q { padding: 20px 20px; }
    .sg-faq-item.is-open .sg-faq-item__a { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
    .clients-grid { grid-template-columns: 1fr 1fr; }
    .clients-trust { flex-direction: column; align-items: flex-start; }
    .clients-trust__divider { display: none; }
}

/* ================================================================
   PORTFOLIO PREVIEW SECTION
   ================================================================ */
.portfolio-preview-section {
    background: rgba(13, 13, 13, 0.82);
    padding: 110px 0;
}

.portfolio-preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 56px;
}

.portfolio-preview-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 60px);
    letter-spacing: 3px;
    color: #fff;
    line-height: 1;
    margin: 0;
}
.portfolio-preview-title em {
    font-style: normal;
    color: var(--sg-blue-light);
}

/* See Portfolio button */
.portfolio-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sg-white);
    background: linear-gradient(135deg, var(--sg-blue) 0%, var(--sg-blue-dark) 100%);
    padding: 14px 28px;
    border: 1px solid rgba(107, 125, 232, 0.35);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(69, 84, 177, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}
.portfolio-preview-btn i { transition: transform 0.3s ease; }
.portfolio-preview-btn:hover {
    background: linear-gradient(135deg, var(--sg-green) 0%, var(--sg-green-dark) 100%);
    color: var(--sg-white);
    border-color: rgba(22, 156, 83, 0.4);
    box-shadow: 0 6px 28px rgba(22, 156, 83, 0.3);
    transform: translateY(-2px);
}
.portfolio-preview-btn:hover i { transform: translateX(4px); }

/* Grid — 1 large left + 3 smaller right */
.portfolio-preview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
}

.pp-card--large {
    grid-row: 1 / 3;
}

.pp-card__img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 260px;
}
.pp-card--large .pp-card__img { min-height: 540px; }

.pp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: brightness(0.75) saturate(0.9);
}
.pp-card:hover .pp-card__img img {
    transform: scale(1.06);
    filter: brightness(0.6) saturate(1);
}

/* Overlay */
.pp-card__overlay {
    position: absolute;
    inset: 0;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.1) 55%, transparent 100%);
    transition: background 0.4s ease;
}
.pp-card:hover .pp-card__overlay {
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.25) 55%, transparent 100%);
}

.pp-card__cat {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--sg-green);
    margin-bottom: 8px;
    display: block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}
.pp-card:hover .pp-card__cat { opacity: 1; transform: translateY(0); }

.pp-card__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 26px);
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
    transform: translateY(4px);
    transition: transform 0.35s ease;
}
.pp-card:hover .pp-card__title { transform: translateY(0); }

.pp-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(240,237,232,0.6);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s, color 0.25s;
}
.pp-card:hover .pp-card__link { opacity: 1; transform: translateY(0); }
.pp-card__link:hover { color: var(--sg-blue-light); }
.pp-card__link i { font-size: 11px; transition: transform 0.25s; }
.pp-card__link:hover i { transform: translate(2px, -2px); }

/* Entrance animation */
.pp-card[data-sg-anim] {
    opacity: 0;
    transform: translateY(36px);
    transition-duration: 0.8s;
}
.pp-card--large[data-sg-anim] { transition-delay: 0s; }
.pp-card[data-sg-anim].sg-revealed { opacity: 1; transform: none; }

/* ================================================================
   PRICING — GREEN / BLUE ALTERNATING
   ================================================================ */

/* Remove old featured ribbon — replaced with badge */
.pricing-card--featured::before { display: none !important; }

/* Accent bar at top of each card */
.pricing-card__accent-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0;
}

/* "Most Popular" badge */
.pricing-card__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-weight: 500;
}

/* GREEN variant */
.pricing-card--green {
    background: rgba(13, 13, 13, 0.88);
    border-top: none;
}
.pricing-card--green .pricing-card__accent-bar {
    background: linear-gradient(90deg, var(--sg-green), rgba(22,156,83,0.3));
}
.pricing-card--green .pricing-card__tier {
    color: var(--sg-green);
}
.pricing-card--green .pricing-card__features li i.bi-check2 {
    color: var(--sg-green);
}
.pricing-card--green .pricing-card__features li i.bi-x {
    color: rgba(240,237,232,0.2);
}
.pricing-card--green:hover {
    background: rgba(22, 156, 83, 0.06);
    box-shadow: 0 0 40px rgba(22, 156, 83, 0.1);
}

/* BLUE variant */
.pricing-card--blue {
    background: rgba(69, 84, 177, 0.08);
}
.pricing-card--blue .pricing-card__accent-bar {
    background: linear-gradient(90deg, var(--sg-blue), var(--sg-blue-light));
}
.pricing-card--blue .pricing-card__tier {
    color: var(--sg-blue-light);
}
.pricing-card--blue .pricing-card__badge {
    background: rgba(69, 84, 177, 0.2);
    color: var(--sg-blue-light);
    border: 1px solid rgba(107, 125, 232, 0.3);
}
.pricing-card--blue .pricing-card__features li i.bi-check2 {
    color: var(--sg-blue-light);
}
.pricing-card--blue .pricing-card__features li i.bi-x {
    color: rgba(240,237,232,0.2);
}
.pricing-card--blue.pricing-card--featured {
    background: rgba(69, 84, 177, 0.12);
    box-shadow: 0 0 60px rgba(69, 84, 177, 0.18);
}

/* CTA buttons */
.pricing-btn--green {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 2px;
    margin-top: 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(22, 156, 83, 0.4);
    color: var(--sg-white);
    background: transparent;
}
.pricing-btn--green:hover {
    background: var(--sg-green);
    color: var(--sg-white);
    border-color: var(--sg-green);
    box-shadow: 0 6px 24px rgba(22, 156, 83, 0.35);
}

.pricing-btn--blue {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 2px;
    margin-top: 32px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--sg-blue) 0%, var(--sg-blue-dark) 100%);
    color: var(--sg-white);
    border: 1px solid rgba(107, 125, 232, 0.35);
    box-shadow: 0 4px 20px rgba(69, 84, 177, 0.3);
}
.pricing-btn--blue:hover {
    background: linear-gradient(135deg, var(--sg-blue-light) 0%, var(--sg-blue) 100%);
    color: var(--sg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(69, 84, 177, 0.45);
}

/* Override old pricing animation directions for the new left/up/right pattern */
.pricing-card--green:first-child { transform: translateX(-36px) translateY(20px); }
.pricing-card--blue              { transform: translateY(36px); }
.pricing-card--green:last-child  { transform: translateX(36px) translateY(20px); }
.pricing-card.sg-revealed        { opacity: 1; transform: none !important; }

/* Responsive */
@media (max-width: 991px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .pp-card--large { grid-row: auto; }
    .pp-card--large .pp-card__img { min-height: 300px; }
    .pp-card__img { min-height: 220px; }
    .portfolio-preview-section { padding: 64px 0; }
}

@media (max-width: 767px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }
    .pp-card--large .pp-card__img,
    .pp-card__img { min-height: 240px; }

    .portfolio-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .portfolio-preview-btn { width: 100%; justify-content: center; }

    /* Pricing */
    .pricing-card--green:first-child,
    .pricing-card--green:last-child { transform: translateY(24px); }
}
