/* ==========================================================================
   Influex — FAQ page (faqs.html) page-specific styles.
   Loaded AFTER styles.css, which already pulls in the design-system tokens
   (colors_and_type.css + site.css) and the shared nav / footer / CTA / reveal
   patterns. Only FAQ-specific (ixfaq-*) rules live here.
   ========================================================================== */

/* ------------------------------------------------------------------
   HERO — lean, not pinned. Vignetted portfolio collage behind a
   gradient headline.
------------------------------------------------------------------ */
.ixfaq-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(140px, 18vh, 200px) clamp(24px, 6vw, 80px) clamp(100px, 12vh, 140px);
  overflow: hidden;
  background: #000;
}
/* Background image — blurred, 50% opacity, own layer so blur/opacity don't affect text. */
.ixfaq-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('images/influexportfolio-diagonal.png') center / 155% auto no-repeat;
  filter: blur(5px);
  opacity: 0.2;
  z-index: 0;
}
.ixfaq-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 38%);
}
.ixfaq-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 44px 60px;
}
/* Heavily-blurred dark cloud behind the copy — no visible edges, looks like a deep drop-shadow. */
.ixfaq-hero-inner::before {
  content: '';
  position: absolute;
  inset: -10px -80px;
  background: rgba(0,0,0,0.82);
  filter: blur(48px);
  border-radius: 40%;
  z-index: -1;
  pointer-events: none;
}
.ixfaq-hero-eyebrow {
  display: block;
  font-family: var(--font-micro);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: var(--color-champagne);
  margin-bottom: 26px;
}
.ixfaq-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  /* Palindromic gradient matches the homepage hero — seamless loop,
     no hard snap at restart. background-image (NOT shorthand). */
  background-image: linear-gradient(90deg,
    #F2E8D8  0%,
    #D9B97D 18%,
    #C98A73 35%,
    #BDA6D8 50%,
    #C98A73 65%,
    #D9B97D 82%,
    #F2E8D8 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ixfaq-sweep 18s linear infinite;
  will-change: background-position;
}
@keyframes ixfaq-sweep {
  from { background-position:    0% 50%; }
  to   { background-position: -200% 50%; }
}
.ixfaq-hero-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 auto;
}
.ixfaq-hero-scroll {
  display: inline-flex;
  margin-top: 48px;
  color: var(--color-champagne);
  transition: color 200ms var(--ease-quint), transform 600ms var(--ease-quint);
  animation: ixfaq-bob 2.4s ease-in-out infinite;
}
.ixfaq-hero-scroll:hover { color: #fff; }
.ixfaq-hero-scroll svg { width: 26px; height: 26px; }
@keyframes ixfaq-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------------
   STICKY-SPLIT SECTIONS — media sticks on one side, the 3 Q&As scroll
   past and reveal on the other. Alternate sides via --flip.
------------------------------------------------------------------ */
.ixfaq-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 150px) clamp(40px, 6vw, 100px);
}
.ixfaq-section + .ixfaq-section { border-top: 1px solid rgba(255,255,255,0.06); }

/* Authority radial glows — dark sections only, full-bleed like the light sections */
.ixfaq-section:not(.ixfaq-section--light) { z-index: 0; }
.ixfaq-section:not(.ixfaq-section--light)::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-image:
    radial-gradient(ellipse 55% 65% at 100% 0%, rgba(217, 185, 125, 0.30) 0%, rgba(201, 138, 115, 0.10) 45%, transparent 68%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(128, 68, 220, 0.29) 0%, rgba(160, 90, 230, 0.13) 38%, rgba(110, 55, 190, 0.05) 58%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

/* Flipped sections: media moves to the right column. */
.ixfaq-section--flip .ixfaq-media { order: 2; }
.ixfaq-section--flip .ixfaq-qs { order: 1; }

/* --- Media panel (sticky) --- */
.ixfaq-media {
  position: sticky;
  top: clamp(90px, 13vh, 124px);
  align-self: start;
}
.ixfaq-media-eyebrow {
  display: block;
  font-family: var(--font-micro);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-champagne);
  margin-bottom: 18px;
}
.ixfaq-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  touch-action: pan-y;
  background: radial-gradient(120% 120% at 50% 0%, rgba(58, 53, 78, 0.45), #07070c 72%);
  box-shadow: 0 34px 90px -46px rgba(0, 0, 0, 0.85);
}

/* Stacked crossfade layers (img or logo lockup). */
.ixfaq-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 620ms var(--ease-quint), transform 1300ms var(--ease-quint);
}
.ixfaq-media-layer.is-active { opacity: 1; transform: scale(1); }
/* Founder portraits are transparent PNG cut-outs — give their layers an
   opaque dark backdrop so transparent areas never reveal the layer beneath
   mid-crossfade. */
.ixfaq-section--people .ixfaq-media-layer {
  object-position: center top;
  background: radial-gradient(120% 120% at 50% 0%, #2a2740, #07070c 72%);
}

/* Logo lockup layer (press marks). */
.ixfaq-media-logos {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4.5vh, 50px);
  padding: 13%;
  opacity: 0;
  transition: opacity 620ms var(--ease-quint);
}
.ixfaq-media-logos.is-active { opacity: 1; }
.ixfaq-media-logos img {
  max-width: 62%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Monochrome wordmarks → clean ivory silhouette on the dark frame. */
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

/* --- Questions column --- */
.ixfaq-qs { display: flex; flex-direction: column; }
.ixfaq-section-eyebrow {
  display: block;
  font-family: var(--font-micro);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 36px;
}
.ixfaq-item { padding: 26px 0 30px; }
.ixfaq-item + .ixfaq-item { border-top: 1px solid rgba(255,255,255,0.07); }
/* staggered reveal of the three items in a column */
.ixfaq-item.ix-reveal:nth-child(2) { transition-delay: 70ms; }
.ixfaq-item.ix-reveal:nth-child(3) { transition-delay: 140ms; }
.ixfaq-item.ix-reveal:nth-child(4) { transition-delay: 210ms; }

.ixfaq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.3vw, 33px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  /* Inactive: dim white */
  color: rgba(255, 255, 255, 0.42);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.42);
  background-image: none;
  transition: color 400ms var(--ease-quint), -webkit-text-fill-color 400ms var(--ease-quint);
}
/* Active: champagne gold */
.ixfaq-item.is-active .ixfaq-q {
  color: var(--color-champagne);
  -webkit-text-fill-color: var(--color-champagne);
}

.ixfaq-rule {
  display: block;
  height: 2px;
  width: 38px;
  margin: 16px 0 18px;
  background: linear-gradient(90deg, var(--color-champagne), rgba(236,199,119,0));
  transform-origin: left center;
  transform: scaleX(0.45);
  opacity: 0.5;
  transition: transform 700ms var(--ease-quint), opacity 700ms var(--ease-quint), width 700ms var(--ease-quint);
}
.ixfaq-item.is-in .ixfaq-rule { transform: scaleX(1); opacity: 1; }
.ixfaq-item.is-active .ixfaq-rule { width: 64px; }

.ixfaq-a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.72;
  /* Set directly on the <p> — the global `p { color: var(--fg-1) }` would
     otherwise override a colour set on a parent wrapper. */
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
}
.ixfaq-a a { color: var(--color-champagne); text-decoration: none; border-bottom: 1px solid rgba(236,199,119,0.4); }
.ixfaq-a a:hover { border-bottom-color: var(--color-champagne); }

/* ------------------------------------------------------------------
   ALTERNATING LIGHT SECTIONS (02 & 04) — full-bleed warm-white band.
   body has overflow-x:hidden, so a 100vw pseudo-element bleeds edge to
   edge without adding a horizontal scrollbar. The media frame stays a
   dark card for contrast; only the surface + question/answer text invert.
------------------------------------------------------------------ */
.ixfaq-section--light { position: relative; z-index: 0; }
.ixfaq-section--light::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #F7F3EA;
  z-index: -1;
}
.ixfaq-section--light .ixfaq-section-eyebrow,
.ixfaq-section--light .ixfaq-media-eyebrow { color: var(--color-champagne-deep); }
.ixfaq-section--light .ixfaq-item + .ixfaq-item { border-top-color: rgba(24, 19, 12, 0.12); }
.ixfaq-section--light .ixfaq-q {
  background-image: none;
  color: #1b1712;
  -webkit-text-fill-color: #1b1712;
}
.ixfaq-section--light .ixfaq-item.is-active .ixfaq-q {
  filter: none;
  color: var(--color-champagne-deep);
  -webkit-text-fill-color: var(--color-champagne-deep);
}
.ixfaq-section--light .ixfaq-rule {
  background: linear-gradient(90deg, var(--color-champagne-deep), rgba(189, 131, 50, 0));
}
.ixfaq-section--light .ixfaq-a { color: rgba(27, 23, 18, 0.74); }
.ixfaq-section--light .ixfaq-a a {
  color: var(--color-champagne-deep);
  border-bottom-color: rgba(189, 131, 50, 0.45);
}

/* ------------------------------------------------------------------
   CLOSING CTA — diagonal beam background matching homepage invitation.
------------------------------------------------------------------ */
.ixfaq-cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(96px, 12vw, 160px) clamp(16px, 4vw, 64px);
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Diagonal light beams via CSS — approximates the Three.js canvas effect. */
.ixfaq-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      transparent 0%,
      transparent 22%,
      rgba(200,200,200,0.055) 26%,
      rgba(255,255,255,0.09)  30%,
      rgba(200,200,200,0.055) 34%,
      transparent 38%,
      transparent 54%,
      rgba(200,200,200,0.04)  58%,
      rgba(255,255,255,0.07)  62%,
      rgba(200,200,200,0.04)  66%,
      transparent 70%
    );
  pointer-events: none;
}
.ixfaq-cta-section .ix-inner { position: relative; z-index: 1; }
.ixfaq-cta-section .eyebrow { display: block; margin-bottom: 24px; }

/* Bold authority-gradient title */
.ixfaq-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  background-image: var(--grad-authority);
  background-size: 140% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Pure white sub */
.ixfaq-cta-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: #fff;
  -webkit-text-fill-color: #fff;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Filled polygon button — matches homepage .ix-invitation-v2-cta */
.ixfaq-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 56px;
  font-family: var(--font-micro);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: transform 200ms var(--ease-quint), filter 200ms var(--ease-quint);
}
.ixfaq-cta-btn .ix-cta-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 24px rgba(236,199,119,0.35));
}
.ixfaq-cta-btn .ix-cta-label { position: relative; z-index: 1; }
.ixfaq-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ------------------------------------------------------------------
   RESPONSIVE — collapse to a single column; media stops sticking and
   stacks above its three questions.
------------------------------------------------------------------ */
/* Mobile image dot navigation — hidden on desktop, shown on mobile */
.ixfaq-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.ixfaq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 250ms ease, transform 250ms ease;
}
.ixfaq-dot.is-active {
  background: var(--color-champagne);
  transform: scale(1.25);
}
.ixfaq-section--light .ixfaq-dot { background: rgba(0, 0, 0, 0.18); }
.ixfaq-section--light .ixfaq-dot.is-active { background: var(--color-champagne-deep); }

@media (max-width: 860px) {
  .ixfaq-hero {
    padding-top: clamp(70px, 12vh, 90px);
    padding-bottom: clamp(44px, 7vh, 60px);
  }
  .ixfaq-hero-inner { padding: 20px 16px; }
  .ix-hero-br { display: none; }
  .ixfaq-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px clamp(22px, 6vw, 40px);
  }
  .ixfaq-media { position: static; top: auto; }
  .ixfaq-section--flip .ixfaq-media { order: 0; }
  .ixfaq-section--flip .ixfaq-qs { order: 0; }
  .ixfaq-media-frame { aspect-ratio: 16 / 10; }
  .ixfaq-dots { display: flex; }
  /* All questions fully visible on mobile — no scroll-based active tracking */
  .ixfaq-q {
    color: #ECC777 !important;
    -webkit-text-fill-color: #ECC777 !important;
  }
  .ixfaq-section--light .ixfaq-q {
    color: var(--color-champagne-deep) !important;
    -webkit-text-fill-color: var(--color-champagne-deep) !important;
  }
  .ixfaq-rule {
    transform: scaleX(1) !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ixfaq-hero-title { animation: none; background-position: 0% 50%; }
  .ixfaq-hero-scroll { animation: none; }
  .ixfaq-media-layer { transition: opacity 1ms; transform: none; }
}
