/*
Theme Name: Prince Francis Group
Theme URI: https://princefrancisgroup.com
Author: Prince Francis Group
Author URI: https://princefrancisgroup.com
Description: World-class luxury marketing agency theme, AI-powered, design-forward, premium.
Version: 2.0.0
License: Private
Text Domain: pfg
Tags: luxury, marketing, agency, ai, full-width
*/

/* ============================================================
   PFG DESIGN SYSTEM: MASTER CSS
   Luxury Tech Aesthetic | Version 2.0 | 2026
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------------------- */
:root {
  /* Brand Colors */
  --pfg-black:        #0A0A0A;
  --pfg-offwhite:     #F8F6F2;
  --pfg-gold:         #C9A84C;
  --pfg-gold-light:   #E2C97A;
  --pfg-gold-dark:    #A88832;
  --pfg-teal:         #00D4C8;
  --pfg-teal-dark:    #00AFA4;
  --pfg-charcoal:     #2D2D2D;
  --pfg-slate:        #4A4A4A;
  --pfg-mid:          #6B6B6B;
  --pfg-light:        #C8C4BC;
  --pfg-border:       rgba(201,168,76,0.18);
  --pfg-border-light: rgba(255,255,255,0.08);

  /* Dark Mode Surface Colors */
  --pfg-surface-1:    #111111;
  --pfg-surface-2:    #161616;
  --pfg-surface-3:    #1E1E1E;
  --pfg-surface-4:    #252525;

  /* Typography Scale */
  --font-display:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-headline:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:        'Space Mono', 'Courier New', monospace;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.625rem, 1vw, 0.75rem);
  --text-sm:   clamp(0.75rem, 1.5vw, 0.875rem);
  --text-base: clamp(0.9375rem, 1.8vw, 1.0625rem);
  --text-lg:   clamp(1.0625rem, 2vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 3vw, 2rem);
  --text-3xl:  clamp(2rem, 4vw, 3rem);
  --text-4xl:  clamp(2.5rem, 5vw, 4rem);
  --text-5xl:  clamp(3.5rem, 7vw, 6rem);
  --text-6xl:  clamp(4.5rem, 9vw, 8.5rem);

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40:  10rem;

  /* Layout */
  --container-max:   1440px;
  --container-wide:  1280px;
  --container-base:  1100px;
  --container-narrow: 760px;

  /* Animation */
  --ease-luxury:   cubic-bezier(0.25, 0, 0.1, 1);
  --ease-reveal:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:      180ms;
  --dur-base:      320ms;
  --dur-slow:      600ms;
  --dur-xslow:     1000ms;

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-gold:   0 0 0 1px rgba(201,168,76,0.3), 0 8px 32px rgba(201,168,76,0.12);
  --shadow-dark:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-xl:     0 20px 60px rgba(0,0,0,0.5);
}


/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--pfg-offwhite);
  background-color: var(--pfg-black);
  overflow-x: hidden;
}

body.light-mode {
  color: var(--pfg-offwhite);
  background-color: var(--pfg-black);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

::selection {
  background: var(--pfg-gold);
  color: var(--pfg-black);
}


/* ----------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   ---------------------------------------------------------- */

/* Display, Cormorant Garamond */
.t-display-hero {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-style: italic;
}

.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.t-display-md {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
}

/* Headline, Inter */
.t-headline-xl {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.t-headline-lg {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.t-headline-md {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.t-headline-sm {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Body */
.t-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  font-weight: 300;
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  font-weight: 400;
}

.t-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Label / Eyebrow */
.t-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-gold);
}

.t-label-light {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-teal);
}

/* Mono */
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}


/* ----------------------------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-base);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--full {
  width: 100%;
  padding-inline: var(--space-8);
}

.section {
  padding-block: var(--space-32);
}

.section--lg {
  padding-block: var(--space-40);
}

.section--sm {
  padding-block: var(--space-20);
}

.section--flush {
  padding-block: 0;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.grid-asym {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: var(--space-16);
  align-items: center;
}

.grid-asym--rev {
  grid-template-columns: 1.618fr 1fr;
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Color Utilities */
.text-gold     { color: var(--pfg-gold); }
.text-teal     { color: var(--pfg-teal); }
.text-offwhite { color: var(--pfg-offwhite); }
.text-mid      { color: var(--pfg-mid); }
.text-light    { color: var(--pfg-light); }
.text-black    { color: var(--pfg-black); }

/* Background */
.bg-black    { background-color: var(--pfg-black); }
.bg-offwhite { background-color: var(--pfg-offwhite); }
.bg-dark-1   { background-color: var(--pfg-surface-1); }
.bg-dark-2   { background-color: var(--pfg-surface-2); }
.bg-dark-3   { background-color: var(--pfg-surface-3); }

/* Borders */
.border-gold   { border-color: var(--pfg-gold); }
.border-teal   { border-color: var(--pfg-teal); }
.border-subtle { border-color: var(--pfg-border-light); }

/* Dividers */
.rule-gold {
  width: 64px;
  height: 1px;
  background: var(--pfg-gold);
  display: block;
}

.rule-teal {
  width: 64px;
  height: 1px;
  background: var(--pfg-teal);
  display: block;
}

.rule-full {
  width: 100%;
  height: 1px;
  background: var(--pfg-border-light);
  display: block;
}


/* ----------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------- */
#pfg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 96px;
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-luxury),
              border-color var(--dur-base) var(--ease-luxury),
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pfg-nav.scrolled {
  height: 64px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pfg-border-light);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark / Logo */
.nav-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 88px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  transform-origin: left center;
}

.nav-logo:hover {
  opacity: 0.85;
}

#pfg-nav.scrolled .nav-logo {
  height: 44px;
}

[data-theme="light"] .nav-logo {
  filter: none;
}

/* Legacy text spans (hidden when logo present) */
.nav-wordmark__primary,
.nav-wordmark__sub {
  display: none;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a,
.nav-dropdown-trigger {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(248,246,242,0.75);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-luxury);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-dropdown-trigger:hover {
  color: var(--pfg-offwhite);
}

.nav-links a.active {
  color: var(--pfg-gold);
}

/* Dropdown chevron */
.nav-dropdown-trigger svg {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease-luxury);
}

.nav-dropdown-trigger.open svg {
  transform: rotate(180deg);
}

/* Mega Menu */
.nav-mega {
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--pfg-border-light);
  padding: var(--space-8) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-luxury),
              visibility var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-luxury);
}

.nav-mega.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mega-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: var(--space-8);
}

.nav-mega-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-luxury),
              background var(--dur-fast) var(--ease-luxury);
}

.nav-mega-item:hover {
  border-color: var(--pfg-border-light);
  background: rgba(255,255,255,0.03);
}

.nav-mega-item__icon {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.nav-mega-item__label {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  letter-spacing: -0.01em;
}

.nav-mega-item__desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--pfg-mid);
  line-height: 1.5;
}

.nav-mega-item__link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--pfg-gold);
  text-transform: uppercase;
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-mega-featured {
  border-left: 1px solid var(--pfg-border-light);
  padding-left: var(--space-8);
}

.nav-mega-featured__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-teal);
  margin-bottom: var(--space-4);
}

.nav-mega-featured__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pfg-offwhite);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.nav-mega-featured__text {
  font-size: 0.8rem;
  color: var(--pfg-mid);
  line-height: 1.6;
}

/* CTA Button in Nav */
.btn-nav {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-black);
  background: var(--pfg-gold);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-luxury),
              transform var(--dur-fast) var(--ease-snap);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--pfg-gold-light);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--pfg-offwhite);
  transition: transform var(--dur-base) var(--ease-luxury),
              opacity var(--dur-base) var(--ease-luxury);
}

.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pfg-black);
  z-index: 1090;
  pointer-events: none;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-reveal);
}

.nav-mobile.open {
  pointer-events: auto;
  transform: translateX(0);
}

.nav-mobile-inner {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--pfg-border-light);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--pfg-offwhite);
  font-weight: 400;
}

.nav-mobile-sub {
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-reveal);
}

.nav-mobile-sub.open {
  max-height: 600px;
}

.nav-mobile-sub a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pfg-mid);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--dur-fast);
}

.nav-mobile-sub a:hover {
  color: var(--pfg-gold);
}


/* ----------------------------------------------------------
   6. BUTTON SYSTEM
   ---------------------------------------------------------- */

/* Primary CTA, Gold */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-black);
  background: var(--pfg-gold);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-snap),
              box-shadow var(--dur-base) var(--ease-luxury);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-110%);
  transition: transform var(--dur-base) var(--ease-luxury);
  skew: -15deg;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}

.btn-primary:hover::before {
  transform: translateX(110%);
}

/* Secondary, Ghost Gold */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  background: transparent;
  border: 1px solid var(--pfg-gold);
  padding: 15px 31px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-base) var(--ease-luxury),
              background var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-snap);
}

.btn-secondary:hover {
  color: var(--pfg-black);
  background: var(--pfg-gold);
  transform: translateY(-2px);
}

/* Ghost White */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-offwhite);
  background: transparent;
  border: 1px solid rgba(248,246,242,0.3);
  padding: 15px 31px;
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-luxury),
              background var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-snap);
}

.btn-ghost:hover {
  border-color: var(--pfg-offwhite);
  background: rgba(248,246,242,0.06);
  transform: translateY(-2px);
}

/* Teal, AI section */
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-black);
  background: var(--pfg-teal);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-snap),
              box-shadow var(--dur-base) var(--ease-luxury);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,200,0.3);
}

/* Arrow icon in buttons */
.btn-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-snap);
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow,
.btn-teal:hover .btn-arrow {
  transform: translateX(4px);
}

/* Text Link */
.link-underline {
  position: relative;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--pfg-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pfg-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-luxury);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* ----------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-24);
  overflow: hidden;
}

.hero--center {
  align-items: center;
  padding-bottom: 0;
  text-align: center;
}

.hero--mid {
  min-height: 70vh;
  align-items: center;
}

/* Hero video/image background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__video,
.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay */
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.35) 30%,
    rgba(10,10,10,0.75) 70%,
    rgba(10,10,10,0.97) 100%
  );
}

.hero-bg__overlay--dark {
  background: rgba(10,10,10,0.7);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-reveal) 0.2s,
              transform var(--dur-slow) var(--ease-reveal) 0.2s;
}

.hero-eyebrow.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--pfg-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--pfg-offwhite);
  max-width: 960px;
  margin-bottom: var(--space-8);
}

.hero-title em {
  font-style: italic;
  color: var(--pfg-gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(248,246,242,0.75);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Animated hero word reveal */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-title .word span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform var(--dur-xslow) var(--ease-reveal);
}

.hero-title .word span.revealed {
  transform: translateY(0);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(248,246,242,0.4);
}

.hero-scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--pfg-gold));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.hero-scroll-indicator__text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}


/* ----------------------------------------------------------
   8. TRUST BAR
   ---------------------------------------------------------- */
.trust-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--pfg-border-light);
  border-bottom: 1px solid var(--pfg-border-light);
  padding: var(--space-5) 0;
}

.trust-bar-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.trust-bar__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pfg-mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-bar__divider {
  width: 1px;
  height: 20px;
  background: var(--pfg-border-light);
  flex-shrink: 0;
}

.trust-bar__brands {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  overflow: hidden;
}

.trust-bar__brand {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.6);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-luxury);
}

.trust-bar__brand:hover {
  color: rgba(248,246,242,0.6);
}

/* Scrolling trust bar */
.trust-bar--scroll .trust-bar__brands {
  animation: trustScroll 30s linear infinite;
}

@keyframes trustScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ----------------------------------------------------------
   9. STATS / METRICS
   ---------------------------------------------------------- */
.stats-section {
  background: var(--pfg-surface-1);
  border-top: 1px solid var(--pfg-border-light);
  border-bottom: 1px solid var(--pfg-border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  divide-x: 1px solid var(--pfg-border-light);
}

.stat-item {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--pfg-border-light);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--pfg-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-mid);
}


/* ----------------------------------------------------------
   10. SERVICE CARDS
   ---------------------------------------------------------- */
.service-card {
  position: relative;
  background: var(--pfg-surface-1);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-snap),
              box-shadow var(--dur-base) var(--ease-luxury);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-luxury);
}

.service-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--pfg-border);
  border-radius: var(--radius-sm);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--pfg-gold);
  opacity: 0.5;
}

.service-card__title {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-card__body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(248,246,242,0.6);
  flex: 1;
}

.service-card__link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) var(--ease-luxury),
              transform var(--dur-fast) var(--ease-luxury);
}

.service-card:hover .service-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* Always show card link on touch devices */
@media (hover: none) {
  .service-card__link {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AI Service Card Variant */
.service-card--teal {
  border-color: rgba(0,212,200,0.15);
}

.service-card--teal:hover {
  border-color: rgba(0,212,200,0.4);
  box-shadow: 0 0 0 1px rgba(0,212,200,0.2), 0 8px 32px rgba(0,212,200,0.1);
}

.service-card--teal::before {
  background: linear-gradient(135deg, rgba(0,212,200,0.05) 0%, transparent 60%);
}

.service-card--teal .service-card__icon {
  background: rgba(0,212,200,0.08);
  border-color: rgba(0,212,200,0.2);
}

.service-card--teal .service-card__number {
  color: var(--pfg-teal);
}

.service-card--teal .service-card__link {
  color: var(--pfg-teal);
}


/* ----------------------------------------------------------
   11. SECTION HEADERS
   ---------------------------------------------------------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 680px;
}

.section-header--center {
  align-items: center;
  text-align: center;
  max-width: 100%;
}

.section-header--wide {
  max-width: 100%;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--pfg-gold);
  flex-shrink: 0;
}

.section-eyebrow--teal {
  color: var(--pfg-teal);
}

.section-eyebrow--teal::before {
  background: var(--pfg-teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pfg-offwhite);
}

.section-title em {
  font-style: italic;
  color: var(--pfg-gold);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(248,246,242,0.65);
}


/* ----------------------------------------------------------
   12. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-reveal),
              transform var(--dur-slow) var(--ease-reveal);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="left"].revealed {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="right"].revealed {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-reveal),
              transform var(--dur-slow) var(--ease-reveal);
}

[data-stagger].staggered > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(7) { transition-delay: 600ms; opacity: 1; transform: none; }
[data-stagger].staggered > *:nth-child(8) { transition-delay: 700ms; opacity: 1; transform: none; }


/* ----------------------------------------------------------
   13. PROCESS SECTION
   ---------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--pfg-gold) 0%, rgba(201,168,76,0.3) 100%);
}

.process-step {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.process-step__num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--pfg-black);
  border: 1px solid var(--pfg-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pfg-gold);
  position: relative;
  z-index: 1;
  transition: background var(--dur-base) var(--ease-luxury);
}

.process-step:hover .process-step__num {
  background: rgba(201,168,76,0.1);
}

.process-step__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  letter-spacing: -0.01em;
}

.process-step__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(248,246,242,0.55);
  line-height: 1.7;
}


/* ----------------------------------------------------------
   14. CTA STRIP
   ---------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--pfg-surface-2) 0%, var(--pfg-black) 100%);
  border-top: 1px solid var(--pfg-border-light);
  border-bottom: 1px solid var(--pfg-border-light);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip--teal::before {
  background: radial-gradient(circle, rgba(0,212,200,0.06) 0%, transparent 70%);
}

.cta-strip-inner {
  max-width: var(--container-base);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-strip-content {
  max-width: 600px;
}

.cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pfg-offwhite);
  margin-bottom: var(--space-3);
}

.cta-strip__text {
  font-size: 0.9375rem;
  color: rgba(248,246,242,0.6);
  line-height: 1.7;
}

.cta-strip-actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}


/* ----------------------------------------------------------
   15. FEATURE ROW (Text + Image alternating)
   ---------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--pfg-border-light);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row--reverse .feature-row__visual {
  order: -1;
}

.feature-row__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.feature-row__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--pfg-offwhite);
}

.feature-row__body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(248,246,242,0.65);
}

.feature-row__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-row__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(248,246,242,0.7);
  line-height: 1.6;
}

.feature-row__list-item::before {
  content: '•';
  color: var(--pfg-gold);
  flex-shrink: 0;
  font-size: 0.6rem;
  margin-top: 5px;
}

.feature-row__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--pfg-surface-2);
  border: 1px solid var(--pfg-border-light);
}

.feature-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder visual */
.visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--pfg-mid);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.visual-placeholder__icon {
  font-size: 2rem;
  opacity: 0.3;
}


/* ----------------------------------------------------------
   16. TESTIMONIALS
   ---------------------------------------------------------- */
.testimonial-card {
  background: var(--pfg-surface-1);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--pfg-gold);
  opacity: 0.1;
  line-height: 1;
  font-style: normal;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--pfg-offwhite);
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pfg-surface-3);
  border: 1px solid var(--pfg-border-light);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
}

.testimonial-card__role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--pfg-gold);
  text-transform: uppercase;
}

.testimonial-card__stars {
  color: var(--pfg-gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}


/* ----------------------------------------------------------
   17. AI SECTION SPECIAL
   ---------------------------------------------------------- */
.ai-section {
  background: var(--pfg-black);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,200,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.ai-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Neural network animation canvas */
.ai-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  z-index: 0;
}

.ai-section .section-eyebrow {
  color: var(--pfg-teal);
}

.ai-section .section-eyebrow::before {
  background: var(--pfg-teal);
}

/* AI Stack diagram */
.ai-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.ai-stack-layer {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,200,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: border-color var(--dur-base) var(--ease-luxury),
              background var(--dur-base) var(--ease-luxury);
}

.ai-stack-layer:hover {
  border-color: rgba(0,212,200,0.4);
  background: rgba(0,212,200,0.04);
}

.ai-stack-layer__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pfg-teal);
  width: 80px;
  flex-shrink: 0;
}

.ai-stack-layer__bar {
  flex: 1;
  height: 4px;
  background: rgba(0,212,200,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.ai-stack-layer__fill {
  height: 100%;
  background: var(--pfg-teal);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s var(--ease-reveal);
}

.ai-stack-layer__fill.animated {
  /* width set via inline style */
}

.ai-stack-layer__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(248,246,242,0.65);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}


/* ----------------------------------------------------------
   18. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--pfg-black);
  border-top: 1px solid var(--pfg-border-light);
  padding-top: var(--space-20);
}

.footer-top {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--pfg-border-light);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--pfg-offwhite);
  text-transform: uppercase;
}

.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-5);
}

[data-theme="light"] .footer-logo {
  filter: none;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(248,246,242,0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pfg-mid);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast) var(--ease-luxury),
              color var(--dur-fast) var(--ease-luxury),
              background var(--dur-fast) var(--ease-luxury);
}

.footer-social-link:hover {
  border-color: var(--pfg-gold);
  color: var(--pfg-gold);
  background: rgba(201,168,76,0.06);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248,246,242,0.5);
  transition: color var(--dur-fast) var(--ease-luxury);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-nav a:hover {
  color: var(--pfg-offwhite);
}

.footer-bottom {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom__copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(248,246,242,0.25);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(248,246,242,0.25);
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.footer-bottom-links a:hover {
  color: rgba(248,246,242,0.6);
}


/* ----------------------------------------------------------
   19. PAGE HERO (service pages)
   ---------------------------------------------------------- */
.page-hero {
  padding-top: 76px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero--dark {
  background: var(--pfg-surface-1);
  border-bottom: 1px solid var(--pfg-border-light);
}

.page-hero--ai {
  background: var(--pfg-black);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-20);
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,246,242,0.35);
}

.page-hero-breadcrumb a {
  color: inherit;
  transition: color var(--dur-fast);
}

.page-hero-breadcrumb a:hover {
  color: var(--pfg-gold);
}

.page-hero-breadcrumb span {
  opacity: 0.4;
}


/* ----------------------------------------------------------
   20. FORMS
   ---------------------------------------------------------- */
.pfg-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-mid);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--pfg-surface-2);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-sm);
  color: var(--pfg-offwhite);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--dur-fast) var(--ease-luxury),
              box-shadow var(--dur-fast) var(--ease-luxury);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--pfg-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(248,246,242,0.25);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--pfg-surface-2);
  color: var(--pfg-offwhite);
}


/* ----------------------------------------------------------
   21. CASE STUDY CARDS
   ---------------------------------------------------------- */
.case-card {
  position: relative;
  background: var(--pfg-surface-1);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-snap),
              border-color var(--dur-base) var(--ease-luxury);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--pfg-border);
}

.case-card__visual {
  aspect-ratio: 16/9;
  background: var(--pfg-surface-2);
  overflow: hidden;
  position: relative;
}

.case-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-luxury);
}

.case-card:hover .case-card__visual img {
  transform: scale(1.04);
}

.case-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-luxury);
}

.case-card:hover .case-card__overlay {
  opacity: 1;
}

.case-card__stat {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--pfg-gold);
  font-weight: 400;
  text-align: center;
}

.case-card__stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-offwhite);
  text-align: center;
  margin-top: var(--space-2);
}

.case-card__body {
  padding: var(--space-6);
}

.case-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  margin-bottom: var(--space-3);
}

.case-card__title {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.case-card__desc {
  font-size: 0.85rem;
  color: rgba(248,246,242,0.5);
  line-height: 1.65;
}


/* ----------------------------------------------------------
   22. CONSULTING ENGAGEMENT CARDS
   ---------------------------------------------------------- */
.engagement-card {
  background: var(--pfg-surface-1);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--dur-base) var(--ease-luxury),
              transform var(--dur-base) var(--ease-snap);
}

.engagement-card:hover {
  border-color: var(--pfg-border);
  transform: translateY(-3px);
}

.engagement-card__type {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  margin-bottom: var(--space-4);
}

.engagement-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pfg-offwhite);
  margin-bottom: var(--space-3);
}

.engagement-card__desc {
  font-size: 0.875rem;
  color: rgba(248,246,242,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.engagement-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.engagement-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: rgba(248,246,242,0.65);
}

.engagement-card__feature::before {
  content: '→';
  color: var(--pfg-gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   23. PAGE TRANSITIONS & LOADING
   ---------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--pfg-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-luxury),
              visibility 0.6s var(--ease-luxury);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.page-loader__logo {
  width: 180px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.4s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.page-loader__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--pfg-gold);
  animation: loaderBar 1.2s var(--ease-reveal) forwards;
}

@keyframes loaderBar {
  0%   { width: 0; }
  100% { width: 100%; }
}


/* ----------------------------------------------------------
   24. CURSOR (Desktop)
   ---------------------------------------------------------- */
.pfg-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
}

.pfg-cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--pfg-offwhite);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-snap), width 0.2s, height 0.2s;
}

.pfg-cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,168,76,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.3s var(--ease-luxury), width 0.3s, height 0.3s;
}

body.cursor-hover .pfg-cursor__ring {
  width: 60px;
  height: 60px;
  border-color: var(--pfg-gold);
}


/* ----------------------------------------------------------
   25. DARK / LIGHT MODE TOGGLE
   ---------------------------------------------------------- */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--pfg-surface-3);
  border: 1px solid var(--pfg-border-light);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-luxury);
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--pfg-mid);
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-snap),
              background var(--dur-base) var(--ease-luxury);
}

.theme-toggle.light::after {
  transform: translateX(20px);
  background: var(--pfg-gold);
}

.theme-toggle.light {
  background: rgba(201,168,76,0.15);
}


/* ----------------------------------------------------------
   26. UTILITIES, VISIBILITY / SPACING
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.w-full    { width: 100%; }
.max-w-sm  { max-width: var(--container-narrow); }
.max-w-lg  { max-width: var(--container-base); }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }
.z-1             { z-index: 1; }


/* ----------------------------------------------------------
   27. RESPONSIVE, TABLET
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-asym,
  .grid-asym--rev {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .grid-asym--rev .feature-row__visual {
    order: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid .stat-item:nth-child(4),
  .stats-grid .stat-item:nth-child(5) {
    border-top: 1px solid var(--pfg-border-light);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .process-grid::before {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-mega-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-mega-featured {
    display: none;
  }

  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-row--reverse .feature-row__visual {
    order: 0;
  }
}


/* ----------------------------------------------------------
   28. RESPONSIVE, MOBILE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-6xl: clamp(2.8rem, 12vw, 4.5rem);
    --text-5xl: clamp(2.2rem, 10vw, 3.5rem);
    --text-4xl: clamp(1.8rem, 8vw, 2.8rem);
  }

  .container,
  .container--wide,
  .container--narrow,
  .container--full {
    padding-inline: var(--space-5);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-20);
  }

  .section--lg {
    padding-block: var(--space-24);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid .stat-item:nth-child(odd) {
    border-right: 1px solid var(--pfg-border-light);
  }

  /* Last stat spans full width if odd total */
  .stats-grid .stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--pfg-border-light);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .trust-bar__divider {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .pfg-cursor,
  .pfg-cursor__ring {
    display: none;
  }

  .nav-mega {
    display: none;
  }
}

@media (max-width: 480px) {
  #pfg-nav {
    height: 64px;
  }

  .nav-mobile {
    top: 64px;
  }
}

#pfg-nav.scrolled ~ .nav-mega,
#pfg-nav.scrolled ~ .nav-mobile {
  top: 64px;
}


/* ----------------------------------------------------------
   28b. CASE STUDY CARD (archive template variant)
   ---------------------------------------------------------- */
.case-study-card {
  position: relative;
  background: var(--pfg-surface-1);
  border: 1px solid var(--pfg-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-snap),
              border-color var(--dur-base) var(--ease-luxury);
}

.case-study-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.3);
}

.case-study-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-study-card__image {
  aspect-ratio: 16/9;
  background: var(--pfg-surface-2);
  overflow: hidden;
  position: relative;
}

.case-study-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-luxury);
}

.case-study-card:hover .case-study-card__image img {
  transform: scale(1.04);
}

.case-study-card__stat {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}

.case-study-card__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pfg-gold);
  line-height: 1;
}

.case-study-card__stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.6);
  margin-top: 2px;
}

.case-study-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-study-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pfg-gold);
}

.case-study-card__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.case-study-card__excerpt {
  font-size: 0.825rem;
  color: rgba(248, 246, 242, 0.5);
  line-height: 1.65;
}

.case-study-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pfg-gold);
  margin-top: var(--space-2);
  transition: gap var(--dur-base) var(--ease-snap);
}

.case-study-card:hover .case-study-card__cta {
  gap: var(--space-3);
}


/* ----------------------------------------------------------
   28c. FILTER BUTTONS
   ---------------------------------------------------------- */
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--pfg-border-light);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfg-mid);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-luxury);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--pfg-gold);
  color: var(--pfg-gold);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--pfg-gold);
  border-color: var(--pfg-gold);
  color: var(--pfg-black);
}


/* ----------------------------------------------------------
   28d. PAGE CONTENT (prose area)
   ---------------------------------------------------------- */
.page-content h2,
.cs-content h2 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  margin: var(--space-8) 0 var(--space-4);
}

.page-content h3,
.cs-content h3 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pfg-offwhite);
  margin: var(--space-6) 0 var(--space-3);
}

.page-content p,
.cs-content p {
  margin-bottom: var(--space-5);
  line-height: 1.85;
}

.page-content ul,
.cs-content ul {
  padding-left: var(--space-5);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-content li,
.cs-content li {
  font-size: 0.9rem;
  color: rgba(248, 246, 242, 0.7);
  line-height: 1.7;
}

.page-content a {
  color: var(--pfg-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.4);
}

.page-content a:hover {
  text-decoration-color: var(--pfg-gold);
}


/* ----------------------------------------------------------
   29. PRINT STYLES
   ---------------------------------------------------------- */
@media print {
  #pfg-nav,
  .pfg-cursor,
  .pfg-cursor__ring,
  .page-loader,
  .hero-scroll-indicator,
  .nav-mobile {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}


/* ----------------------------------------------------------
   30. ACCESSIBILITY, REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
