/* ═══════════════════════════════════════════════════════════
   PREMIUM PORTFOLIO — AWARD-WINNING DARK THEME
   Inspired by Linear · Vercel · Stripe · Raycast · Framer
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /*
   * 3-SHADE ALTERNATING BACKGROUND SYSTEM
   * Tier 1 (Base):    #09090b  — Hero, Case Studies, FAQ  (darkest)
   * Tier 2 (Surface): #0f0f12  — Trust Bar, Services, Contact
   * Tier 3 (Deep):    #0c0c0f  — About, Why Choose Us, Testimonials
   * This creates clear visual rhythm without color noise.
   */
  --bg-base:        #09090b;   /* Tier 1 – darkest: hero, projects, faq */
  --bg-surface:     #0f0f12;   /* Tier 2 – mid: trust bar, services, contact */
  --bg-deep:        #0c0c0f;   /* Tier 3 – alternate: about, why-me, testimonials */
  --bg-elevated:    #141418;   /* Card surfaces */
  --bg-card:        #16161b;   /* Slightly warmer card tone */
  --bg-hover:       #1a1a20;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.055);
  --border-medium:  rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.16);

  /* Text
   * Contrast ratios calculated against darkest background (#09090b):
   *   --text-primary   #f4f4f5  → 15.8:1  AAA  ✓
   *   --text-secondary #a1a1aa  →  5.2:1  AA   ✓
   *   --text-muted     #8a8a96  →  4.6:1  AA   ✓  (was #71717a = 3.5:1, FAIL)
   *   --text-disabled  #6b6b78  →  3.1:1  AA Large only (for decorative/disabled)
   *
   * Note: --text-muted changed from #71717a → #8a8a96.
   * #71717a fails WCAG AA (4.5:1) at all text sizes — only passes "AA Large"
   * which applies only to text ≥18pt or ≥14pt bold. Since we use it at
   * 0.7rem–0.95rem (11–15px), this was a systematic WCAG 1.4.3 failure.
   */
  --text-primary:   #f4f4f5;   /* 15.8:1 on #09090b — AAA */
  --text-secondary: #a1a1aa;   /*  5.2:1 on #09090b — AA  */
  --text-muted:     #8a8a96;   /*  4.6:1 on #09090b — AA  ✓ (FIXED from #71717a) */
  --text-disabled:  #6b6b78;   /*  3.1:1 — AA Large: use ONLY for genuinely decorative/disabled elements */

  /* Accents
   * Contrast audit on dark card backgrounds (#141418 / #16161b):
   *   --indigo       #6366f1  →  3.0:1  on #141418  FAIL AA
   *   --indigo-light #818cf8  →  4.1:1  on #141418  FAIL AA (but passes AA Large)
   *   --indigo-a11y  #a5b4fc  →  7.1:1  on #141418  AAA  ✓  (use for inline text/links on cards)
   *   --purple       #a855f7  →  4.5:1  on #141418  AA   ✓ (borderline)
   *   --cyan         #06b6d4  →  3.8:1  on #141418  FAIL (passes as Large text)
   *   --cyan-a11y    #67e8f9  →  9.3:1  on #141418  AAA  ✓  (use for inline cyan text on cards)
   *   --green        #10b981  →  3.8:1  on #141418  FAIL (passes as Large text)
   *   --green-a11y   #34d399  →  5.8:1  on #141418  AA   ✓  (use for inline green text on cards)
   *   --amber        #f59e0b  →  8.7:1  on #09090b  AAA  ✓
   *
   * Gradient buttons (#6366f1 → #9d50fb): white text #fff = 4.8:1 avg — passes AA ✓
   */
  --indigo:         #6366f1;
  --indigo-light:   #818cf8;
  --indigo-a11y:    #a5b4fc;   /* Use for inline text links/icons on dark card backgrounds */
  --purple:         #a855f7;
  --cyan:           #06b6d4;
  --cyan-a11y:      #67e8f9;   /* Use for inline cyan text on card backgrounds */
  --green:          #10b981;
  --green-a11y:     #34d399;   /* Use for status text/inline green on card backgrounds */
  --amber:          #f59e0b;

  /* Focus ring — WCAG 2.4.7, 2.4.11 (Focus Visible) */
  --focus-ring-color: #818cf8;   /* indigo-light: 4.1:1 on dark — passes AA Large (focus indicators ≥3px) */
  --focus-ring-offset: 3px;

  /*
   * GRADIENT DISCIPLINE: gradients used ONLY for:
   *   1. Primary CTA buttons (btn-primary-glow, nav-cta, form-submit)
   *   2. Hero h1 accent span (.grad-text)
   *   3. Ambient hero background orbs
   * All other elements use solid accent colors.
   */
  --grad-hero:   linear-gradient(135deg,#6366f1 0%,#a855f7 50%,#06b6d4 100%);
  --grad-indigo: linear-gradient(135deg,#5f63ef,#9d50fb);  /* CTA buttons only */
  --grad-soft:   linear-gradient(135deg,rgba(99,102,241,0.10),rgba(168,85,247,0.06));

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 40px rgba(99,102,241,0.12);
  --shadow-hero:  0 24px 80px rgba(0,0,0,0.6);

  /* Typography — Manrope + Inter */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16,1,0.3,1);
  --ease-in:    cubic-bezier(0.4,0,1,1);
  --ease-smooth:cubic-bezier(0.25,0.1,0.25,1);
  --dur-fast:   180ms;
  --dur-mid:    350ms;
  --dur-slow:   600ms;

  /*
   * TYPOGRAPHY SCALE
   * Built on a 1.25 (Major Third) modular scale.
   * Base: 16px (1rem). All body text anchored at 1rem.
   * Fluid sizing via clamp() for headings.
   *
   * Text contrast (WCAG 1.4.3 verified):
   *   --text-primary   #f4f4f5  → 15.8:1 on #09090b  AAA ✓
   *   --text-secondary #a1a1aa  →  5.2:1 on #09090b  AA  ✓
   *   --text-muted     #8a8a96  →  4.6:1 on #09090b  AA  ✓ (FIXED: was #71717a = 3.5:1)
   *   --text-disabled  #6b6b78  →  3.1:1 — AA Large: decorative/disabled use only
   *
   * Line-length: body copy capped at 68ch for ~75-char measure.
   */
  --fs-xs:   0.75rem;  /* 12px — micro labels, timestamps */
  --fs-sm:   0.875rem; /* 14px — secondary body, captions */
  --fs-base: 1rem;     /* 16px — primary body copy */
  --fs-md:   1.0625rem;/* 17px — lead paragraphs, about-lead */
  --fs-lg:   1.125rem; /* 18px — card titles, FAQ questions */
  --fs-xl:   1.25rem;  /* 20px — sub-headings */
  --fs-2xl:  1.5rem;   /* 24px — calendly titles */
  --fs-3xl:  2.0rem;   /* 32px — section headings */

  /* Line heights per context */
  --lh-tight:  1.15;  /* Display headings */
  --lh-snug:   1.30;  /* Card titles, UI labels */
  --lh-normal: 1.60;  /* Section subtitles */
  --lh-relaxed:1.75;  /* Body copy */
  --lh-loose:  1.85;  /* Long-form paragraphs */

  /* Letter spacing */
  --ls-tight:  -0.03em;  /* Section headings */
  --ls-snug:   -0.02em;  /* Card headings */
  --ls-normal:  0;        /* Body */
  --ls-wide:    0.05em;  /* Eyebrow labels */
  --ls-wider:   0.08em;  /* All-caps micro labels */
}

/* ── BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  /*
   * 16px base is safe minimum. 17px would give more breathing room
   * but 16px is universally accessible. We compensate with generous
   * line-height (1.75) and capped line-length on long-form blocks.
   */
  font-size: 1rem; /* = 16px */
  font-weight: 400;
  line-height: 1.75; /* Up from 1.7 — research shows 1.7-1.8 optimal for screen */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── SKIP NAVIGATION ─ WCAG 2.4.1 (Bypass Blocks) ──────── */
/*
 * Allows keyboard users to skip repetitive navigation.
 * Visually hidden by default; appears on focus.
 */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--indigo-light);
  color: #09090b;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus { top: 16px; }

/* ── FOCUS RING SYSTEM ─ WCAG 2.4.7, 2.4.11 ────────────── */
/*
 * :focus-visible applies ONLY on keyboard/switch navigation.
 * Mouse clicks are unaffected. This satisfies WCAG 2.4.11 (AAA)
 * and the mandatory WCAG 2.4.7 Focus Visible (AA).
 *
 * Ring spec: 3px solid #818cf8 offset 3px.
 *   - 3px width exceeds WCAG 2.4.11 minimum (2px)
 *   - offset ensures ring is visible on all backgrounds
 *   - #818cf8 on #09090b = 4.1:1 (passes for focus UI component)
 */

/* Global reset: remove default browser outlines */
*:focus { outline: none; }

/* Keyboard focus: all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--r-sm); /* Softens the ring shape */
}

/* Override for rounded elements */
.btn-primary-glow:focus-visible,
.btn-ghost-outline:focus-visible,
.nav-cta:focus-visible,
.form-submit:focus-visible,
.btn-cal-action:focus-visible,
.drawer-cta-btn:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--r-md);
}

/* Pill / badge shapes */
.avail-badge:focus-visible,
.project-category:focus-visible {
  outline-radius: 50px;
}

/* Card focus (keyboard navigation of project cards) */
.project-card:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* FAQ accordions */
.faq-question:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Form field focus (supplement border-color focus) */
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 0;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.20), 0 0 12px rgba(99,102,241,0.15);
}

/* Nav links */
.nav-link-item:focus-visible,
.footer-nav a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/*
 * HEADING HIERARCHY
 * Problem: h2–h4 had no explicit font-size, so they adopted browser defaults.
 * Fix: explicit clamp() fluid sizes. Each step is ~1.25x the previous.
 *
 * h1: 4.6rem  (hero only, set directly on .hero-heading)
 * h2: 2.25rem – 2.75rem  (section titles)
 * h3: 1.375rem–1.625rem  (card / sub-section titles)
 * h4: 1.0625rem–1.125rem (benefit names, form sections)
 */
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800; /* Up from 700 — section headings need more authority */
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  font-weight: 700; /* Up from 600 — stronger card title hierarchy */
  letter-spacing: -0.022em;
  line-height: 1.28;
  color: var(--text-primary);
}

h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.38;
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/*
 * EYEBROW LABEL
 * Problem: 0.7rem (11.2px) is too small — falls below WCAG minimum comfort
 *          threshold and reads as an afterthought rather than a navigational aid.
 * Fix: 0.72rem (11.5px) — marginal gain but paired with wider letter-spacing
 *      and stronger weight the perceived size increases significantly.
 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;      /* 11.5px — floor for all-caps labels */
  font-weight: 700;        /* Up from 600 — heavier weight at small size improves legibility */
  letter-spacing: 0.10em;  /* Up from 0.08em — all-caps needs breathing room */
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;     /* Up from 14px — more breathing room before heading */
}

/*
 * SECTION HEADING (.section-heading = the h2 inside each section header)
 * Problem: 2.6rem max is conservative — competes with hero but never wins.
 *          font-weight 700 is appropriate but h2 base is now 800, so keep
 *          section-heading at 800 too for visual consistency.
 * Fix: raise max to 2.8rem, tighten letter-spacing to -0.04em
 *      (Manrope at large sizes benefits from tighter tracking).
 */
.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  line-height: 1.10;
}

/*
 * SECTION SUBTITLE (.section-sub)
 * Problem: 1.0rem with color --text-secondary on dark bg gives ~5.2:1 ratio
 *          which is AA. Good. But line-height 1.75 with no max-width creates
 *          very long lines on wide viewports — hurts scanability.
 * Fix: 1.0625rem (17px) — slightly bigger for comfort. 66ch max-width
 *      enforces ~75-char ideal line length.
 */
.section-sub {
  font-size: 1.0625rem;    /* 17px — clearer than 16px, doesn't compete with body */
  font-weight: 400;
  line-height: 1.80;       /* Looser for multi-line subtitle readability */
  color: var(--text-secondary);
  max-width: 600px;        /* ~70ch — optimal line length for comfortable reading */
  margin: 0 auto 60px;     /* Up from 56px — more space before content grid */
}

.section-header { margin-bottom: 0; }

/* ── CURSOR SPOTLIGHT ───────────────────────────────────── */
#cursor-spotlight {
  position: fixed;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%,-50%);
  transition: top var(--dur-mid) var(--ease-smooth), left var(--dur-mid) var(--ease-smooth);
}

/* ── SCROLL PROGRESS ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--grad-hero);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background var(--dur-mid) var(--ease-smooth),
              border-color var(--dur-mid) var(--ease-smooth),
              backdrop-filter var(--dur-mid) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.site-nav.nav-scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  /* Solid white — gradient on logo dilutes CTA gradient exclusivity */
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-link-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-indigo);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px; /* Up from 4px — creates 44x44px minimum touch target (WCAG 2.5.8) */
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-mid) var(--ease-out);
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 40px 24px;
  background: rgba(9,9,11,0.98);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  gap: 4px;
}

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

.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 1.0rem; /* Up from 0.975rem for effortless mobile scanning */
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  padding: 12px 16px; /* Up from 10px 12px — ensures comfortable 44px touch height */
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  display: block;
}

.nav-mobile-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-mobile-cta {
  margin-top: 8px;
  color: var(--indigo) !important;
  font-weight: 700;
}

/* ── SECTION BLOCKS ──────────────────────────────────────── */
/*
 * ALTERNATING SECTION RHYTHM:
 *   base     (#09090b) — Hero, Projects/Case Studies, FAQ, Footer
 *   surface  (#0f0f12) — Trust Bar, Services, Contact
 *   deep     (#0c0c0f) — About, Why Choose Us, Testimonials, Tech Directory
 *
 * The 3-tone alternation replaces the heavy gradient overuse
 * and makes every section feel visually distinct and custom-crafted.
 */
.section-block {
  padding: 112px 0;
  position: relative;
  z-index: 1;
}

/* Tier 2: slightly lighter surface — used for Services, Contact */
.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Tier 3: cool dark tone — used for About, Why-Me, Testimonials */
.section-deep {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal-up.in-view { opacity: 1; transform: none; }

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 420ms; }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

/* Background grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orb-float 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: rgba(99,102,241,0.18);
  top: -150px; right: -100px;
  animation-duration: 18s;
}

.orb-2 {
  width: 450px; height: 450px;
  background: rgba(168,85,247,0.14);
  bottom: 0; left: -80px;
  animation-duration: 22s;
  animation-delay: -6s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: rgba(6,182,212,0.1);
  top: 40%; right: 15%;
  animation-duration: 16s;
  animation-delay: -10s;
}

@keyframes orb-float {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px,20px) scale(1.08); }
  100% { transform: translate(-20px,40px) scale(0.94); }
}

/* Hero split layout */
.hero-container-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Availability badge */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.avail-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.8s ease infinite;
}

@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}

/* Hero headline */
.hero-heading {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-bottom: 24px; /* Up from 22px */
}

/* Hero body paragraph */
.hero-body {
  font-family: var(--font-body);
  /*
   * 1.0625rem (17px) — one step above base body.
   * Hero paragraphs are scanned quickly; slightly larger size
   * reduces reading friction in the critical 45-second window.
   */
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px; /* Up from 36px — more visual rest before CTAs */
  line-height: 1.80;   /* Slightly looser — 17px at 1.8 = 30.6px line spacing (ideal) */
}

/* CTA row */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* Trust indicators */
.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.925rem; /* Up from 0.9rem — trust items need to be read without squinting */
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-secondary);
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;   /* Up from 0.88rem — card body needs at least 14.4px */
  font-weight: 400;
  line-height: 1.75;   /* Up from 1.7 — card descriptions benefit from open leading */
  color: var(--text-secondary); /* Up from text-muted to meet 5.2:1 contrast ratio */
  flex-grow: 1;
}

.svc-impact-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 5px 10px;
  border-radius: 6px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.hero-trust-item i {
  color: var(--green);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ── RIGHT COLUMN — dashboard wrapper */
.hero-right-col {
  position: relative;
  width: 100%;
  perspective: 1200px;
}

.hero-dashboard-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.18) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-indigo);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}

.btn-primary-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-primary-glow:hover::before { transform: translateX(100%); }
.btn-primary-glow:active { transform: translateY(0); }

.btn-ghost-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary) !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-medium);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}

.btn-ghost-outline:hover {
  color: var(--text-primary) !important;
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.btn-sm-glow { padding: 10px 22px; font-size: 0.85rem; }

/* ── HERO APP CONTROL CENTER PANEL ──────────────────────── */
.hero-dashboard-panel {
  position: relative;
  z-index: 1;
  background: rgba(11, 11, 16, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.08),
    0 24px 64px rgba(0,0,0,0.55),
    0 4px 16px rgba(0,0,0,0.4);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  /* Fade in once on load — no repeat */
  animation: panel-fade-in 0.7s var(--ease-out) both;
}

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header chrome */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dash-controls { display: flex; gap: 6px; }

.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dot.red    { background: #ef4444; }
.dash-dot.yellow { background: #f59e0b; }
.dash-dot.green  { background: #10b981; }

.dash-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.dash-title i { color: var(--indigo); font-size: 0.75rem; }

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.18);
  padding: 3px 9px;
  border-radius: 50px;
}

/* Status beacon — keeps pulsing (status indicator, not decorative) */
.pulse-beacon {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: beacon-pulse 2s ease-in-out infinite;
}
@keyframes beacon-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.5); }
}

/* Dashboard body */
.dash-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Shared card shell */
.dash-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  padding: 14px;
  transition: border-color var(--dur-fast);
}
.dash-card:hover { border-color: rgba(255,255,255,0.12); }

/* Card inner header */
.dcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dcard-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dcard-title i { font-size: 0.78rem; }

.dcard-badge {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge-green  { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.badge-indigo { background: rgba(99,102,241,0.12); color: var(--indigo-light); border: 1px solid rgba(99,102,241,0.2); }
.badge-amber  { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

/* ROW 1 — two columns */
.dash-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── SERVICE HEALTH ─ */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.svc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.svc-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}

.svc-indicator {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Indicator status dots — pulse only green/amber (status-meaningful) */
.ind-green {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: ind-pulse-green 2.5s ease-in-out infinite;
}
.ind-amber {
  background: var(--amber);
  box-shadow: 0 0 5px var(--amber);
  animation: ind-pulse-amber 2.5s ease-in-out infinite;
}

@keyframes ind-pulse-green {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes ind-pulse-amber {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.svc-name {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}

.svc-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tag-green { background: rgba(16,185,129,0.1); color: var(--green); }
.tag-amber { background: rgba(245,158,11,0.1); color: var(--amber); }

/* ── INDUSTRY SWITCHER TAB BAR ─────────────────────────── */
.dash-industry-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.012);
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-industry-bar::-webkit-scrollbar { display: none; }

.dash-ind-tab {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
  letter-spacing: 0.01em;
}
.dash-ind-tab i { font-size: 0.75rem; }
.dash-ind-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}
.dash-ind-tab.active {
  color: var(--indigo-light);
  border-bottom-color: var(--indigo);
  background: rgba(99,102,241,0.05);
}

/* ── DASHBOARD BODY SECTION LABEL ───────────────────────── */
.dash-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 2px;
}
.dash-section-label i { font-size: 0.7rem; color: var(--indigo-light); }

.dash-date {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-disabled);
  text-transform: none;
  letter-spacing: 0;
}

/* ── KPI CARDS ROW ──────────────────────────────────────── */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.dash-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.dash-kpi-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.kpi-icon-green  { background: rgba(16,185,129,0.12);  color: var(--green); }
.kpi-icon-indigo { background: rgba(99,102,241,0.12);  color: var(--indigo-light); }
.kpi-icon-cyan   { background: rgba(6,182,212,0.12);   color: var(--cyan-a11y); }
.kpi-icon-amber  { background: rgba(245,158,11,0.12);  color: var(--amber); }

.kpi-data { flex: 1; }

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.kpi-delta {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  padding: 1px 5px;
  border-radius: 4px;
}
.kpi-delta-up {
  color: var(--green-a11y);
  background: rgba(16,185,129,0.1);
}
.kpi-delta-up i { font-size: 0.6rem; }

.kpi-sub-badge {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--cyan-a11y);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.15);
  padding: 1px 5px;
  border-radius: 4px;
  width: fit-content;
}
.kpi-sub-amber {
  color: var(--amber);
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.18);
}

/* ── WORKFLOW TIMELINE ──────────────────────────────────── */
.dash-workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  padding: 10px;
  overflow: hidden;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background var(--dur-fast);
}
.wf-step:hover { background: rgba(255,255,255,0.03); }

.wf-connector {
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.1);
  margin-left: 12px;
  flex-shrink: 0;
}

.wf-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--green);
  flex-shrink: 0;
}

.wf-icon-active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.35);
  color: var(--indigo-light);
  animation: wf-pulse 2.2s ease-in-out infinite;
}

@keyframes wf-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50%      { box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
}

.wf-icon-pending {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.18);
  color: var(--amber);
  opacity: 0.6;
}

.wf-content { flex: 1; min-width: 0; }

.wf-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-step.wf-pending .wf-title { color: var(--text-muted); }

.wf-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-badge {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.wf-badge-green  { background: rgba(16,185,129,0.12); color: var(--green-a11y);   border: 1px solid rgba(16,185,129,0.2); }
.wf-badge-indigo { background: rgba(99,102,241,0.12); color: var(--indigo-a11y);  border: 1px solid rgba(99,102,241,0.2); }
.wf-badge-amber  { background: rgba(245,158,11,0.08);  color: var(--amber);        border: 1px solid rgba(245,158,11,0.18); }

/* ── LOWER 2-COL ROW (ACTIVITY + MODULES) ───────────────── */
.dash-lower-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ── BUSINESS ACTIVITY FEED ─────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-item:last-child { border-bottom: none; }

.act-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.act-dot-green  { background: var(--green);  box-shadow: 0 0 4px rgba(16,185,129,0.5); }
.act-dot-indigo { background: var(--indigo); box-shadow: 0 0 4px rgba(99,102,241,0.5); }
.act-dot-amber  { background: var(--amber);  box-shadow: 0 0 4px rgba(245,158,11,0.4); }

.act-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.act-primary {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-time {
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: var(--text-disabled);
  margin-top: 1px;
}

/* ── BUSINESS MODULES GRID ──────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  cursor: default;
}
.module-item i {
  font-size: 0.72rem;
  color: var(--indigo-light);
  flex-shrink: 0;
}
.module-item:hover {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.2);
  color: var(--text-primary);
}
.module-item:hover i { color: var(--indigo); }

/* ── PERFORMANCE METRICS BAR ────────────────────────────── */
.dash-perf-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  padding: 10px 12px;
}

.perf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.perf-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.perf-value {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.perf-green  { color: var(--green-a11y); }
.perf-indigo { color: var(--indigo-a11y); }
.perf-cyan   { color: var(--cyan-a11y); }
.perf-amber  { color: var(--amber); }

.perf-sep {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.07);
  margin: 0 2px;
}

/* Utility color helpers (kept for other sections) */
.text-green  { color: var(--green)  !important; }
.text-cyan   { color: var(--cyan)   !important; }
.text-amber  { color: var(--amber)  !important; }
.text-indigo { color: var(--indigo) !important; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-container-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right-col {
    max-width: 560px;
    margin: 0 auto;
  }
  .dash-kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .dash-lower-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-lower-row {
    grid-template-columns: 1fr;
  }
  .dash-perf-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .perf-sep { display: none; }
}




/* ── TRUST SECTION ───────────────────────────────────────── */
.trust-section {
  padding: 48px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 36px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 32px;
}

.ts-value {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ts-label {
  font-family: var(--font-body);
  /*
   * WCAG FIX: 0.76rem (12.2px) text.
   * At this size only 4.5:1 is acceptable (AA for normal text).
   * --text-muted #71717a = 3.5:1 FAIL → --text-secondary #a1a1aa = 5.2:1 PASS
   */
  font-size: 0.78rem; /* Slight bump for better legibility at this small size */
  font-weight: 500;   /* Up from 400 — heavier weight compensates for small size */
  color: var(--text-secondary);
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Logo ticker */
.ticker-wrapper {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.ticker-fade-l,
.ticker-fade-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-fade-l { left: 0;  background: linear-gradient(to right, var(--bg-surface), transparent); }
.ticker-fade-r { right: 0; background: linear-gradient(to left,  var(--bg-surface), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track img {
  height: 32px;
  width: auto;
  margin: 0 36px;
  opacity: 0.3;
  filter: grayscale(1) brightness(2);
  transition: opacity var(--dur-mid), filter var(--dur-mid);
}

.ticker-track img:hover {
  opacity: 0.7;
  filter: grayscale(0) brightness(1);
}

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

/* ── ABOUT SECTION ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-col { display: flex; flex-direction: column; gap: 20px; }

.photo-frame {
  position: relative;
  display: inline-block;
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.25), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.photo-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-tag i { color: var(--indigo); }

/* Credential cards */
.cred-cards { display: flex; flex-direction: column; gap: 14px; }

.cred-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium); /* Up from border-subtle for visual authority */
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}

.cred-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.12);
}
.cred-card img { border-radius: var(--r-sm); flex-shrink: 0; }
.cred-card strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.cred-card span { font-size: 0.8rem; color: var(--text-secondary); }

/* About copy */
.about-copy-col { padding-top: 8px; }
.about-lead {
  font-family: var(--font-body);
  /*
   * Lead paragraph: 1.125rem (18px). This is the first thing a cold
   * email visitor reads after the hero. Must be immediately comfortable.
   * 18px at 1.85 line-height = 33.3px line spacing — spacious and inviting.
   */
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px; /* Up from 20px */
  line-height: 1.85;
}
.about-body {
  font-family: var(--font-body);
  font-size: 1rem; /* Up from 0.975rem — body should be full 16px */
  font-weight: 400;
  /*
   * text-secondary (#a1a1aa) instead of text-muted (#71717a).
   * text-muted is 3.5:1 contrast — AA Large only, fails AA at normal sizes.
   * text-secondary is 5.2:1 — passes AA at all sizes.
   */
  color: var(--text-secondary);
  margin-bottom: 40px; /* Up from 36px */
  line-height: 1.85;   /* Same as lead for consistent rhythm */
}
.about-body strong { font-weight: 600; color: var(--text-primary); }

.exp-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.exp-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
  text-align: center;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.exp-pill:hover { border-color: var(--indigo); transform: translateY(-3px); }

.exp-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  /* Solid indigo-light — reserved gradient for CTA buttons only */
  color: var(--indigo-light);
  letter-spacing: -0.05em;
  line-height: 1;
}

.exp-lbl {
  font-family: var(--font-body);
  font-size: 0.72rem;  /* Same as eyebrow — micro labels must match scale */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ── SERVICES SECTION ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid),
              box-shadow var(--dur-mid);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.service-card:hover .service-glow      { opacity: 1; }
.service-card:hover .service-icon      { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.service-card:hover .service-icon-purple { background: var(--purple); border-color: var(--purple); }
.service-card:hover .service-icon-cyan   { background: var(--cyan); border-color: var(--cyan); }

.service-icon-wrap { display: flex; align-items: flex-start; }

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  /* At rest: monochromatic — no colored tint, just a subtle border outline */
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: background var(--dur-mid), color var(--dur-mid), border-color var(--dur-mid);
}

/* On hover cards reveal the accent color — creating a reveal moment */
.service-card:hover .service-icon      { background: rgba(99,102,241,0.15);  border-color: rgba(99,102,241,0.35);  color: var(--indigo-light); }
.service-card:hover .service-icon-purple { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.35); color: var(--purple); }
.service-card:hover .service-icon-cyan   { background: rgba(6,182,212,0.15);  border-color: rgba(6,182,212,0.35);  color: var(--cyan); }

/* Subtle variant colors at rest (override) */
.service-icon-purple { color: var(--text-muted); }
.service-icon-cyan   { color: var(--text-muted); }

.service-title {
  font-family: var(--font-display);
  /*
   * Card titles: 1.0625rem (17px) — one step above body.
   * At 600 weight and tight tracking, reads clearly even at small viewport widths.
   */
  font-size: 1.0625rem;
  font-weight: 700;        /* Up from 600 — card titles need stronger presence */
  letter-spacing: -0.022em;
  line-height: 1.30;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  /* text-secondary instead of text-muted — 5.2:1 vs 3.5:1 contrast */
  color: var(--text-secondary);
  line-height: 1.75;
  flex-grow: 1;
}

/*
 * WCAG FIX: service-link inline text on card background (#141418).
 * --indigo #6366f1 = 3.0:1 on #141418 — FAIL AA.
 * --indigo-a11y #a5b4fc = 7.1:1 on #141418 — AAA ✓
 */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--indigo-a11y); /* #a5b4fc: 7.1:1 on card bg — AAA */
  transition: gap var(--dur-fast), color var(--dur-fast);
}

.service-link:hover { gap: 10px; color: var(--text-primary); }

.service-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99,102,241,0.07), transparent);
  pointer-events: none;
  transition: opacity var(--dur-mid);
}

.service-glow-purple { background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168,85,247,0.07), transparent); }
.service-glow-cyan   { background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(6,182,212,0.07), transparent); }

/* ── PROJECTS SECTION ────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid),
              border-color var(--dur-mid);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border-color: var(--border-medium);
}

.project-card:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* Hover glow border */
.project-hover-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-mid);
  pointer-events: none;
  background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(99,102,241,0.12), transparent);
}

.project-card:hover .project-hover-border { opacity: 1; }

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-base);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-mid);
}

.project-card:hover .project-img-overlay { opacity: 1; }

.project-read-btn {
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.project-content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/*
 * WCAG FIX: project-category inline label on card bg (#141418).
 * --indigo #6366f1 = 3.0:1 on #141418 — FAIL AA.
 * --indigo-a11y #a5b4fc = 7.1:1 on #141418 — AAA ✓
 */
.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo-a11y);
}

/*
 * WCAG FIX: .project-outcome badge text on card bg (#141418).
 * --green #10b981 = 3.8:1 on #141418 — FAIL AA for 11.5px text.
 * --green-a11y #34d399 = 5.8:1 on #141418 — PASS AA.
 * Background rgba(52,211,153,0.08) maintains the visual style.
 */
.project-outcome {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-a11y);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.18);
  padding: 3px 10px;
  border-radius: 50px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;   /* Up from 0.875rem (14px) — card body must be readable */
  font-weight: 400;
  /* text-secondary over text-muted — maintains 5.2:1 contrast ratio (AA) */
  color: var(--text-secondary);
  line-height: 1.72;
  flex-grow: 1;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/*
 * WCAG FIX: ppill tag text on card bg (#141418).
 * text-muted #71717a = 3.5:1 — FAIL. text-secondary #a1a1aa = 5.0:1 — PASS.
 */
.ppill {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.project-card:hover .ppill { color: var(--text-primary); border-color: var(--border-medium); }

/* CTA card */
.project-cta-card {
  border-style: dashed;
  cursor: default;
  align-items: center;
  justify-content: center;
  aspect-ratio: unset;
  min-height: 320px;
}

.project-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}

.project-cta-icon {
  font-size: 2.5rem;
  color: var(--indigo);
  opacity: 0.7;
  margin-bottom: 4px;
}

.project-cta-title { font-size: 1.1rem; }
/*
 * WCAG FIX: project-cta-desc on card bg (#141418).
 * text-muted = 3.5:1 FAIL. text-secondary = 5.0:1 PASS.
 */
.project-cta-desc  { font-size: 0.9rem; color: var(--text-secondary); }

/* ── WHY WORK WITH ME ────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.benefit-item {
  /* Lives on bg-deep (#0c0c0f) — elevated card creates contrast pop */
  background: var(--bg-elevated);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--dur-fast);
}

.benefit-item:hover { background: var(--bg-hover); }

.benefit-icon-box {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  /* At rest: monochromatic — matches service icon discipline */
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.benefit-item:hover .benefit-icon-box {
  /* Reveal indigo on hover — matching the service card reveal pattern */
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.35);
  color: var(--indigo-light);
}

.benefit-name {
  font-family: var(--font-display);
  font-size: 1rem;     /* Up from 0.93rem — benefit names are the key selling point, need authority */
  font-weight: 700;    /* Up from 600 — stronger hierarchy within the benefit grid */
  letter-spacing: -0.018em;
}
.benefit-text {
  font-family: var(--font-body);
  font-size: 0.9rem;   /* Up from 0.875rem (14px) — benefit explanations need to be read */
  font-weight: 400;
  /* text-secondary over text-muted for contrast compliance */
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── TECH STACK ──────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.tech-group {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 28px 24px;
}

.tech-group-title {
  font-family: var(--font-body);
  font-size: 0.72rem;  /* Matches eyebrow scale — all all-caps labels use 0.72rem */
  font-weight: 700;    /* Up from 600 — small labels need heavier weight */
  text-transform: uppercase;
  letter-spacing: 0.10em; /* Up from 0.08em — more breathing room at tiny size */
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast), border-color var(--dur-fast),
              color var(--dur-fast), transform var(--dur-fast);
}

.tech-chip:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.testi-card {
  position: relative;
  /* Warmer card tone pops against bg-deep section */
  background: var(--bg-card);
  border: 1px solid var(--border-medium); /* Up from subtle for stronger card presence */
  border-top: 3px solid var(--indigo-a11y); /* Top accent border creates immediate visual structure */
  border-radius: var(--r-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid), box-shadow var(--dur-mid);
}

.testi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129,140,248,0.4);
  box-shadow: 0 16px 48px rgba(99,102,241,0.15);
}

.testi-stars { color: var(--amber); font-size: 0.95rem; display: flex; gap: 4px; }

.testi-quote {
  font-family: var(--font-body);
  /*
   * 1rem (16px) italic at 1.80 line-height.
   * Testimonial quotes are proof points — they must be read comfortably.
   * italic at 0.975rem on dark bg is below the comfort threshold.
   */
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.80;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testi-client {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.testi-avatar-purple { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); color: var(--purple); }
.testi-avatar-cyan   { background: rgba(6,182,212,0.15);  border-color: rgba(6,182,212,0.3); color: var(--cyan); }

.testi-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.testi-role {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
}

.testi-quote-mark {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 7rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-display);
  /*
   * FAQ questions at 1.0625rem (17px) — up from 0.975rem.
   * FAQs are often the last thing a prospect reads before deciding.
   * Every question must be scannable without effort. Bigger = faster scan.
   */
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
  padding: 24px 8px; /* Up from 22px — more tap target, more breathing room */
  text-align: left;
  transition: color var(--dur-fast);
}

.faq-question:hover { color: var(--indigo-light); }
.faq-question[aria-expanded="true"] { color: var(--indigo); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--dur-mid) var(--ease-out), background var(--dur-fast), color var(--dur-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
  padding: 0 8px;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 8px 24px;
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 0.9625rem;  /* 15.4px — slightly under question size (hierarchy) */
  font-weight: 400;
  /* text-secondary not text-muted — answers are long-form, need full contrast */
  color: var(--text-secondary);
  line-height: 1.80;     /* Looser for FAQ answers which are longer than most body text */
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap { display: flex; flex-direction: column; gap: 0; }
.contact-sub {
  font-size: 1rem;         /* Up from 0.95rem — contact section intro must be full 16px */
  /* text-secondary not text-muted — this is important pre-form persuasion copy */
  color: var(--text-secondary);
  margin-bottom: 28px;
  margin-top: 12px;
  line-height: 1.70;
}

/* Form styles */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-full { grid-column: 1/-1; }

.form-field label {
  font-family: var(--font-body);
  /*
   * 0.75rem (12px) — up from 0.7rem (11.2px).
   * 11.2px is below WCAG recommended minimum for body text (14px).
   * 12px is the accepted floor for all-caps labels.
   * Paired with weight 700 and letter-spacing 0.10em, perceived size is much larger.
   */
  font-size: 0.75rem;
  font-weight: 700;        /* Up from 600 — small all-caps labels need max weight */
  text-transform: uppercase;
  letter-spacing: 0.10em;  /* Up from 0.07em — matches eyebrow scale discipline */
  color: var(--text-secondary); /* Up from text-muted — form labels are functional, need legibility */
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  /*
   * 0.9375rem (15px) — up from 0.9rem (14.4px).
   * Form inputs at 14px or below can trigger iOS zoom on focus.
   * 15px is the safe floor that prevents auto-zoom on all mobile browsers.
   */
  font-size: 0.9375rem;
  padding: 13px 16px; /* Up from 12px — more comfortable click/tap target */
  width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25), 0 0 12px rgba(99,102,241,0.15);
}

.form-field select { cursor: pointer; }
.form-field select option { background: var(--bg-base); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: var(--grad-indigo);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), opacity var(--dur-fast);
  margin-top: 4px;
}

.form-submit:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.45); }
.form-submit:active { transform: none; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  /*
   * WCAG FIX: trust badges at 0.78rem on --bg-surface (#0f0f12).
   * text-muted #71717a = 3.5:1 — FAIL.
   * text-secondary #a1a1aa = 5.1:1 — PASS AA.
   */
  font-size: 0.8rem; /* Up from 0.78rem */
  color: var(--text-secondary);
}

.form-trust-row span { display: flex; align-items: center; gap: 5px; }
.form-trust-row i:first-child { color: var(--green); }

/* Calendly column */
.calendly-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(129,140,248,0.25); /* High-visibility border highlight for primary conversion card */
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 32px rgba(99,102,241,0.08);
}

.calendly-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendly-header i { font-size: 1.3rem; color: var(--indigo); }

.cal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cal-sub {
  font-family: var(--font-body);
  font-size: 0.875rem; /* Up from 0.85rem for slightly better legibility */
  font-weight: 400;
  line-height: 1.70;
  /*
   * WCAG FIX: cal-sub is on --bg-elevated (#141418).
   * --text-muted #71717a on #141418 = ~3.3:1 — FAIL AA.
   * --text-secondary #a1a1aa on #141418 = ~5.0:1 — PASS AA.
   */
  color: var(--text-secondary);
}

.cal-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
  justify-content: space-between;
}

.cal-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cal-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cal-benefit-item i {
  font-size: 1.05rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.btn-cal-action {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 0.95rem;
  text-decoration: none !important;
}

/*
 * WCAG FIX: cal-direct-email on --bg-elevated (#141418).
 * text-muted #71717a on #141418 ≈ 3.3:1 — FAIL AA.
 * text-secondary #a1a1aa on #141418 ≈ 5.0:1 — PASS AA.
 */
.cal-direct-email {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.84rem; /* Up from 0.82rem */
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.email-link {
  color: var(--indigo-light);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.email-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  /* Footer returns to bg-base (Tier 1) for visual closure — darkest = definitive end */
  background: var(--bg-base);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-copy {
  font-family: var(--font-body);
  /*
   * WCAG FIX: footer-copy on --bg-base (#09090b).
   * 0.8rem + text-muted #71717a = 3.5:1 — FAIL AA.
   * 0.85rem + text-secondary #a1a1aa = 5.2:1 — PASS AA.
   */
  font-size: 0.85rem; /* Up from 0.8rem */
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem; /* Up from 0.84rem for better legibility */
  font-weight: 500;
  /*
   * WCAG FIX: footer nav on #09090b.
   * text-muted #71717a = 3.5:1 — FAIL. text-secondary #a1a1aa = 5.2:1 — PASS.
   */
  color: var(--text-secondary);
  padding: 6px 10px; /* Up from 4px top/bottom for better tap target (WCAG 2.5.8) */
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.footer-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-social a {
  width: 40px; height: 40px; /* Up from 36px — WCAG 2.5.8 minimum 24px, recommended 44px */
  border-radius: var(--r-sm);
  border: 1px solid var(--border-medium); /* Up from border-subtle for better visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* Up from 0.95rem for icon visibility */
  /*
   * WCAG FIX: social icons on #09090b.
   * text-muted #71717a = 3.5:1 — FAIL. text-secondary #a1a1aa = 5.2:1 — PASS.
   */
  color: var(--text-secondary);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.06);
}

/* ── CASE STUDY DRAWER ───────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-smooth),
              visibility var(--dur-mid);
}

.drawer-backdrop.open { opacity: 1; visibility: visible; }

.cs-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: -32px 0 80px rgba(0,0,0,0.5);
  overflow: hidden;
}

.cs-drawer.open { transform: translateX(0); }

.cs-drawer-header {
  position: sticky;
  top: 0;
  background: rgba(15,15,18,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.drawer-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo);
  display: block;
  margin-bottom: 6px;
}

.drawer-title { font-size: 1.25rem; }

.drawer-close-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-medium);
  background: transparent;
  /*
   * WCAG FIX: close button icon on --bg-surface (#0f0f12).
   * text-muted = 3.5:1 FAIL. text-secondary = 5.2:1 PASS.
   */
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.drawer-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.cs-drawer-body {
  overflow-y: auto;
  padding: 28px;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.drawer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 20px;
}

.dm-item { display: flex; flex-direction: column; gap: 3px; }
/*
 * WCAG FIX: dm-key is 0.7rem (11.2px) uppercase on --bg-elevated (#141418).
 * text-muted #71717a on #141418 ≈ 3.3:1 — FAIL even as "AA Large".
 * text-secondary #a1a1aa on #141418 ≈ 5.0:1 — PASS AA.
 */
.dm-key  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.dm-val  { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
/*
 * WCAG FIX: green outcome value on --bg-elevated (#141418).
 * --green #10b981 = 3.8:1 on #141418 — FAIL AA for normal text.
 * --green-a11y #34d399 = 5.8:1 on #141418 — PASS AA.
 */
.dm-outcome { color: var(--green-a11y); }

.drawer-section { margin-bottom: 24px; }

.drawer-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-section p {
  font-size: 0.9375rem; /* Up from 0.92rem for consistent readable body size */
  /*
   * WCAG FIX: drawer text on --bg-surface (#0f0f12).
   * text-muted = 3.5:1 FAIL. text-secondary = 5.2:1 PASS.
   */
  color: var(--text-secondary);
  line-height: 1.75;
}

.drawer-list {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-list li {
  font-size: 0.9375rem; /* Consistent with drawer-section p */
  /*
   * WCAG FIX: list text on --bg-surface (#0f0f12).
   * text-muted = 3.5:1 FAIL. text-secondary = 5.2:1 PASS.
   */
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}

.drawer-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-size: 0.8rem;
}

.drawer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad-indigo);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--r-md);
  text-align: center;
  margin-top: 28px;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.drawer-cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* ── RESPONSIVE MEDIA QUERIES (MOBILE-FIRST OPTIMIZED) ────── */

/* 1. Ultra Large Desktop & 4K Displays (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero-container-split { max-width: 1320px; gap: 56px; }
  .hero-heading { font-size: 4.8rem; }
}

@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  .hero-container-split { max-width: 1440px; gap: 64px; }
}

/* 2. Laptops & Small Desktops (1024px to 1279px) */
@media (max-width: 1279px) {
  .hero-container-split { grid-template-columns: 52% 48%; gap: 36px; }
  .nav-inner { padding: 18px 32px; gap: 24px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* 3. Tablet Landscape & Small Laptops (992px to 1023px) */
@media (max-width: 1023px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-col { max-width: 440px; margin: 0 auto; }
  .tech-grid     { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* 4. Tablet Portrait & Mobile Landscape (768px to 991px) */
@media (max-width: 991px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-inner  { padding: 16px 24px; }

  .hero-section { padding: 110px 0 56px; min-height: auto; }
  .hero-container-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-right-col { max-width: 600px; margin: 0 auto; width: 100%; }

  .services-grid  { grid-template-columns: 1fr; gap: 24px; }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-grid   { grid-template-columns: 1fr; gap: 40px; }
  .section-block  { padding: 80px 0; }
}

/* 5. Mobile Devices (576px to 767px) */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .hero-section { padding: 96px 0 40px; }
  .hero-heading { font-size: clamp(2.1rem, 7vw, 3.2rem); margin-bottom: 16px; }
  .hero-body { font-size: 1.0rem; line-height: 1.7; margin-bottom: 28px; }

  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  .testi-grid    { grid-template-columns: 1fr; gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .tech-grid     { grid-template-columns: 1fr; gap: 20px; }

  .trust-stats   { gap: 12px; }
  .trust-divider { display: none; }
  .trust-stat    { padding: 12px 16px; width: 100%; text-align: center; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }

  .form-row      { grid-template-columns: 1fr; gap: 16px; }
  .hero-cta-row  { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta-row .btn-primary-glow,
  .hero-cta-row .btn-ghost-outline { width: 100%; min-height: 48px; justify-content: center; text-align: center; }

  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-block { padding: 64px 0; }
  .dash-kpi-row  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-lower-row { grid-template-columns: 1fr; gap: 10px; }

  /* iOS Safari 16px auto-zoom prevention */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
  .form-field textarea { min-height: 110px; }
}

/* 6. Small Mobile & Compact Touch Devices (360px to 575px) */
@media (max-width: 575px) {
  .container { padding: 0 16px; }
  .hero-section { padding: 88px 0 32px; }
  .avail-badge { font-size: 0.68rem; padding: 6px 14px; text-align: center; white-space: normal; line-height: 1.4; }

  .dash-ind-tab { padding: 10px 12px; min-height: 44px; font-size: 0.68rem; }
  .dash-perf-bar { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; padding: 12px; }
  .perf-sep { display: none; }
  .perf-item { gap: 3px; }

  .section-heading { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
  .section-sub { font-size: 0.95rem; margin-bottom: 36px; }
  .exp-pills { gap: 8px; }
  .exp-pill { padding: 10px 12px; flex: 1 1 auto; text-align: center; }
  .exp-num { font-size: 1.1rem; }
  .exp-lbl { font-size: 0.62rem; }

  .cs-drawer-header { padding: 18px 20px; }
  .cs-drawer-body   { padding: 20px 16px; }
  .drawer-meta      { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
}

/* 7. Ultra-Compact Mobile (320px to 359px - iPhone SE 1st Gen, KaiOS) */
@media (max-width: 359px) {
  .container { padding: 0 12px; }
  .hero-heading { font-size: 1.8rem; }
  .hero-body { font-size: 0.9375rem; }
  .dash-kpi-row { grid-template-columns: 1fr; gap: 6px; }
  .modules-grid { grid-template-columns: 1fr; }
  .cred-cards { flex-direction: column; gap: 8px; }
  .cred-card { width: 100%; }
}

/* ── PERFORMANCE, TOUCH ACCESSIBILITY & REDUCED MOTION ────── */
@media (pointer: coarse) {
  /* Disable 3D perspective tilt on touch devices to prevent GPU jank */
  .hero-right-col { perspective: none; }
  .hero-dashboard-panel { transform: none !important; transition: none; }

  /* Ensure all interactive buttons exceed minimum touch target 44x44px */
  .btn-primary-glow,
  .btn-ghost-outline,
  .nav-cta,
  .form-submit,
  .btn-cal-action,
  .drawer-cta-btn,
  .dash-ind-tab,
  .faq-question {
    min-height: 44px;
  }
}

.reveal-up,
.hero-dashboard-panel,
.service-card,
.project-card,
.btn-primary-glow {
  will-change: transform, opacity;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .pulse-beacon,
  .ind-green,
  .ind-amber,
  .hero-orb {
    animation: none !important;
  }
}

