/*
Theme Name: Faceless Forces — Elementor Edition
Theme URI: https://www.facelessforces.com/
Author: Faceless Forces
Author URI: https://www.facelessforces.com/
Description: Signature WordPress theme for Faceless Forces — an AI + digital marketing agency. Pairs Antigravity-style cursor-reactive canvas effects with a neon-tube dark/light theme toggle and a first-class Elementor widget library so every section on the site is editable visually. Dark electric-cyan "energy" palette, native WordPress auth for client portal, Elementor Pro Theme Builder ready, Yoast/RankMath/AIOSEO friendly, no WooCommerce.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: faceless-forces-elementor
Tags: elementor, ai, marketing, agency, dark, cursor-effects, canvas, custom-widgets
Elementor tested up to: 3.20
*/

/* ============================================================
   FACELESS FORCES — Theme tokens (dark default)
   Electric cyan "energy" palette. Dark is the canonical mode;
   light mode overrides are scoped under body.theme-light.
   ============================================================ */

:root {
  /* ---- Surfaces ---- */
  --ff-bg-0: #000000;          /* absolute black, used for deep voids */
  --ff-bg-1: #06070A;          /* page background */
  --ff-bg-2: #0B0D12;          /* panels, cards at rest */
  --ff-bg-3: #12151D;          /* elevated / hover cards */
  --ff-bg-4: #1B1F2A;          /* strong elevated, modal */

  /* ---- Text ---- */
  --ff-fg-0: #F7FAFF;          /* primary text */
  --ff-fg-1: #BFCADA;          /* secondary text */
  --ff-fg-2: #7A8599;          /* tertiary / meta */
  --ff-fg-3: #4A5467;          /* muted */

  /* ---- Accents: energy ---- */
  --ff-accent:       #00E5FF;                   /* electric cyan — signature */
  --ff-accent-2:     #7B8CFF;                   /* supporting violet */
  --ff-accent-3:     #5BF3C5;                   /* supporting mint (AI output feel) */
  --ff-accent-soft:  rgba(0, 229, 255, 0.12);
  --ff-accent-glow:  rgba(0, 229, 255, 0.55);
  --ff-accent-wash:  rgba(0, 229, 255, 0.04);

  /* ---- Lines / rules ---- */
  --ff-line:         rgba(255, 255, 255, 0.06);
  --ff-line-2:       rgba(255, 255, 255, 0.10);
  --ff-line-strong:  rgba(0, 229, 255, 0.22);

  /* ---- Glow / shadow ---- */
  --ff-glow-sm: 0 0 8px  rgba(0, 229, 255, 0.35);
  --ff-glow-md: 0 0 18px rgba(0, 229, 255, 0.45);
  --ff-glow-lg: 0 0 36px rgba(0, 229, 255, 0.55);
  --ff-shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* ---- Grid overlay (used on page bg) ---- */
  --ff-grid-color: rgba(0, 229, 255, 0.035);
  --ff-grid-size:  72px;

  /* ---- Typography ---- */
  --ff-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --ff-font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ff-h1: clamp(2.5rem, 5.5vw, 5.25rem);
  --ff-h2: clamp(2rem,   3.8vw, 3.5rem);
  --ff-h3: clamp(1.4rem, 2.2vw, 2rem);
  --ff-h4: clamp(1.1rem, 1.6vw, 1.35rem);
  --ff-body: 1rem;
  --ff-small: 0.875rem;
  --ff-tiny: 0.75rem;

  /* ---- Motion ---- */
  --ff-ease:      cubic-bezier(0.65, 0, 0.35, 1);
  --ff-ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --ff-dur-fast:  160ms;
  --ff-dur:       280ms;
  --ff-dur-slow:  620ms;

  /* ---- Layout ---- */
  --ff-container: 1240px;
  --ff-gutter-x:  clamp(1.25rem, 3vw, 2.5rem);
  --ff-radius-sm: 8px;
  --ff-radius:    14px;
  --ff-radius-lg: 22px;
  --ff-radius-xl: 32px;
}

/* ---- Light theme overrides ---- */
body.theme-light {
  --ff-bg-0: #F3F6FC;
  --ff-bg-1: #FBFCFF;
  --ff-bg-2: #FFFFFF;
  --ff-bg-3: #F2F5FC;
  --ff-bg-4: #E8EDF7;

  --ff-fg-0: #08090C;
  --ff-fg-1: #384253;
  --ff-fg-2: #5A6579;
  --ff-fg-3: #96A1B4;

  --ff-accent:      #0091B3;
  --ff-accent-2:    #3A4DE0;
  --ff-accent-3:    #119E7A;
  --ff-accent-soft: rgba(0, 145, 179, 0.10);
  --ff-accent-glow: rgba(0, 145, 179, 0.35);
  --ff-accent-wash: rgba(0, 145, 179, 0.03);

  --ff-line:        rgba(8, 12, 20, 0.08);
  --ff-line-2:      rgba(8, 12, 20, 0.12);
  --ff-line-strong: rgba(0, 145, 179, 0.22);

  --ff-grid-color:  rgba(0, 145, 179, 0.045);

  --ff-glow-sm: 0 0 8px  rgba(0, 145, 179, 0.18);
  --ff-glow-md: 0 0 18px rgba(0, 145, 179, 0.28);
  --ff-glow-lg: 0 0 36px rgba(0, 145, 179, 0.38);
  --ff-shadow-panel: 0 8px 24px rgba(60, 76, 110, 0.12);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-font-body);
  font-size: var(--ff-body);
  line-height: 1.6;
  color: var(--ff-fg-0);
  background-color: var(--ff-bg-1);
  background-image:
    linear-gradient(var(--ff-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--ff-grid-color) 1px, transparent 1px);
  background-size: var(--ff-grid-size) var(--ff-grid-size);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth theme swap on toggle — overridden during ignition for slow fade */
  transition: background-color var(--ff-dur) var(--ff-ease),
              color var(--ff-dur) var(--ff-ease);
}

/* During neon-tube ignition we want a slower, warmer fade */
body.ff-igniting {
  transition: background-color 820ms cubic-bezier(.35,.05,.25,1),
              color 820ms cubic-bezier(.35,.05,.25,1);
}

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--ff-accent); text-decoration: none; transition: color var(--ff-dur-fast) var(--ff-ease); }
a:hover { color: var(--ff-fg-0); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: var(--ff-h1); }
h2 { font-size: var(--ff-h2); }
h3 { font-size: var(--ff-h3); }
h4 { font-size: var(--ff-h4); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ff-accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--ff-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.ff-container {
  width: 100%;
  max-width: var(--ff-container);
  margin-inline: auto;
  padding-inline: var(--ff-gutter-x);
}
.ff-container--narrow { max-width: 880px; }
.ff-container--wide { max-width: 1440px; }

.ff-section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.ff-section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }

/* Subtle vertical divider — reusable decoration */
.ff-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ff-line-strong) 50%, transparent 100%);
  border: 0;
  margin: 0;
}

/* ============================================================
   Accent primitives
   ============================================================ */
.ff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ff-accent);
}
.ff-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ff-accent);
  box-shadow: var(--ff-glow-sm);
}

.ff-accent { color: var(--ff-accent); }
.ff-accent-text {
  background: linear-gradient(135deg, var(--ff-accent) 0%, var(--ff-accent-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ff-glow-text {
  color: var(--ff-accent);
  text-shadow: 0 0 18px var(--ff-accent-glow);
}

/* ============================================================
   Buttons — the signature pill with cursor-following sheen
   ============================================================ */
.ff-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ff-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ff-line-strong);
  background: var(--ff-bg-2);
  color: var(--ff-fg-0);
  transition: border-color var(--ff-dur) var(--ff-ease),
              transform var(--ff-dur) var(--ff-ease),
              box-shadow var(--ff-dur) var(--ff-ease);
}
.ff-btn::before {
  /* Cursor-following radial sheen — JS sets --mx/--my on hover */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(140px 120px at var(--mx, 50%) var(--my, 50%),
                              var(--ff-accent-glow) 0%,
                              transparent 60%);
  opacity: 0;
  transition: opacity var(--ff-dur) var(--ff-ease);
  z-index: -1;
  pointer-events: none;
}
.ff-btn:hover {
  border-color: var(--ff-accent);
  transform: translateY(-1px);
  box-shadow: var(--ff-glow-sm);
}
.ff-btn:hover::before { opacity: 1; }
.ff-btn:active { transform: translateY(0); }

.ff-btn--primary {
  background: var(--ff-accent);
  color: #000;
  border-color: var(--ff-accent);
}
.ff-btn--primary:hover {
  box-shadow: var(--ff-glow-md);
  color: #000;
}
.ff-btn--primary::before {
  background: radial-gradient(140px 120px at var(--mx, 50%) var(--my, 50%),
                              rgba(255, 255, 255, 0.35) 0%,
                              transparent 60%);
}

.ff-btn--ghost {
  background: transparent;
  border-color: var(--ff-line-2);
}

.ff-btn__icon {
  width: 1em;
  height: 1em;
  transition: transform var(--ff-dur) var(--ff-ease);
}
.ff-btn:hover .ff-btn__icon { transform: translateX(3px); }

/* ============================================================
   Cursor-reactive global layers
   ============================================================ */

/* 1. Hero particle canvas — absolutely positioned, GPU composited */
.ff-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;  /* canvas is decorative; clicks pass through */
  opacity: 0.92;
}

/* 2. Ambient cursor spotlight — soft bloom that follows the mouse */
.ff-cursor-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 680px;
  height: 680px;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(closest-side,
                              var(--ff-accent-soft) 0%,
                              rgba(0, 229, 255, 0.04) 40%,
                              transparent 75%);
  mix-blend-mode: screen;
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms var(--ff-ease);
  will-change: transform, opacity;
}
body.ff-cursor-awake .ff-cursor-spotlight { opacity: 1; }
body.theme-light .ff-cursor-spotlight {
  mix-blend-mode: multiply;
  opacity: 0;
  background: radial-gradient(closest-side,
                              rgba(0, 145, 179, 0.10) 0%,
                              rgba(0, 145, 179, 0.03) 40%,
                              transparent 75%);
}
body.theme-light.ff-cursor-awake .ff-cursor-spotlight { opacity: 1; }

/* 3. Neon-tube flash overlay (theme toggle ignition) */
.ff-neon-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background: radial-gradient(ellipse 75% 65% at center,
    rgba(190, 245, 255, .96)  0%,
    rgba(160, 230, 250, .78)  12%,
    rgba(130, 205, 240, .52)  28%,
    rgba(100, 180, 225, .28)  48%,
    rgba(70, 150, 205, .10)   70%,
    rgba(50, 120, 180, 0)     92%);
  mix-blend-mode: screen;
  transform: scale(.88);
  transform-origin: center;
  will-change: opacity, transform;
}
.ff-neon-flash.ignite { animation: ff-neon-ignite 1100ms linear forwards; }

@keyframes ff-neon-ignite {
  0%   { opacity: 0;   transform: scale(.88); }
  4%   { opacity: .22; transform: scale(.92); }
  7%   { opacity: .06; }
  11%  { opacity: 0; }
  15%  { opacity: .38; transform: scale(.96); }
  19%  { opacity: .12; }
  24%  { opacity: .04; }
  30%  { opacity: .62; transform: scale(1); }
  34%  { opacity: .22; }
  38%  { opacity: .30; }
  43%  { opacity: .10; }
  49%  { opacity: .86; transform: scale(1.04); }  /* brightest — the "pop" */
  53%  { opacity: .34; }
  57%  { opacity: .54; }
  61%  { opacity: .18; }
  66%  { opacity: .48; transform: scale(1.01); }
  70%  { opacity: .26; }
  74%  { opacity: .50; }
  78%  { opacity: .32; }
  83%  { opacity: .44; transform: scale(1); }
  88%  { opacity: .28; }
  93%  { opacity: .18; }
  97%  { opacity: .08; }
  100% { opacity: 0;   transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-neon-flash.ignite { animation: none; }
  body.ff-igniting { transition: none; }
  .ff-hero-canvas { display: none; }
  .ff-cursor-spotlight { display: none; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Header / nav
   ============================================================ */
.ff-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ff-bg-1) 72%, transparent);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  border-bottom: 1px solid var(--ff-line);
  transition: background var(--ff-dur) var(--ff-ease),
              border-color var(--ff-dur) var(--ff-ease);
}
.ff-header.is-scrolled {
  background: color-mix(in srgb, var(--ff-bg-0) 85%, transparent);
}

.ff-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
}

.ff-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ff-fg-0);
}
.ff-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.ff-logo__wordmark {
  font-family: var(--ff-font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.ff-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff-nav__links a {
  color: var(--ff-fg-1);
  font-size: 0.94rem;
  padding: 0.4rem 0;
  position: relative;
}
.ff-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ff-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ff-dur) var(--ff-ease);
}
.ff-nav__links a:hover { color: var(--ff-fg-0); }
.ff-nav__links a:hover::after,
.ff-nav__links .current-menu-item > a::after { transform: scaleX(1); }

.ff-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle switch */
.ff-theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--ff-line-2);
  background: var(--ff-bg-2);
  cursor: pointer;
  transition: border-color var(--ff-dur) var(--ff-ease),
              background var(--ff-dur) var(--ff-ease);
}
.ff-theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ff-accent);
  box-shadow: var(--ff-glow-sm);
  transition: transform var(--ff-dur) var(--ff-ease),
              background var(--ff-dur) var(--ff-ease);
}
body.theme-light .ff-theme-toggle::after { transform: translateX(24px); }
.ff-theme-toggle:hover { border-color: var(--ff-accent); }

/* Mobile nav toggle */
.ff-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--ff-line-2);
  background: var(--ff-bg-2);
  align-items: center;
  justify-content: center;
}
.ff-nav__toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ff-fg-0);
  position: relative;
}
.ff-nav__toggle span::before,
.ff-nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ff-fg-0);
}
.ff-nav__toggle span::before { top: -5px; }
.ff-nav__toggle span::after { top: 5px; }

@media (max-width: 900px) {
  .ff-nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ff-bg-2);
    border-bottom: 1px solid var(--ff-line);
    padding: 0.5rem var(--ff-gutter-x) 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ff-dur) var(--ff-ease),
                opacity var(--ff-dur) var(--ff-ease);
  }
  .ff-nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .ff-nav__links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--ff-line);
    width: 100%;
  }
  .ff-nav__links li:last-child a { border-bottom: 0; }
  .ff-nav__toggle { display: inline-flex; }
  .ff-nav__links .ff-btn { width: 100%; margin-top: 0.6rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.ff-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}

.ff-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 20% 0%, var(--ff-accent-wash), transparent 55%),
    radial-gradient(1000px 500px at 85% 120%, rgba(123, 140, 255, 0.06), transparent 60%);
}

.ff-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.ff-hero__eyebrow { margin-bottom: 1.2rem; }

.ff-hero__title {
  font-size: var(--ff-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.ff-hero__title .accent-line {
  display: block;
  background: linear-gradient(135deg, var(--ff-accent) 0%, var(--ff-accent-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ff-hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ff-fg-1);
  max-width: 58ch;
  margin-bottom: 2.2rem;
}

.ff-hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Hero "stat rail" — signal counters at the bottom */
.ff-hero__rail {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(1.2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--ff-line);
}
.ff-hero__rail-item { flex: 1; min-width: 120px; }
.ff-hero__rail-num {
  font-family: var(--ff-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--ff-fg-0);
  line-height: 1;
}
.ff-hero__rail-label {
  font-family: var(--ff-font-mono);
  font-size: var(--ff-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-fg-2);
  margin-top: 0.6rem;
}

/* ============================================================
   Service card — Antigravity-style magnetic tilt
   ============================================================ */
.ff-card {
  position: relative;
  display: block;
  padding: 1.8rem;
  border-radius: var(--ff-radius-lg);
  background: linear-gradient(180deg, var(--ff-bg-2), var(--ff-bg-2));
  border: 1px solid var(--ff-line);
  transform-style: preserve-3d;
  transition: transform 380ms var(--ff-ease-out),
              border-color var(--ff-dur) var(--ff-ease),
              background var(--ff-dur) var(--ff-ease);
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
  color: inherit;
}
/* Interactive lean driven by JS via --rx / --ry custom props */
.ff-card.ff-card--magnetic {
  transform: perspective(1100px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg))
             translateZ(0);
}
.ff-card::before {
  /* Cursor-following light sweep */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 300px at var(--mx, 50%) var(--my, 50%),
                              var(--ff-accent-soft) 0%,
                              transparent 55%);
  opacity: 0;
  transition: opacity var(--ff-dur) var(--ff-ease);
  z-index: -1;
  pointer-events: none;
}
.ff-card::after {
  /* Outline that brightens near the cursor */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
                              var(--ff-accent) 0%,
                              transparent 40%,
                              transparent 60%,
                              var(--ff-accent-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--ff-dur) var(--ff-ease);
  pointer-events: none;
}
.ff-card:hover { border-color: var(--ff-line-strong); }
.ff-card:hover::before { opacity: 1; }
.ff-card:hover::after { opacity: 0.7; }

.ff-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-accent-soft);
  color: var(--ff-accent);
  margin-bottom: 1.2rem;
  transition: transform var(--ff-dur) var(--ff-ease),
              box-shadow var(--ff-dur) var(--ff-ease);
  transform: translateZ(30px);  /* depth pop on tilt */
}
.ff-card:hover .ff-card__icon {
  box-shadow: var(--ff-glow-sm);
}
.ff-card__icon svg { width: 24px; height: 24px; }

.ff-card__title {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
  color: var(--ff-fg-0);
  transform: translateZ(25px);
}
.ff-card__desc {
  color: var(--ff-fg-1);
  font-size: 0.95rem;
  line-height: 1.65;
  transform: translateZ(15px);
}

.ff-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.3rem;
  font-family: var(--ff-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-accent);
  transform: translateZ(20px);
}
.ff-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ff-dur) var(--ff-ease);
}
.ff-card:hover .ff-card__cta svg { transform: translateX(4px); }

/* ============================================================
   Grid utility used by services, blog, etc.
   ============================================================ */
.ff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.ff-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ff-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============================================================
   Section title
   ============================================================ */
.ff-section-title {
  max-width: 760px;
  margin-bottom: 3rem;
}
.ff-section-title__eyebrow { margin-bottom: 0.9rem; }
.ff-section-title__title {
  font-size: var(--ff-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}
.ff-section-title__lede {
  color: var(--ff-fg-1);
  font-size: 1.05rem;
  max-width: 58ch;
}
.ff-section-title--center { margin-inline: auto; text-align: center; }
.ff-section-title--center .ff-eyebrow { justify-content: center; }

/* ============================================================
   Stats block
   ============================================================ */
.ff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ff-line);
  border-bottom: 1px solid var(--ff-line);
}
.ff-stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--ff-line);
  position: relative;
}
.ff-stat:last-child { border-right: 0; }
.ff-stat__num {
  font-family: var(--ff-font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ff-fg-0);
}
.ff-stat__num .suffix { color: var(--ff-accent); font-size: 0.7em; margin-left: 0.1em; }
.ff-stat__label {
  font-family: var(--ff-font-mono);
  font-size: var(--ff-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-fg-2);
  margin-top: 0.8rem;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.ff-faq { border-top: 1px solid var(--ff-line); }
.ff-faq__item { border-bottom: 1px solid var(--ff-line); }
.ff-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--ff-font-display);
  font-size: 1.12rem;
  color: var(--ff-fg-0);
}
.ff-faq__icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ff-line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--ff-dur) var(--ff-ease),
              background var(--ff-dur) var(--ff-ease);
}
.ff-faq__icon::before,
.ff-faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--ff-dur) var(--ff-ease);
}
.ff-faq__icon::before { width: 10px; height: 1px; }
.ff-faq__icon::after { width: 1px; height: 10px; }
.ff-faq__item.is-open .ff-faq__icon {
  background: var(--ff-accent);
  border-color: var(--ff-accent);
  color: #000;
}
.ff-faq__item.is-open .ff-faq__icon::after { transform: scaleY(0); }
.ff-faq__a {
  max-height: 0;
  overflow: hidden;
  color: var(--ff-fg-1);
  transition: max-height 420ms var(--ff-ease);
}
.ff-faq__a-inner { padding: 0 0 1.4rem; max-width: 72ch; }
.ff-faq__item.is-open .ff-faq__a { max-height: 600px; }

/* ============================================================
   Marquee (tech stack / client logos)
   ============================================================ */
.ff-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding-block: 2rem;
  border-block: 1px solid var(--ff-line);
}
.ff-marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: ff-marquee-scroll 34s linear infinite;
}
.ff-marquee:hover .ff-marquee__track { animation-play-state: paused; }
.ff-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ff-fg-2);
  font-family: var(--ff-font-display);
  font-size: 1.1rem;
  opacity: 0.85;
  transition: color var(--ff-dur) var(--ff-ease), opacity var(--ff-dur) var(--ff-ease);
}
.ff-marquee__item:hover { color: var(--ff-accent); opacity: 1; }
.ff-marquee__item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
@keyframes ff-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Footer
   ============================================================ */
.ff-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--ff-bg-1), var(--ff-bg-0));
  border-top: 1px solid var(--ff-line);
  padding-block: 4rem 2rem;
}
.ff-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .ff-footer__grid { grid-template-columns: 1fr 1fr; }
  .ff-footer__brand { grid-column: 1 / -1; }
}
.ff-footer__brand-line {
  color: var(--ff-fg-2);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 38ch;
}
.ff-footer__col-title {
  font-family: var(--ff-font-mono);
  font-size: var(--ff-tiny);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ff-fg-2);
  margin-bottom: 1.1rem;
}
.ff-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ff-footer__nav a {
  color: var(--ff-fg-1);
  font-size: 0.94rem;
  transition: color var(--ff-dur-fast) var(--ff-ease);
}
.ff-footer__nav a:hover { color: var(--ff-accent); }

.ff-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ff-line);
  font-size: var(--ff-small);
  color: var(--ff-fg-2);
}

/* ============================================================
   Client portal (native WP auth surfaces)
   Styles wp_login_form(), the Elementor login widget, and our
   portal pages so they share the theme's language.
   ============================================================ */
.ff-portal {
  max-width: 440px;
  margin: 4rem auto;
  padding: 2.4rem 2.2rem;
  background: var(--ff-bg-2);
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius-lg);
  box-shadow: var(--ff-shadow-panel);
}
.ff-portal h1, .ff-portal h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.ff-portal p.lede { color: var(--ff-fg-1); margin-bottom: 1.6rem; font-size: 0.95rem; }
.ff-portal label {
  display: block;
  font-family: var(--ff-font-mono);
  font-size: var(--ff-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ff-fg-2);
  margin-bottom: 0.4rem;
}
.ff-portal input[type="text"],
.ff-portal input[type="email"],
.ff-portal input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--ff-font-body);
  font-size: 0.98rem;
  color: var(--ff-fg-0);
  background: var(--ff-bg-1);
  border: 1px solid var(--ff-line-2);
  border-radius: var(--ff-radius);
  transition: border-color var(--ff-dur) var(--ff-ease),
              box-shadow var(--ff-dur) var(--ff-ease);
}
.ff-portal input:focus {
  outline: none;
  border-color: var(--ff-accent);
  box-shadow: 0 0 0 3px var(--ff-accent-soft);
}
.ff-portal p.form-row { margin-bottom: 1.1rem; }
.ff-portal p.submit { margin-top: 1.4rem; }
.ff-portal input[type="submit"],
.ff-portal .button-primary,
.ff-portal .wp-submit {
  width: 100%;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--ff-accent);
  color: #000;
  font-family: var(--ff-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: box-shadow var(--ff-dur) var(--ff-ease),
              transform var(--ff-dur) var(--ff-ease);
}
.ff-portal input[type="submit"]:hover,
.ff-portal .button-primary:hover,
.ff-portal .wp-submit:hover {
  box-shadow: var(--ff-glow-md);
  transform: translateY(-1px);
}
.ff-portal .ff-portal__meta {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--ff-line);
  font-size: var(--ff-small);
  color: var(--ff-fg-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Generic content (page.php / single.php body)
   ============================================================ */
.ff-content {
  max-width: 760px;
  margin-inline: auto;
  color: var(--ff-fg-1);
  font-size: 1.05rem;
  line-height: 1.8;
}
.ff-content h2 { margin: 2.6em 0 0.8em; font-size: clamp(1.6rem, 2.5vw, 2.1rem); color: var(--ff-fg-0); }
.ff-content h3 { margin: 2em 0 0.6em; font-size: 1.3rem; color: var(--ff-fg-0); }
.ff-content a { border-bottom: 1px solid var(--ff-line-strong); }
.ff-content a:hover { border-color: var(--ff-accent); }
.ff-content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  border-left: 2px solid var(--ff-accent);
  background: var(--ff-accent-wash);
  font-family: var(--ff-font-display);
  font-size: 1.15rem;
  color: var(--ff-fg-0);
}
.ff-content ul, .ff-content ol { padding-left: 1.4em; margin: 1em 0; }
.ff-content code, .ff-content pre {
  font-family: var(--ff-font-mono);
  font-size: 0.92em;
  background: var(--ff-bg-2);
  border: 1px solid var(--ff-line);
  border-radius: 6px;
}
.ff-content code { padding: 0.1em 0.35em; }
.ff-content pre { padding: 1em 1.2em; overflow-x: auto; }

/* ============================================================
   Elementor compatibility helpers
   The Elementor panel wraps every widget output in .elementor-widget.
   These rules make sure FF widget CSS still resolves cleanly inside
   Elementor's section/column system and inside the editor iframe.
   ============================================================ */
.elementor-widget-ff_hero,
.elementor-widget-ff_services_grid,
.elementor-widget-ff_stats { width: 100%; }

/* Elementor section backgrounds should play nice with our body grid */
.elementor-section-wrap > .elementor-section { isolation: isolate; }

/* Helper: full-bleed section inside Elementor default container */
.ff-full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ============================================================
   WordPress core alignment / block helpers
   ============================================================ */
.alignwide { max-width: 1080px; margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; text-align: center; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  position: absolute; overflow: hidden;
}
.wp-caption { margin: 1em 0; }
.wp-caption-text { font-size: var(--ff-small); color: var(--ff-fg-2); }
