/* ═══════════════════════════════════════════
   RITVEEK GROVER — CINEMATIC PORTFOLIO 2026
   Netflix-Tier Design System
   Built for: ritveekgrover.com
═══════════════════════════════════════════ */

/* Animated gradient custom properties */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --glow-x {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}
@property --glow-y {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}
@property --shimmer-pos {
  syntax: '<percentage>';
  initial-value: -100%;
  inherits: false;
}

/* ═══════════ DESIGN TOKENS ═══════════ */
:root {
  /* Premium dark palette */
  --bg-base: #0A0A12;
  --bg-surface: #12121B;
  --bg-elevated: #1A1A26;

  /* Primary / CTA */
  --primary: #6366F1;
  --primary-hover: #818CF8;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --cta: #F59E0B;
  --cta-hover: #FBBF24;
  --cta-glow: rgba(245, 158, 11, 0.5);
  --success: #10B981;
  --primary-rgb: 99, 102, 241;
  --primary-hover-rgb: 129, 140, 248;
  --cta-rgb: 245, 158, 11;
  --success-rgb: 16, 185, 129;
  --teal-rgb: 45, 212, 191;

  /* Legacy aliases */
  --c-bg: var(--bg-base);
  --c-bg2: var(--bg-surface);
  --c-bg3: var(--bg-elevated);
  --c-card: rgba(255,255,255,0.025);
  --c-card-solid: #131320;
  --c-card-hover: rgba(255,255,255,0.05);
  --c-elevated: var(--bg-elevated);

  /* Text */
  --c-white: #F8FAFC;
  --c-gray: #94A3B8;
  --c-muted: #64748B;

  /* Borders — barely visible structural lines */
  --c-border: rgba(255,255,255,0.08);
  --c-border-h: rgba(255,255,255,0.16);

  /* Accent */
  --c-accent: var(--primary);
  --c-accent-soft: rgba(var(--primary-rgb), 0.1);
  --c-accent-glow: var(--primary-glow);
  --c-accent2: var(--primary-hover);

  /* Typography */
  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Outfit', system-ui, sans-serif;

  /* Animation curves */
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-bounce: cubic-bezier(.175,.885,.32,1.275);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;

  /* Layout */
  --nav-h: 60px;
  --bottom-nav-h: calc(56px + env(safe-area-inset-bottom, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --section-pad: clamp(48px, 8vw, 120px);
  --side-pad: clamp(16px, 5vw, 80px);
  --floating-edge: clamp(14px, 2.8vw, 28px);
  --ask-ai-bottom: calc(var(--bottom-nav-h) + 18px);
  --btt-bottom: calc(var(--ask-ai-bottom) + 58px);
  --mob-cta-bottom: calc(var(--bottom-nav-h) + 12px);
}

/* ═══════════ RESET & BASE ═══════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  text-rendering: optimizeSpeed;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  .pg,
  .sec,
  .marquee-strip,
  .cert-sec,
  .results-sec,
  .cta-band,
  .conn-sec {
    overflow-x: clip;
  }
}

body {
  font-family: var(--font-b);
  background: var(--c-bg);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--bottom-nav-h);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overscroll-behavior-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
}
html.body-scroll-locked,
html.body-scroll-locked body,
body.body-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.body-locked {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
}
body.body-locked .nav-overlay.open,
body.body-locked .modal-bg.on,
body.body-locked gen-search-widget {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.nav-open .ask-ai-fab,
body.nav-open .btt,
body.nav-open .mob-cta-sticky {
  opacity: 0;
  pointer-events: none;
}
body.widget-open {
  overscroll-behavior-y: contain;
  /* Force dark text so Google widget inherits readable color */
  color: #1a1a1a;
}
body.widget-open .ask-ai-fab,
body.widget-open .btt,
body.widget-open .mob-bottom-nav,
body.widget-open .mob-cta-sticky,
body.widget-open .nav-cta,
body.widget-open .menu-toggle {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.widget-open .mob-bottom-nav {
  transform: translateY(calc(100% + 12px));
}
body.widget-open .mob-cta-sticky {
  transform: translateY(calc(100% + 24px));
}
body.widget-open .cursor-dot,
body.widget-open .cursor-ring {
  opacity: 0;
}
/* Keep site UI elements white while body color is forced dark for widget */
body.widget-open .nav,
body.widget-open .ask-ai-close {
  color: var(--c-white);
}

::selection { background: var(--primary); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
:focus { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4, p, li, a, button, summary, span, strong {
  overflow-wrap: anywhere;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════ CINEMATIC NOISE GRAIN ═══════════
   Adds film-quality texture to the entire page.
   Invisible on mobile for performance. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}
@media (min-width: 768px) {
  body::after { opacity: 0.025; }
}

/* ═══════════ PRELOADER ═══════════
   Cinematic opening credits — counter + name reveal.
   Skipped on return visits via sessionStorage. */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--c-bg);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  transition: clip-path 1s cubic-bezier(.76,0,.24,1), opacity 0.5s ease 0.8s;
  clip-path: inset(0 0 0 0);
}
#preloader.done {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}

.pre-counter {
  font-family: var(--font-b);
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.15;
  transition: opacity 0.3s;
}

.pre-name {
  font-family: var(--font-b);
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
  clip-path: inset(0 100% 0 0);
  animation: preReveal 1s var(--ease) 0.3s forwards;
}

.pre-line {
  width: 0; height: 2px;
  background: var(--c-accent);
  animation: preLine 1.2s var(--ease) 0.6s forwards;
}

.pre-tagline {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 400;
  color: var(--c-gray);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s var(--ease) 1s forwards;
}

.pre-progress {
  width: 120px; height: 1px;
  background: var(--c-border);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 16px;
}
.pre-progress-bar {
  height: 100%;
  background: var(--c-accent);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--c-accent-glow);
}

@keyframes preReveal { to { clip-path: inset(0 0% 0 0); } }
@keyframes preLine { to { width: 80px; } }

/* ═══════════ CUSTOM CURSOR ═══════════
   Desktop only — dot follows mouse instantly,
   ring follows with spring delay. Expands on hover targets. */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 100000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
  }
  .cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 100000;
    transition: width 0.4s var(--ease), height 0.4s var(--ease),
                border-color 0.3s, background 0.3s, opacity 0.3s;
  }
  .cursor-ring.hover {
    width: 60px; height: 60px;
    border-color: var(--c-accent);
    background: rgba(var(--primary-rgb), 0.06);
  }
  .cursor-ring.click {
    width: 30px; height: 30px;
  }
}

/* ═══════════ SCROLL PROGRESS BAR ═══════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 5001;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ═══════════ NAVIGATION ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 5000;
  height: var(--nav-h);
  padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--side-pad); padding-right: var(--side-pad);
  background: rgba(10, 10, 18, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              -webkit-backdrop-filter 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}
.nav.solid {
  background: rgba(10,10,18,0.86);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  backdrop-filter: blur(30px) saturate(1.3);
  border-color: var(--c-border);
}

.nav-logo {
  font-family: var(--font-b); font-weight: 900;
  font-size: clamp(0.94rem, 2.8vw, 1.05rem); color: var(--c-white);
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; flex-shrink: 0;
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color 0.3s;
}
.nav-logo span { color: var(--cta); }

/* Desktop nav links — hidden on mobile */
.nav-desk-links { display: none; gap: 2px; list-style: none; }
.nav-desk-links a {
  display: inline-flex; align-items: center; padding: 8px 18px;
  font-size: 0.8rem; font-weight: 500; color: var(--c-muted);
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  cursor: pointer; letter-spacing: 0.04em;
  position: relative;
  min-height: 44px;
}
.nav-desk-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px;
  background: var(--c-accent); border-radius: 1px;
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-desk-links a:hover, .nav-desk-links a.on { color: var(--c-white); }
.nav-desk-links a:hover::after, .nav-desk-links a.on::after { width: 20px; left: calc(50% - 10px); }

.nav-right { display: flex; align-items: center; gap: clamp(8px, 2vw, 12px); min-width: 0; }

.nav-cta {
  display: none;
  align-items: center; gap: 8px; padding: 10px 24px;
  background: transparent; color: var(--c-white);
  font-size: 0.78rem; font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-h);
  transition: all 0.4s var(--ease);
  min-height: 44px; text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-cta:hover {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.22);
  transform: translateY(-1px);
}

/* Hamburger toggle */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px;
  min-height: 48px; min-width: 48px;
  align-items: center; justify-content: center;
  cursor: pointer; position: relative; z-index: 5600;
}
.menu-toggle .bar {
  width: 22px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  transform-origin: center;
}
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Full-screen nav overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 5500;
  background: rgba(10,10,18,0.97);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  -webkit-clip-path: circle(0% at calc(100% - 40px) 30px);
  clip-path: circle(0% at calc(100% - 40px) 30px);
  transition: clip-path 0.8s cubic-bezier(.76,0,.24,1), -webkit-clip-path 0.8s cubic-bezier(.76,0,.24,1);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--nav-h) + var(--safe-top) + 20px) var(--side-pad) calc(20px + var(--safe-bottom));
}
.nav-overlay::before {
  content: '';
  position: absolute;
  top: 20%; right: 10%;
  width: clamp(200px, 50vw, 400px); height: clamp(200px, 50vw, 400px);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12), transparent 60%);
  pointer-events: none;
  animation: orbFloat1 15s ease-in-out infinite alternate;
}
.nav-overlay::after {
  content: '';
  position: absolute;
  bottom: 20%; left: 10%;
  width: clamp(150px, 35vw, 300px); height: clamp(150px, 35vw, 300px);
  background: radial-gradient(circle, rgba(var(--cta-rgb), 0.1), transparent 60%);
  pointer-events: none;
  animation: orbFloat2 20s ease-in-out infinite alternate;
}
.nav-overlay.open {
  -webkit-clip-path: circle(150% at calc(100% - 40px) 30px);
  clip-path: circle(150% at calc(100% - 40px) 30px);
  visibility: visible;
}
.nav-overlay > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-h);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--c-gray);
  padding: 12px 20px;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  cursor: pointer;
}
.nav-overlay.open > a {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay > a:nth-child(1) { transition-delay: 0.15s; }
.nav-overlay > a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay > a:nth-child(3) { transition-delay: 0.25s; }
.nav-overlay > a:nth-child(4) { transition-delay: 0.3s; }
.nav-overlay > a:nth-child(5) { transition-delay: 0.35s; }
.nav-overlay > a:nth-child(6) { transition-delay: 0.4s; }
.nav-overlay > a:hover { color: var(--c-white); }
.nav-overlay > a::before {
  content: '';
  position: absolute; left: -20px; top: 50%; width: 0; height: 2px;
  background: var(--c-accent); border-radius: 1px;
  transform: translateY(-50%);
  transition: width 0.3s var(--ease);
}
.nav-overlay > a:hover::before { width: 30px; }

.nav-overlay-cta {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease) 0.5s;
}
.nav-overlay.open .nav-overlay-cta {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-socials {
  display: flex; gap: 20px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.6s;
}
.nav-overlay.open .nav-overlay-socials { opacity: 1; }
.nav-overlay-socials a {
  font-size: 1.2rem !important;
  color: var(--c-muted) !important;
  min-width: 44px;
  min-height: 44px;
  padding: 8px !important;
  opacity: 1 !important;
  transform: none !important;
}
.nav-overlay-socials a:hover { color: var(--primary) !important; }

/* Mobile bottom nav */
.mob-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 5001;
  background: rgba(10,10,18,0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  touch-action: manipulation;
  box-shadow: 0 -10px 32px rgba(0,0,0,0.24);
}
.mob-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 8px; color: var(--c-muted);
  font-size: 0.54rem; font-weight: 600; letter-spacing: 0.03em;
  transition: color 0.2s; text-decoration: none;
  min-width: 48px; min-height: 46px; justify-content: center;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.mob-bottom-nav a i { font-size: 1rem; transition: transform 0.3s var(--ease-spring); }
.mob-bottom-nav a.on { color: var(--cta); }
.mob-bottom-nav a.on i { transform: scale(1.15) translateY(-1px); }

.mob-cta-sticky {
  position: fixed;
  left: max(12px, var(--safe-left));
  right: max(12px, var(--safe-right));
  bottom: var(--mob-cta-bottom);
  z-index: 5002;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: #1a1304;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(var(--cta-rgb), 0.32);
  transform: translateY(calc(100% + 88px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  max-width: min(430px, calc(100% - 24px));
  margin: 0 auto;
}
.mob-cta-sticky.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .mob-cta-sticky { display: inline-flex; }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-b);
  font-size: clamp(0.8rem, 2vw, 0.85rem); font-weight: 600; cursor: pointer; border: none;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 48px; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.3;
  text-align: center;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.cta-short { display: none; }

.btn-primary {
  background: var(--cta);
  color: #1a1304;
  box-shadow: 0 6px 24px rgba(var(--cta-rgb), 0.22);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(var(--cta-rgb), 0.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: scale(0.97); }

.btn-cta {
  background: var(--cta);
  color: #1a1304;
  box-shadow: 0 12px 36px rgba(var(--cta-rgb), 0.34);
}
.btn-cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 18px 48px rgba(var(--cta-rgb), 0.42);
  transform: translateY(-2px);
}
.btn-cta:active { transform: scale(0.97); }

/* Ripple effect on button click */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

.btn-glass {
  background: rgba(255,255,255,0.04);
  color: var(--c-white);
  border: 1px solid var(--c-border-h);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.18);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.74rem;
  min-height: 44px;
}

/* Page management — client-side routing */
.pg { display: none; width: 100%; min-width: 0; overflow-x: clip; }
.pg.on { display: block; }
@supports not (overflow-x: clip) {
  .pg { overflow-x: hidden; }
}

/* Page transition wipe */
.page-transition {
  position: fixed; inset: 0; z-index: 4999;
  background: var(--c-bg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-transition.active {
  animation: pageWipe 0.8s var(--ease) forwards;
}
@keyframes pageWipe {
  0% { transform: scaleY(0); transform-origin: bottom; }
  45% { transform: scaleY(1); transform-origin: bottom; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ═══════════ SECTION PRIMITIVES ═══════════ */
.sec { padding: var(--section-pad) var(--side-pad); position: relative; overflow-x: clip; }
.sec-alt { background: var(--c-bg2); }

.sec-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }

.sec-label {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 16px; padding: 6px 16px;
  background: var(--c-accent-soft);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.sec-title {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: 0; margin-bottom: 16px;
}

.sec-desc {
  font-size: clamp(0.84rem, 2vw, 1rem);
  color: var(--c-gray); line-height: 1.8;
  max-width: 540px; margin: 0 auto;
  font-weight: 300;
}

.trust-card, .work-card, .result-card, .case-card, .about-card, .edu-card,
.conn-card, .svc-card, .svc-process-card, .faq-item, .hl-item, .stat-item {
  min-width: 0;
}

/* Animated section divider */
.sec-divider {
  width: 100%; height: 1px; position: relative; overflow: hidden;
  background: var(--c-border);
}
.sec-divider::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  animation: dividerSlide 4s ease-in-out infinite;
}
@keyframes dividerSlide { 0% { left: -60%; } 100% { left: 100%; } }

/* ═══════════ HERO ═══════════ */
.hero {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--safe-top) + 16px) var(--side-pad) calc(28px + var(--bottom-nav-h));
  position: relative; overflow: hidden;
}

/* Hero background layers — parallax-ready */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('hero-bg.jpg') center/cover no-repeat;
  background-image: -webkit-image-set(
    url('hero-bg.webp') type('image/webp'),
    url('hero-bg.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('hero-bg.webp') type('image/webp'),
    url('hero-bg.jpg') type('image/jpeg')
  );
  filter: brightness(0.38) saturate(1.08);
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0) scale(1.05);
}
.hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(var(--primary-rgb), 0.26), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(var(--teal-rgb), 0.16), transparent 28%),
    linear-gradient(
      180deg,
      rgba(10,10,18,0.2) 0%,
      rgba(10,10,18,0.72) 42%,
      rgba(10,10,18,0.92) 76%,
      var(--c-bg) 100%
    );
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 50% 50% at 30% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 30% 50%, black, transparent);
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
}

#heroGfx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
}

.no-canvas-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.35s ease;
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
}

body.hero-canvas-ready #heroGfx { opacity: 1; }
body.hero-canvas-ready .no-canvas-fallback { opacity: 0; }

/* Floating gradient orbs — aurora effect */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.hero-orb-1 {
  width: clamp(200px, 50vw, 500px); height: clamp(200px, 50vw, 500px);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18), transparent 60%);
  top: -10%; right: -10%;
  animation: orbFloat1 15s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: clamp(150px, 35vw, 300px); height: clamp(150px, 35vw, 300px);
  background: radial-gradient(circle, rgba(var(--cta-rgb), 0.12), transparent 60%);
  bottom: 10%; left: -5%;
  animation: orbFloat2 20s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.15); }
}
@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-horizon {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.hero-inner {
  max-width: 900px; position: relative; z-index: 2; width: 100%;
}
.hero-bg.hero-layer {
  position: absolute;
}

/* Availability badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.6rem; font-weight: 700;
  color: var(--success); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--success); border-radius: 50%;
  position: relative;
}
.hero-badge .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--success); opacity: 0;
  animation: ping 2s ease infinite;
}
@keyframes ping { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

/* Hero headline — cinematic reveal */
.hero h1 {
  font-family: var(--font-b);
  font-size: clamp(2rem, 8vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: 0; margin-bottom: 20px;
  overflow-wrap: normal;
  word-break: normal;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line-inner {
  display: block;
  transform: none;
  transition: transform 0.8s var(--ease-out);
}
.hero h1 .line-inner.revealed { transform: translateY(0); }

/* The word "system" — Playfair italic with gradient + animated underline */
.hero h1 em {
  font-family: var(--font-h);
  font-style: italic; font-weight: 700;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em::after {
  content: ''; position: absolute; bottom: 0.05em; left: 0; right: 0;
  height: 4px; background: var(--c-accent); border-radius: 3px;
  opacity: 0.3; transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease) 0.6s;
}
.hero h1 em.revealed::after { transform: scaleX(1); }

.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1.2rem);
  color: var(--c-gray); max-width: 560px;
  line-height: 1.65; margin-bottom: 16px; font-weight: 300;
  opacity: 1; transform: none;
  transition: all 0.7s var(--ease) 0.5s;
}
.hero-sub.revealed { opacity: 1; transform: translateY(0); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  opacity: 1; transform: none;
  transition: all 0.7s var(--ease) 0.6s;
}
.hero-stats.revealed { opacity: 1; transform: translateY(0); }
.hero-stat {
  display: flex; flex-direction: column; min-width: 0;
  position: relative;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-stat:not(:last-child)::after {
  display: none;
}
.hero-stat .num {
  font-family: var(--font-h); font-size: clamp(1.12rem, 4vw, 1.9rem);
  font-weight: 900; color: var(--c-accent); line-height: 1;
  white-space: nowrap;
}
.hero-stat .label {
  font-size: 0.56rem; color: var(--c-muted); font-weight: 600;
  margin-top: 6px; letter-spacing: 0.04em;
  line-height: 1.28;
  text-transform: uppercase;
}
.hero-stat .stat-subline {
  display: block;
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
  opacity: 1; transform: none;
  transition: all 0.7s var(--ease) 0.7s;
}
.hero-actions.revealed { opacity: 1; transform: translateY(0); }
.hero-actions .btn {
  width: 100%; justify-content: center;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  padding: 12px 20px;
  min-height: 48px;
}

.hero-microcopy {
  margin-top: 10px;
  color: var(--c-gray);
  max-width: 36ch;
  font-size: 0.73rem;
  line-height: 1.55;
  opacity: 1;
  transform: none;
  transition: all 0.7s var(--ease) 0.78s;
}
.hero-microcopy.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  opacity: 1;
  transform: none;
  transition: all 0.7s var(--ease) 0.86s;
}
.hero-proofline.revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero-proofline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--c-white);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-command {
  margin-top: 24px;
  padding: 18px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.hero-command-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.hero-command-label,
.hero-command-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.hero-command-label {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-white);
}
.hero-command-status {
  font-size: 0.72rem;
  color: var(--c-gray);
  font-weight: 400;
}
.hero-command-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.14);
}
.hero-command-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hero-command-card {
  padding: 14px 14px 15px;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: calc(var(--radius) - 4px);
  transform-style: preserve-3d;
  will-change: transform;
  animation: floatCard 9s ease-in-out infinite;
}
.hero-command-card:nth-child(2) { animation-delay: -3s; }
.hero-command-card:nth-child(3) { animation-delay: -6s; }
@keyframes floatCard {
  0%, 100% { transform: rotate3d(1, 1, 0, 0deg) translateZ(0); }
  50% { transform: rotate3d(1, 1, 0, 1.6deg) translateZ(10px); }
}
.hero-command-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-hover);
  font-weight: 700;
}
.hero-command-card strong {
  display: block;
  color: var(--c-white);
  font-size: 0.82rem;
  line-height: 1.65;
  font-weight: 500;
}

@media (max-width: 767px) {
  .hero {
    align-items: flex-start;
    height: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + var(--safe-top) + 14px);
    padding-bottom: calc(34px + var(--bottom-nav-h));
  }
  .hero-inner {
    padding-top: 0;
  }
  .hero-badge {
    margin-bottom: 12px;
    padding: 6px 12px;
    font-size: 0.56rem;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8.6vw, 3.12rem);
    line-height: 1.04;
    margin-bottom: 12px;
  }
  .hero-sub {
    max-width: 36ch;
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.58;
  }
  /* Compact mobile hero stats - replaces boxed cards */
  .hero-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 22px;
    padding: 14px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    min-height: auto;
  }
  .hero-stat:not(:last-child) {
    border-right: 1px solid var(--border-subtle);
  }
  .hero-stat .num {
    display: block;
    font-family: var(--font-h);
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 4px;
  }
  .hero-stat .label {
    display: block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: none;
  }
  /* Hide sub-line on mobile to reduce density. Sub-line still renders on desktop. */
  .hero-stat .stat-subline {
    display: none;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    min-height: 50px;
    font-size: 0.83rem;
  }
  .hero-microcopy {
    max-width: 36ch;
    font-size: 0.71rem;
    margin-top: 10px;
  }
  .hero-command {
    display: none;
  }
  .hero-proofline span {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }
  .scroll-indicator {
    display: none !important;
  }
  .hero-bg-img {
    background-image: -webkit-image-set(
      url('hero-bg-mobile.webp') type('image/webp'),
      url('hero-bg.jpg') type('image/jpeg')
    );
    background-image: image-set(
      url('hero-bg-mobile.webp') type('image/webp'),
      url('hero-bg.jpg') type('image/jpeg')
    );
  }
}

@media (max-width: 430px) {
  .m-track {
    gap: 18px;
    padding-inline: 16px;
  }
  .m-item {
    min-width: 76px;
  }
  .m-item img {
    height: 26px;
    max-width: 104px;
  }
  .m-item span {
    min-height: 2.4em;
    max-width: 10ch;
    font-size: 0.56rem;
  }
}

/* Hero: instant state for returning to home page */
.hero.no-delay .hero-badge,
.hero.no-delay .hero-sub,
.hero.no-delay .hero-stats,
.hero.no-delay .hero-actions,
.hero.no-delay .hero-microcopy,
.hero.no-delay .hero-proofline,
.hero.no-delay .hero-command { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero.no-delay .line-inner { transform: translateY(0) !important; transition: none !important; }
.hero.no-delay em::after { transform: scaleX(1) !important; transition: none !important; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: calc(16px + var(--bottom-nav-h));
  left: 50%;
  transform: translateX(-50%);
  display: none; flex-direction: column;
  align-items: center; gap: 6px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.5s forwards;
  z-index: 2;
}
@media (min-height: 600px) {
  .scroll-indicator { display: flex; }
}
.scroll-indicator span {
  font-size: 0.55rem;
  color: var(--c-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.scroll-mouse {
  width: 20px; height: 30px;
  border: 2px solid var(--c-border-h);
  border-radius: 10px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--c-accent);
  border-radius: 2px;
  animation: scrollDot 1.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}
.hero.no-delay .scroll-indicator { opacity: 1 !important; animation: none !important; }
.hero-badge .typing-cursor {
  display: inline-block;
  width: 1px; height: 0.9em;
  background: currentColor;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ═══════════ LIGHTWEIGHT SCROLL REVEAL ═══════════ */
.gs-reveal,
.gs-reveal-left,
.gs-reveal-right,
.gs-reveal-scale {
  opacity: 1;
  transform: none;
}
.reveal-pending {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 32px), 0);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  will-change: opacity, transform;
}
.reveal-pending.reveal-left { transform: translate3d(-28px, 0, 0); }
.reveal-pending.reveal-right { transform: translate3d(28px, 0, 0); }
.reveal-pending.reveal-scale { transform: scale(0.94); }
.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════ MARQUEE — LOGO STRIPS ═══════════
   ⚠️ CRITICAL: Logos are ALWAYS full color, ALWAYS moving.
   No grayscale. One measured JS animation path for every strip. */
.marquee-strip {
  padding: 18px 0 20px;
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.marquee-label {
  text-align: center; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-white); margin-bottom: 12px;
}
.marquee-vp {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 4px 0 6px;
}
.marquee-vp::before,
.marquee-vp::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 14vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.marquee-vp::before {
  left: 0;
  background: linear-gradient(90deg, rgba(6,6,8,0.9), transparent);
}
.marquee-vp::after {
  right: 0;
  background: linear-gradient(270deg, rgba(6,6,8,0.9), transparent);
}

.m-track {
  display: flex; gap: clamp(18px, 3vw, 30px);
  animation: none;
  width: max-content;
  min-width: max-content;
  align-items: flex-end;
  padding-inline: clamp(18px, 5vw, 44px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  contain: layout paint style;
}
.m-cycle {
  display: flex;
  align-items: flex-end;
  gap: inherit;
  flex-shrink: 0;
}
@keyframes mScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-translate, -33.333%), 0, 0); }
}

.m-item {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  min-width: clamp(78px, 14vw, 132px);
  gap: 8px;
  transition: transform 0.3s var(--ease);
}

/* ⚠️ FULL COLOR — no grayscale filter, full opacity */
.m-item img {
  height: clamp(28px, 4vw, 34px); width: auto; object-fit: contain;
  max-width: clamp(84px, 15vw, 160px);
  opacity: 1;
  filter: none;
  transition: transform 0.3s var(--ease);
}
.m-item:hover { transform: scale(1.08); }
.m-item:hover img { transform: scale(1.05); }

.m-item span {
  min-height: 2.6em;
  max-width: 14ch;
  font-size: 0.62rem; color: var(--c-gray);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  transition: color 0.3s;
}
.m-item:hover span { color: var(--c-accent); }

/* ═══════════ TRUST CARDS ═══════════ */
.trust-row { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 1100px; margin: 0 auto; }
.trust-card {
  padding: 28px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.trust-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.trust-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--primary-rgb), 0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.trust-card:hover { border-color: rgba(var(--primary-rgb), 0.2); }
.trust-card:hover::before { opacity: 1; }
.trust-card:hover::after { opacity: 1; }

.trust-card .ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); border-radius: 12px;
  color: var(--c-accent); font-size: 1rem;
  margin-bottom: 16px;
  transition: all 0.4s var(--ease);
}
.trust-card:hover .ic { background: var(--c-accent); color: #fff; transform: scale(1.08); }
.trust-card h3 {
  font-family: var(--font-h); font-size: 1.05rem;
  font-weight: 800; margin-bottom: 10px; line-height: 1.3;
}
.trust-card p { color: var(--c-gray); font-size: 0.82rem; line-height: 1.7; font-weight: 300; }

.services-preview-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.svc-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.services-preview-sec .svc-card {
  perspective: 1200px;
  background: transparent !important;
  border: none;
  padding: 0;
  min-height: 360px;
  height: 100%;
  animation: none;
  overflow: visible;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.services-preview-sec .svc-card::after {
  display: none;
}

.services-preview-sec .svc-card-inner {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.services-preview-sec .svc-card:focus-within .svc-card-inner,
.services-preview-sec .svc-card.flipped .svc-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .services-preview-sec .svc-card:hover .svc-card-inner {
    transform: rotateY(180deg);
  }
}

.svc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  min-height: 360px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.svc-face-front {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 52px rgba(0,0,0,0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.svc-face-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(160deg, rgba(var(--primary-rgb), 0.22), rgba(10,10,18,0.94)),
    linear-gradient(180deg, rgba(var(--cta-rgb), 0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(var(--cta-rgb), 0.18);
  box-shadow: 0 24px 56px rgba(0,0,0,0.26);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.services-preview-sec .svc-card .svc-ic {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--primary-hover);
}

.services-preview-sec .svc-card h3 {
  font-family: var(--font-h);
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  line-height: 1.28;
  margin-bottom: 10px;
}

.services-preview-sec .svc-card p {
  margin: 0;
  color: var(--c-gray);
  font-size: 0.86rem;
  line-height: 1.75;
}

.services-preview-sec .svc-face-back p {
  color: var(--c-white);
}

.services-preview-sec .svc-face-back .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.services-preview-sec .svc-card.flipped .svc-face-front {
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(var(--cta-rgb), 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .services-preview-sec .svc-card:hover .svc-face-front {
    box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(var(--cta-rgb), 0.18);
  }
}

.testimonials-sec {
  position: relative;
  overflow: hidden;
}
.testimonials-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(var(--primary-rgb), 0.1), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(var(--cta-rgb), 0.08), transparent 26%);
  pointer-events: none;
}
.testimonials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.testimonial-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.26);
  box-shadow: 0 22px 56px rgba(0,0,0,0.26), 0 0 0 1px rgba(var(--primary-rgb), 0.16);
}
.t-quote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--cta-rgb), 0.1);
  border: 1px solid rgba(var(--cta-rgb), 0.18);
  margin-bottom: 12px;
  font-family: var(--font-h);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--cta);
}
.t-quote-mark i { line-height: 1; }
.testimonial-card blockquote {
  color: var(--c-white);
  font-size: 0.9rem;
  line-height: 1.8;
}
.t-author {
  margin-top: 20px;
}
.t-author span {
  display: block;
  position: relative;
  padding-left: 22px;
  color: var(--cta-hover);
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.t-author span::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cta);
}

/* ═══════════ HOW I WORK ═══════════ */
.work-row { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 1200px; margin: 0 auto 48px; }
.work-card {
  padding: 28px 22px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.work-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.work-card:hover { border-color: rgba(var(--primary-rgb), 0.15); }
.work-card:hover::after { opacity: 1; }

.work-card .step-num {
  font-family: var(--font-h); font-size: 2.5rem;
  font-weight: 900; font-style: italic;
  color: var(--c-accent); opacity: 0.12;
  line-height: 1; margin-bottom: 10px;
}
.work-card h3 {
  font-family: var(--font-h); font-size: 1.05rem;
  font-weight: 800; margin-bottom: 16px;
}
.sk-list { list-style: none; }
.sk-list li {
  padding: 7px 0; color: var(--c-gray); font-size: 0.8rem;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 12px;
  font-weight: 400; transition: color 0.3s;
}
.sk-list li:last-child { border-bottom: none; }
.sk-list li::before {
  content: ''; width: 5px; height: 5px;
  background: var(--c-accent); border-radius: 50%;
  flex-shrink: 0; transition: transform 0.3s var(--ease-spring);
}
.work-card:hover .sk-list li::before { transform: scale(1.5); }
.sk-list li:hover { color: var(--c-white); }
.work-card .tools-line {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 0.72rem; color: var(--c-muted); font-style: italic;
}

.integration-bar {
  max-width: 760px; margin: 0 auto; padding: 24px 22px;
  background: linear-gradient(135deg, var(--c-accent-soft), rgba(15,15,20,0.9));
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: center;
}
.integration-bar p {
  font-size: clamp(0.86rem, 2vw, 1.05rem);
  line-height: 1.75; font-weight: 400;
}

/* ═══════════ RESULTS / IMPACT ═══════════ */
.results-sec {
  padding: var(--section-pad) var(--side-pad);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.results-sec::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 80vw, 800px); height: clamp(300px, 80vw, 800px);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08), transparent 50%);
  pointer-events: none;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.result-card {
  padding: 22px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.result-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: conic-gradient(from var(--gradient-angle, 0deg),
    transparent 0%, var(--c-accent) 10%, transparent 20%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}
.result-card:hover::before {
  opacity: 1;
  animation: rotateGradient 3s linear infinite;
}
.result-card::after {
  content: '';
  position: absolute; inset: 1px;
  background: var(--c-card-solid);
  border-radius: calc(var(--radius-sm) - 1px);
  z-index: -1;
}
@keyframes rotateGradient {
  to { --gradient-angle: 360deg; }
}
.result-card .result-num {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-card .result-label {
  font-size: 0.78rem;
  color: var(--c-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.result-card .result-detail {
  font-size: 0.69rem;
  color: var(--c-muted);
  margin-top: 8px;
  line-height: 1.6;
  font-weight: 300;
}

.impact-grid {
  max-width: 1120px;
}

.impact-card {
  min-height: 176px;
}

.impact-sub {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════ FEATURED PROOF ═══════════ */
.featured-proof {
  position: relative;
  overflow: hidden;
}
.featured-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb), 0.12), transparent 35%),
    radial-gradient(circle at 82% 72%, rgba(var(--teal-rgb), 0.08), transparent 30%);
  pointer-events: none;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.case-card {
  padding: 24px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.case-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.case-eyebrow,
.case-chip,
.case-metrics span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-eyebrow {
  color: var(--c-white);
}
.case-chip {
  padding: 7px 11px;
  background: var(--c-accent-soft);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  color: var(--primary-hover);
}
.case-card h3 {
  font-family: var(--font-h);
  font-size: 1.14rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.case-card > p {
  color: var(--c-gray);
  font-size: 0.84rem;
  line-height: 1.8;
  font-weight: 300;
}
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 18px;
}
.case-metrics span {
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--c-gray);
}
.case-points {
  list-style: none;
  display: grid;
  gap: 10px;
}
.case-points li {
  position: relative;
  padding-left: 18px;
  color: var(--c-white);
  font-size: 0.82rem;
  line-height: 1.65;
}
.case-points li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  box-shadow: 0 0 12px var(--c-accent-glow);
}

/* ═══════════ PORTFOLIO / VIDEO SHOWCASE ═══════════ */
.show-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 0 auto 24px; gap: 14px;
  flex-direction: column; align-items: flex-start;
  max-width: 1280px;
}
.show-head h2 {
  font-family: var(--font-h);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
}
.show-head p {
  color: var(--c-muted); font-size: 0.8rem;
  font-weight: 300;
}

.show-ctx {
  margin: 0 auto 20px; padding: 12px 14px;
  background: var(--c-accent-soft);
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: var(--radius-sm); max-width: 660px;
  width: 100%;
}
.show-ctx h3 {
  font-family: var(--font-h); font-size: clamp(0.8rem, 2vw, 0.88rem);
  font-weight: 800; margin-bottom: 4px;
}
.show-ctx p {
  font-size: clamp(0.74rem, 2vw, 0.8rem); color: var(--c-gray);
  line-height: 1.65; font-weight: 300;
}

.rw-wrap { position: relative; padding: 0; margin: 0 auto 28px; max-width: 1280px; }
.vid-row {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 clamp(16px, 4vw, 48px) 16px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-padding-inline: clamp(16px, 4vw, 48px);
  -ms-overflow-style: none;
}
.vid-row::-webkit-scrollbar { display: none; }
.vid-row > * { scroll-snap-align: start; }

.vid-card {
  flex: 0 0 auto;
  aspect-ratio: 2 / 3;
  width: clamp(220px, 22vw, 320px);
  max-height: 480px;
  position: relative;
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  background: var(--c-card-solid);
  scroll-snap-align: start;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transform-style: preserve-3d;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .vid-card {
    animation: vidCardReveal 0.55s var(--ease-out) backwards;
  }
  .vid-card:nth-child(2n) { animation-delay: 0.04s; }
  .vid-card:nth-child(3n) { animation-delay: 0.08s; }
  .vid-card:nth-child(4n) { animation-delay: 0.12s; }
  .vid-card:nth-child(5n) { animation-delay: 0.16s; }
  .vid-card:nth-child(6n) { animation-delay: 0.2s; }
}

@keyframes vidCardReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}
.vid-card picture,
.vid-card img,
.vid-card > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: inherit;
}
.vid-card picture {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(30px);
  transition: transform 0.5s var(--ease);
  border-radius: inherit;
}
.vid-card img {
  transition: transform 0.6s var(--ease);
}
@supports not (aspect-ratio: 2 / 3) {
  .vid-card {
    height: 0;
    padding-bottom: 150%;
  }
  .vid-card picture {
    position: absolute;
    inset: 0;
  }
}
.vid-card .v-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0.1) 50%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px 8px;
  opacity: 1;
}
.v-overlay .v-title {
  font-family: var(--font-h); font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  font-weight: 800; margin-bottom: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v-overlay .v-tags { display: none; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.v-tag {
  font-size: 0.52rem; padding: 2px 5px;
  background: rgba(var(--primary-rgb), 0.16); color: var(--primary-hover);
  border-radius: 4px; font-weight: 600;
}
.v-overlay .v-ctx { display: none; font-size: 0.58rem; color: var(--c-muted); font-weight: 300; }

.play-btn {
  width: 44px; height: 44px;
  background: var(--cta); border: none; border-radius: 50%;
  color: #1a1304; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.7rem;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 8px 18px rgba(var(--cta-rgb), 0.32);
  margin-top: 6px; flex-shrink: 0;
  touch-action: manipulation;
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(var(--cta-rgb), 0.32); }
  50% { box-shadow: 0 10px 28px rgba(var(--cta-rgb), 0.42); }
}
.play-btn:hover { transform: scale(1.15); }

/* Vid card glow on hover — cursor-following radial gradient */
.vid-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(
    600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--primary-rgb), 0.16),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
}
.vid-card:hover::after { opacity: 1; }

/* YouTube Shorts — vertical cards */
.vid-card-short {
  width: clamp(220px, 22vw, 320px) !important;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
}
@supports not (aspect-ratio: 2 / 3) {
  .vid-card-short {
    height: 0;
    padding-bottom: 150%;
    position: relative;
  }
}
.shorts-row { gap: 18px; }

/* YouTube link on short cards */
.v-yt-link {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  color: #fff; font-size: 0.7rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
}
.vid-card:hover .v-yt-link { opacity: 1; transform: scale(1); }
.v-yt-link:hover { background: var(--primary); }

.scroll-ar {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(10,10,18,0.92);
  border: 1px solid var(--c-border-h);
  color: var(--c-white); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  opacity: 0.7; transition: all 0.3s; font-size: 0.9rem;
  touch-action: manipulation;
}
.scroll-ar:hover { background: var(--primary); border-color: var(--primary); opacity: 1; }
.scroll-ar.l { left: 4px; }
.scroll-ar.r { right: 4px; }
.scroll-ar:disabled {
  opacity: 0.28 !important;
  cursor: not-allowed;
  background: rgba(6,6,8,0.55);
  border-color: rgba(255,255,255,0.04);
}

/* ═══════════ CTA BAND ═══════════ */
.cta-band {
  padding: var(--section-pad) var(--side-pad);
  text-align: center; position: relative; overflow: hidden;
  background: var(--c-bg2);
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 80vw, 600px); height: clamp(300px, 80vw, 600px);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08), transparent 55%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite alternate;
}
@keyframes ctaPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
.cta-band h2 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 16px;
  position: relative;
}
.cta-band .cta-p {
  font-size: clamp(0.84rem, 2vw, 1rem);
  color: var(--c-gray); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.8;
  font-weight: 300; position: relative;
}

/* ═══════════ ABOUT / PHILOSOPHY ═══════════ */
.about-row {
  display: grid; grid-template-columns: 1fr;
  gap: 18px; max-width: 1100px; margin: 0 auto;
}
.about-card {
  padding: 28px 22px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.about-card:hover { border-color: rgba(var(--primary-rgb), 0.15); }
.about-card .a-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.about-card .a-ic {
  width: 50px; height: 50px;
  background: var(--c-accent); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.about-card .a-head h3 {
  font-family: var(--font-h); font-size: 1.08rem; font-weight: 800;
}
.about-card p {
  color: var(--c-gray); line-height: 1.85;
  font-size: 0.84rem; margin-bottom: 14px; font-weight: 300;
}
.exp-cat { margin-bottom: 22px; }
.exp-cat h4 {
  font-family: var(--font-h); font-size: 0.92rem;
  font-weight: 800; margin-bottom: 8px;
}
.exp-cat p {
  padding-left: 16px; border-left: 2px solid var(--c-accent);
  color: var(--c-gray); font-size: 0.84rem;
}

/* ═══════════ EDUCATION ═══════════ */
.edu-row {
  display: grid; grid-template-columns: 1fr;
  gap: 18px; max-width: 900px; margin: 0 auto;
}
.edu-card {
  padding: 28px 22px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
}
.edu-card:hover { border-color: rgba(var(--primary-rgb), 0.15); transform: translateY(-3px); }
.edu-card h3 {
  font-family: var(--font-h); font-size: 1.02rem;
  font-weight: 800; margin-bottom: 6px;
}
.edu-card .minor-txt {
  color: var(--c-accent); font-weight: 600;
  font-size: 0.92rem; margin-bottom: 6px;
}
.edu-card .uni-txt {
  color: var(--c-gray); margin-bottom: 18px;
  font-weight: 300; font-size: 0.84rem;
}
.edu-deets {
  padding-top: 16px; border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 10px;
}
.edu-deet {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-gray); font-size: 0.82rem; font-weight: 400;
}
.edu-deet i { color: var(--c-accent); width: 18px; text-align: center; font-size: 0.82rem; }

/* ═══════════ CERTIFICATIONS ═══════════ */
.cert-sec {
  padding: clamp(42px, 8vw, 110px) 0;
  overflow: hidden; background: var(--c-bg);
}
.cert-head {
  text-align: center; padding: 0 var(--side-pad); margin-bottom: 28px;
}
.cert-head h2 {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800; margin-bottom: 20px;
  line-height: 1.2; padding-bottom: 14px;
  position: relative;
}
.cert-head h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--c-accent); border-radius: 2px;
}
.cert-head p {
  color: var(--c-gray); max-width: 700px; margin: 0 auto;
  line-height: 1.7; font-weight: 300;
  font-size: clamp(0.84rem, 2vw, 1rem);
}
/* ═══════════ INSTAGRAM FEED ═══════════ */
.ig-feed-wrap { max-width: 900px; margin: 0 auto; }
.ig-profile-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.ig-profile-header .btn { flex-shrink: 0; }
.ig-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.ig-profile-info { flex: 1; min-width: 0; }
.ig-profile-info h3 {
  font-family: var(--font-b); font-size: 1rem; font-weight: 700; margin-bottom: 2px;
}
.ig-profile-info p { font-size: 0.76rem; color: var(--c-gray); font-weight: 300; }
.ig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-bottom: 24px;
}
.ig-cell {
  position: relative; overflow: hidden;
  border-radius: 4px; cursor: pointer;
  aspect-ratio: 1 / 1; background: var(--c-card-solid);
}
@supports not (aspect-ratio: 1/1) {
  .ig-cell { height: 0; padding-bottom: 100%; }
  .ig-cell picture { position: absolute; inset: 0; }
  .ig-cell img { position: absolute; inset: 0; }
}
.ig-cell picture {
  display: block;
  width: 100%;
  height: 100%;
}
.ig-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.ig-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
  font-size: 1.4rem; color: #fff;
}
.ig-cell:hover img { transform: scale(1.08); }
.ig-cell:hover .ig-cell-overlay { opacity: 1; }
.ig-cta { text-align: center; }

/* ═══════════ FAQ ═══════════ */
.faq-sec {
  background: var(--c-bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 18px;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--c-accent);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--c-accent2);
}
.faq-item p {
  padding: 0 18px 18px;
  color: var(--c-gray);
  font-size: 0.84rem;
  line-height: 1.8;
}

.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(var(--cta-rgb), 0.14);
  border: 1px solid rgba(var(--cta-rgb), 0.24);
  color: var(--cta-hover);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scarcity-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.4);
  animation: badgePulse 1.8s ease-in-out infinite;
}
@keyframes badgePulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--cta-rgb), 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--cta-rgb), 0); }
}

/* ═══════════ CONNECT / CONTACT ═══════════ */
.conn-sec {
  padding: var(--section-pad) var(--side-pad) calc(var(--section-pad) + var(--bottom-nav-h));
  background: var(--c-bg2);
}
.conn-sec .sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.connect-primary-cta {
  margin-top: 8px;
}
.conn-row {
  display: grid; grid-template-columns: 1fr;
  gap: 18px; max-width: 1000px; margin: 0 auto 52px;
}
.conn-card {
  padding: 28px 22px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.conn-card:hover { border-color: rgba(var(--primary-rgb), 0.15); }
.conn-card h3 {
  font-family: var(--font-h); font-size: 1.05rem;
  font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.conn-card h3 i { color: var(--c-accent); }
.conn-card > p {
  color: var(--c-gray); margin-bottom: 24px;
  line-height: 1.7; font-weight: 300; font-size: 0.84rem;
}
.conn-opts { display: flex; flex-direction: column; gap: 8px; }
.conn-opts .btn {
  width: 100%; justify-content: center;
  font-size: clamp(0.76rem, 2vw, 0.82rem); padding: 12px 16px;
  word-break: break-word; text-align: center;
}

.social-bar {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
  padding-top: 36px; border-top: 1px solid var(--c-border);
}
.soc-link {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--c-gray);
  transition: all 0.4s var(--ease-spring);
  min-width: 48px; min-height: 44px; padding: 8px;
  touch-action: manipulation;
}
.soc-link:hover { color: var(--primary); transform: translateY(-5px); }
.soc-link i { font-size: 1.2rem; }
.soc-link span { font-size: clamp(0.58rem, 1.5vw, 0.64rem); font-weight: 600; letter-spacing: 0.03em; }

.footer-txt {
  text-align: center; margin-top: 48px;
  color: var(--c-muted); font-size: 0.7rem;
  line-height: 2; font-weight: 300; padding-bottom: 16px;
}

/* ═══════════ SERVICES PAGE ═══════════ */
.svc-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 14px; max-width: 1200px; margin: 0 auto;
}
.svc-card {
  padding: 24px 20px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  position: relative; overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: float3d 8s ease-in-out infinite;
}
.svc-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.svc-card:hover { border-color: rgba(var(--primary-rgb), 0.15); }
.svc-card:hover::after { opacity: 1; }
.svc-card:nth-child(2) { animation-delay: -2.7s; }
.svc-card:nth-child(3) { animation-delay: -5.4s; }

@keyframes float3d {
  0%, 100% { transform: rotate3d(1, 1, 0, 0deg) translateY(0); }
  50% { transform: rotate3d(1, 1, 0, 2deg) translateY(-6px); }
}

.svc-card .svc-ic {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); border-radius: 14px;
  color: var(--c-accent); font-size: 1.15rem;
  margin-bottom: 18px;
  transition: all 0.4s var(--ease);
}
.svc-card:hover .svc-ic { background: var(--c-accent); color: #fff; transform: scale(1.08); }
.svc-card h3 {
  font-family: var(--font-h); font-size: 0.96rem;
  font-weight: 800; margin-bottom: 10px; line-height: 1.4;
}
.svc-card > p {
  color: var(--c-gray); font-size: 0.82rem;
  line-height: 1.65; margin-bottom: 18px; font-weight: 300;
}
.svc-feats { list-style: none; }
.svc-feats li {
  padding: 7px 0; color: var(--c-gray); font-size: 0.78rem;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 10px; font-weight: 400;
}
.svc-feats li:last-child { border-bottom: none; }
.svc-feats li::before { content: '\2713'; color: var(--c-accent); font-weight: 700; font-size: 0.68rem; }

.svc-process {
  margin-top: 56px;
}
.svc-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
.svc-process-card {
  padding: 22px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.svc-process-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -55% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.14), transparent 70%);
  pointer-events: none;
}
.svc-step {
  display: inline-flex;
  margin-bottom: 14px;
  font-family: var(--font-h);
  font-size: 1.9rem;
  font-style: italic;
  line-height: 1;
  color: rgba(255,255,255,0.72);
}
.svc-process-card h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  margin-bottom: 10px;
}
.svc-process-card p {
  color: var(--c-gray);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* ═══════════ EXPERIENCE / TIMELINE ═══════════ */
.exp-box {
  max-width: 1000px; margin: 0 auto 36px; padding: 20px 16px;
  background: linear-gradient(135deg, var(--c-accent-soft), rgba(15,15,20,0.85));
  border: 1px solid rgba(var(--primary-rgb), 0.08); border-radius: var(--radius-sm);
}
.exp-box h3 {
  font-family: var(--font-h); font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 800; text-align: center; margin-bottom: 10px;
}
.exp-box > p {
  text-align: center; color: var(--c-gray); max-width: 640px;
  margin: 0 auto 20px; line-height: 1.7; font-weight: 300; font-size: clamp(0.78rem, 2vw, 0.84rem);
}
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-item {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  background: rgba(0,0,0,0.3); border-radius: var(--radius-sm);
  font-size: clamp(0.68rem, 2vw, 0.76rem); transition: background 0.3s;
}
.hl-item:hover { background: var(--c-accent-soft); }
.hl-item i { color: var(--c-accent); font-size: 0.85rem; min-width: 20px; flex-shrink: 0; }

.tl { max-width: 840px; margin: 0 auto; position: relative; padding-left: 24px; }
.tl::before {
  content: ''; position: absolute; left: 6px; top: 0; width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--c-accent), rgba(var(--primary-rgb), 0.04));
}
.tl-item { position: relative; margin-bottom: 16px; }
.tl-item::before {
  content: ''; position: absolute; left: -21px; top: 12px;
  width: 10px; height: 10px;
  background: var(--c-accent); border-radius: 50%;
  border: 2px solid var(--c-bg); z-index: 2;
  box-shadow: 0 0 10px var(--c-accent-glow);
  transition: transform 0.3s var(--ease-spring);
}
.tl-item:hover::before { transform: scale(1.3); }

.tl-body {
  padding: 16px 14px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease);
}
.tl-body:hover { border-color: rgba(var(--primary-rgb), 0.15); }
.tl-body h3 {
  font-family: var(--font-h); font-size: clamp(0.86rem, 2.5vw, 0.96rem);
  font-weight: 800; margin-bottom: 4px;
}
.tl-body .tl-sub {
  color: var(--c-accent); font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 0.78rem); margin-bottom: 10px;
}
.tl-body .tl-key {
  background: var(--c-accent-soft); padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-accent);
  font-size: clamp(0.72rem, 2vw, 0.78rem); color: var(--c-gray);
  margin-bottom: 12px; font-weight: 400;
}
.tl-body ul { padding-left: 14px; }
.tl-body li {
  color: var(--c-gray); font-size: clamp(0.72rem, 2vw, 0.78rem);
  line-height: 1.65; margin-bottom: 4px; font-weight: 300;
}
.tl-body li::marker { color: var(--c-accent); }

.tl-toggle {
  display: block; width: 100%; background: none; border: none;
  text-align: left; cursor: pointer; color: var(--c-white); padding: 0;
}
.tl-toggle-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
}
.tl-toggle-head .tl-chevron {
  font-size: 0.65rem; color: var(--c-accent);
  transition: transform 0.4s var(--ease);
  margin-top: 5px; flex-shrink: 0;
}
.tl-toggle-head .tl-chevron.open { transform: rotate(180deg); }
.tl-details {
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.3s;
}
.tl-details.collapsed { max-height: 0 !important; opacity: 0; }

/* ═══════════ MODAL ═══════════ */
.modal-bg {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease; padding: 0;
}
.modal-bg.on { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 100%; height: 100%;
  background: #000; border-radius: 0;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: all 0.5s var(--ease-bounce);
  display: flex; flex-direction: column;
}
.modal-bg.on .modal-box { transform: scale(1) translateY(0); }
.modal-top {
  padding: 10px 16px;
  padding-top: calc(10px + var(--safe-top));
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.8);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.modal-top h3 {
  font-family: var(--font-h); font-size: clamp(0.78rem, 2vw, 0.88rem); font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(100% - 56px);
}
.modal-x {
  background: none; border: none; color: var(--c-white);
  font-size: 1.8rem; cursor: pointer;
  min-height: 48px; min-width: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
  touch-action: manipulation;
}
.modal-x:hover { color: var(--c-accent); transform: rotate(90deg); }
.modal-frame {
  width: 100%; flex: 1; border: none; display: block;
  aspect-ratio: 16/9;
}
@supports not (aspect-ratio: 16/9) {
  .modal-frame { height: 56.25vw; }
}
.modal-box.modal-short { max-width: 400px; }
.modal-box.modal-short .modal-frame { aspect-ratio: 9 / 16; }

/* ═══════════ BACK TO TOP ═══════════ */
.btt {
  position: fixed;
  bottom: var(--btt-bottom);
  right: var(--floating-edge);
  width: 44px; height: 44px;
  background: var(--c-accent); color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; z-index: 4999;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px var(--c-accent-glow);
}
.btt.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.btt:hover { transform: translateY(-3px) scale(1.1); }

/* ═══════════ UTILITIES ═══════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ═══════════ CARD SHINE EFFECT ═══════════ */
@media (hover: hover) and (pointer: fine) {
  .trust-card, .work-card, .svc-card, .about-card, .edu-card, .conn-card, .result-card, .case-card, .svc-process-card {
    overflow: hidden;
  }
  .trust-card .shine, .work-card .shine, .svc-card .shine,
  .about-card .shine, .edu-card .shine, .conn-card .shine, .result-card .shine,
  .case-card .shine, .svc-process-card .shine {
    --shimmer-pos: -75%;
    position: absolute; top: 0; left: var(--shimmer-pos, -75%);
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    pointer-events: none; z-index: 2;
  }
  .trust-card:hover .shine, .work-card:hover .shine, .svc-card:hover .shine,
  .about-card:hover .shine, .edu-card:hover .shine, .conn-card:hover .shine,
  .result-card:hover .shine, .case-card:hover .shine, .svc-process-card:hover .shine {
    animation: shineSwipe 0.6s ease forwards;
  }
  @keyframes shineSwipe { to { left: 125%; } }
}

/* ═══════════ CROSS-BROWSER FALLBACKS ═══════════ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.solid,
  .nav-overlay,
  .mob-bottom-nav,
  .btn-glass,
  .hero-command,
  .trust-card,
  .work-card,
  .result-card,
  .case-card,
  .about-card,
  .edu-card,
  .faq-item,
  .conn-card,
  .svc-card,
  .svc-process-card,
  .stat-item,
  .modal-bg {
    background-color: rgba(10,10,15,0.96);
  }
}

@supports not ((mask-image: linear-gradient(#000,#000)) or (-webkit-mask-image: linear-gradient(#000,#000))) {
  .hero-bg-grid {
    opacity: 0.28;
    background-size: 64px 64px;
  }
}

/* ═══════════ FLOATING PARTICLES ═══════════ */
.particles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--cta));
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.22);
}
.particle:nth-child(n+4) { display: none; }
.particle:nth-child(1) { left: 15%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 50%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 80%; animation-duration: 12s; animation-delay: 4s; }
@keyframes particleFloat {
  0% { transform: translateY(calc(var(--vh, 1vh) * 100)) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px var(--side-pad) 0;
  background: linear-gradient(180deg, var(--c-bg2), var(--c-bg));
}
.stat-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 18px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.stat-item::after {
  content: '';
  position: absolute;
  inset: auto -20% -65% auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18), transparent 65%);
  pointer-events: none;
}
.stat-item .stat-num {
  font-family: var(--font-h); font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--c-accent); line-height: 1;
}
.stat-item .stat-label {
  font-size: clamp(0.58rem, 1.5vw, 0.68rem); color: var(--c-muted);
  font-weight: 500; margin-top: 4px; letter-spacing: 0.05em; text-transform: uppercase;
}

/* Skeleton loading for images */
.vid-card img[src=""],
.vid-card img:not([src]) {
  background: linear-gradient(110deg, var(--c-card-solid) 30%, var(--c-elevated) 50%, var(--c-card-solid) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Logo glitch effect on nav hover */
@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover {
    animation: glitch 0.4s ease forwards;
  }
  @keyframes glitch {
    0% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    70%, 100% { transform: translate(0); }
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: 480px+
═══════════════════════════════════════════ */
@media (min-width: 480px) {
  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px var(--side-pad) 0;
  }
  .stat-item { padding: 16px; }
}

@media (min-width: 560px) and (max-width: 767px) {
  .trust-row,
  .work-row,
  .case-grid,
  .faq-grid,
  .about-row,
  .edu-row,
  .conn-row,
  .svc-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid,
  .hl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: 768px+ (tablet)
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); margin-bottom: 18px; line-height: 1.02; }
  .hero-badge {
    position: static;
    margin-bottom: 28px;
    font-size: 0.65rem;
    padding: 7px 18px;
  }
  .hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 18px; }
  .hero-stats { display: flex; gap: 32px; margin-bottom: 18px; }
  .hero-stat {
    padding: 0 24px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-stat:not(:last-child)::after { display: block; }
  .hero-stat .num { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .hero-stat .label { font-size: clamp(0.58rem, 1.5vw, 0.66rem); margin-top: 4px; }
  .hero-stat .stat-subline { font-size: 0.52rem; }
  .hero-stat:not(:last-child)::after { height: 30px; }
  .hero-actions { flex-direction: row; width: auto; gap: 12px; }
  .hero-actions .btn { width: auto; padding: 14px 30px; font-size: 0.85rem; }
  .hero-microcopy { margin-top: 10px; font-size: 0.76rem; }
  .hero-proofline { margin-top: 10px; }
  .hero-proofline span { min-height: 32px; padding: 7px 12px; font-size: 0.64rem; }
  .hero-command { margin-top: 32px; padding: 24px; }
  .hero-command-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-command-grid { grid-template-columns: repeat(2, 1fr); }

  .scroll-indicator { bottom: calc(24px + var(--bottom-nav-h)); gap: 8px; }
  .scroll-indicator span { font-size: 0.6rem; }
  .scroll-mouse { width: 22px; height: 34px; border-radius: 12px; }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px var(--side-pad) 0;
  }
  .stat-item { padding: 20px 16px; }

  .trust-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-card { padding: 32px 26px; }

  .work-row { grid-template-columns: repeat(3, 1fr); }
  .work-card { padding: 32px 26px; }

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

  /* Marquee — bigger logos on tablet+ */
  .m-item img { height: 46px; max-width: 210px; }
  .marquee-strip { padding: 36px 0; }
  .m-track { gap: 36px; padding-inline: clamp(28px, 6vw, 56px); }
  .cert-sec { padding: var(--section-pad) 0; }
  .cert-head { margin-bottom: 44px; }

  .show-head { flex-direction: row; align-items: flex-end; }
  .show-head p { text-align: right; max-width: 320px; }
  .show-ctx { margin-bottom: 28px; padding: 14px 16px; border-radius: var(--radius); }
  .vid-row { gap: 18px; padding: 0 clamp(20px, 4vw, 48px) 20px; }
  .rw-wrap { margin-bottom: 36px; }
  .vid-card { width: clamp(220px, 22vw, 320px); border-radius: 14px; }
  .v-overlay .v-tags { display: flex; }
  .v-overlay .v-ctx { display: block; }
  .v-overlay { padding: 14px 12px; }
  .play-btn { width: 44px; height: 44px; font-size: 0.75rem; margin-top: 8px; }

  .vid-card-short { width: clamp(220px, 22vw, 320px) !important; }

  .about-row { grid-template-columns: 1fr 1fr; }
  .about-card { padding: 34px 28px; }

  .edu-row { grid-template-columns: 1fr 1fr; }
  .edu-card { padding: 34px 28px; }

  .conn-row { grid-template-columns: 1fr 1fr; }
  .conn-card { padding: 34px 28px; }

  .faq-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .svc-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .svc-card { padding: 30px 24px; }
  .svc-process-grid { grid-template-columns: repeat(2, 1fr); }

  .exp-box { margin-bottom: 52px; padding: 24px 20px; border-radius: var(--radius); }
  .hl-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .tl { padding-left: 38px; }
  .tl::before { left: 12px; }
  .tl-item::before { left: -32px; width: 14px; height: 14px; }
  .tl-body { padding: 26px; }
  .tl-item { margin-bottom: 32px; }
  .tl-toggle { display: none; }
  .tl-details { max-height: none !important; opacity: 1 !important; overflow: visible; }
  .tl-details.collapsed { max-height: none !important; opacity: 1 !important; }

  .modal-bg { padding: 16px; }
  .modal-box { max-width: 900px; height: auto; border-radius: var(--radius); border: 1px solid var(--c-border); }
  .modal-top { padding-top: 14px; }
  .result-card { padding: 28px 22px; border-radius: var(--radius); }
  .results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .result-card .result-num { font-size: clamp(2.2rem, 4vw, 3.5rem); }
  .impact-card { min-height: 190px; }

  .scroll-ar { display: flex; width: 44px; height: 44px; font-size: 1rem; }
  .scroll-ar.l { left: 8px; }
  .scroll-ar.r { right: 8px; }

  .social-bar { gap: 16px; padding-top: 48px; }
  .soc-link { min-width: 52px; padding: 10px; gap: 7px; }
  .soc-link i { font-size: 1.3rem; }
  .connect-primary-cta { min-width: 320px; }

  .ig-grid { gap: 6px; }
  .ig-cell { border-radius: 6px; }
  .ig-profile-header { gap: 18px; margin-bottom: 32px; }
  .ig-avatar { width: 60px; height: 60px; font-size: 1.6rem; }

  /* More particles on tablet+ */
  .particle:nth-child(n+4) { display: block; }
  .particle:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: 1s; }
  .particle:nth-child(5) { left: 65%; animation-duration: 16s; animation-delay: 3s; }
  .particle:nth-child(6) { left: 90%; animation-duration: 14s; animation-delay: 5s; }
  .particle:nth-child(7) { left: 10%; animation-duration: 17s; animation-delay: 2.5s; }
  .particle:nth-child(8) { left: 45%; animation-duration: 22s; animation-delay: 6s; }

  @keyframes particleFloat {
    0% { transform: translateY(calc(var(--vh, 1vh) * 100)) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
  }
}

@media (min-width: 1440px) and (min-height: 900px) {
  .hero h1 { font-size: clamp(3.5rem, 5.2vw, 5rem); }
}

@media (min-width: 768px) and (max-height: 900px) {
  .hero-command { margin-top: 16px; padding: 12px; }
  .hero-command-top { gap: 8px; margin-bottom: 10px; }
  .hero-command-label { padding: 5px 10px; font-size: 0.58rem; }
  .hero-command-status { font-size: 0.68rem; }
  .hero-command-grid { gap: 8px; }
  .hero-command-card { padding: 9px 10px; }
  .hero-command-card span { margin-bottom: 3px; font-size: 0.56rem; }
  .hero-command-card strong { font-size: 0.72rem; line-height: 1.35; }
}

@media (min-width: 768px) and (max-height: 800px) {
  .hero h1 { font-size: clamp(2.25rem, 4.7vw, 4rem); margin-bottom: 14px; line-height: 1; }
  .hero-badge { margin-bottom: 16px; padding: 6px 14px; font-size: 0.6rem; }
  .hero-sub { margin-bottom: 14px; line-height: 1.52; }
  .hero-stats { margin-bottom: 14px; }
  .hero-actions .btn { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
  .hero-microcopy { margin-top: 8px; font-size: 0.72rem; line-height: 1.45; }
  .hero-proofline { margin-top: 8px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: 860px+ (desktop nav)
═══════════════════════════════════════════ */
@media (min-width: 860px) {
  :root {
    --nav-h: 68px;
    --bottom-nav-h: 0px;
    --ask-ai-bottom: 92px;
    --btt-bottom: 160px;
  }
  .nav-desk-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mob-bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .conn-sec { padding-bottom: var(--section-pad); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: 1024px+ (enhanced hover/video)
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-process-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (hover: hover) and (pointer: fine) {
    .rw-wrap:hover .scroll-ar { opacity: 1; }
    .scroll-ar { opacity: 0; }
    .vid-card:hover {
      z-index: 10;
      box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px var(--c-accent-glow);
    }
    .vid-card .v-overlay {
      opacity: 0;
      transition: opacity 0.4s;
    }
    .vid-card:hover .v-overlay { opacity: 1; }
  }
}

@media (min-width: 1100px) {
  .hero-command-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .hero-inner { max-width: 980px; }
  .stats-bar { max-width: 1280px; }
  .show-head { max-width: 1280px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: 1200px+ (large shorts)
═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .vid-card-short { width: clamp(220px, 22vw, 320px) !important; }
}

/* ═══════════════════════════════════════════
   EXTRA SMALL: <375px
═══════════════════════════════════════════ */
@media (max-width: 374px) {
  :root {
    --side-pad: 12px;
    --section-pad: clamp(36px, 8vw, 60px);
    --radius: 12px;
    --radius-sm: 8px;
  }
  .hero h1 { font-size: clamp(1.6rem, 10vw, 2.5rem); }
  .hero-badge { font-size: 0.54rem; padding: 5px 10px; gap: 6px; }
  .hero-sub { font-size: 0.82rem; }
  .hero-microcopy { font-size: 0.68rem; }
  .hero-proofline { gap: 6px; }
  .hero-proofline span { padding: 5px 8px; font-size: 0.56rem; }
  .hero-actions .btn { font-size: 0.76rem; padding: 10px 16px; min-height: 44px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .sec-title { font-size: clamp(1.3rem, 5vw, 2rem); }
  .sec-label { font-size: 0.58rem; padding: 5px 12px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .result-card { padding: 18px 14px; }
  .vid-card { width: clamp(180px, 48vw, 260px); max-height: 390px; }
  .trust-card, .work-card, .svc-card, .about-card, .edu-card, .conn-card { padding: 22px 16px; }
  .nav-logo { font-size: 0.92rem; letter-spacing: 0.12em; }
  .mob-bottom-nav a { padding: 4px 6px; min-width: 44px; font-size: 0.5rem; }
  .mob-bottom-nav a i { font-size: 0.9rem; }
  .conn-opts .btn { font-size: 0.76rem; padding: 10px 14px; }
  .hl-grid { grid-template-columns: 1fr; }
  .hl-item { font-size: 0.7rem; }
  .svc-card h3 { font-size: 0.88rem; }
  .svc-card > p { font-size: 0.76rem; }
  .svc-feats li { font-size: 0.72rem; }
}

/* Shorts small phone sizing */
@media (max-width: 480px) {
  .vid-card-short { width: clamp(180px, 48vw, 260px) !important; max-height: 390px; }
  .hl-grid { grid-template-columns: 1fr; }
  .ig-profile-header {
    align-items: flex-start;
  }
  .ig-profile-header .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sec-head { margin-bottom: 40px; }
  .vid-row { gap: 12px; padding: 0 16px 16px; }
  .vid-card { width: clamp(180px, 48vw, 260px); max-height: 390px; }
  .vid-card-short { width: clamp(180px, 48vw, 260px) !important; max-height: 390px; }
  .shorts-row { gap: 12px; }
}

@media (max-width: 859px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .nav.solid,
  .mob-bottom-nav,
  .btn-glass,
  .stat-item,
  .trust-card,
  .work-card,
  .result-card,
  .case-card,
  .about-card,
  .edu-card,
  .faq-item,
  .conn-card,
  .svc-card,
  .svc-process-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .nav-overlay {
    justify-content: flex-start;
    gap: 0;
  }

  .nav-overlay > a {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   LANDSCAPE MOBILE
═══════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 12px);
    padding-bottom: calc(16px + var(--bottom-nav-h));
  }
  .hero h1 { font-size: clamp(1.5rem, 5vw, 3rem); margin-bottom: 12px; }
  .hero-badge { margin-bottom: 10px; }
  .hero-sub { margin-bottom: 10px; font-size: 0.82rem; }
  .hero-stats { margin-bottom: 14px; gap: 16px; }
  .hero-actions { flex-direction: row; gap: 10px; }
  .hero-actions .btn { width: auto; padding: 10px 20px; min-height: 44px; font-size: 0.78rem; }
  .scroll-indicator { display: none; }
  .hero-orb { display: none; }
  .particles { display: none; }
  .nav { height: 48px; }
  :root { --nav-h: 48px; }
  .nav-overlay > a { font-size: clamp(1.2rem, 4vw, 1.8rem); padding: 8px 20px; }
  .nav-overlay-cta { margin-top: 20px; }
  .mob-bottom-nav { padding: 2px 0 calc(2px + var(--safe-bottom)); }
  .mob-bottom-nav a { min-height: 44px; padding: 3px 6px; }
  .mob-cta-sticky { display: none !important; }
  .sec-head { margin-bottom: 32px; }
  .modal-box { flex-direction: row; }
  .modal-top { flex-direction: column; padding: 8px; width: auto; min-width: 48px; border-bottom: none; border-right: 1px solid var(--c-border); }
  .modal-top h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.7rem; }
  .modal-frame { aspect-ratio: auto; }
}

/* Full-screen shorts modal on mobile */
@media (max-width: 767px) {
  .modal-box.modal-short {
    max-width: 100%; width: 100%; height: 100%; border-radius: 0;
  }
  .modal-box.modal-short .modal-frame {
    aspect-ratio: 9 / 16;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
  }
}

/* ═══════════════════════════════════════════
   TOUCH FEEDBACK
═══════════════════════════════════════════ */
@media (hover: none) {
  .btn:active { transform: scale(0.95) !important; transition-duration: 0.1s !important; }
  .trust-card:active, .work-card:active, .svc-card:active,
  .conn-card:active, .about-card:active, .edu-card:active,
  .case-card:active, .svc-process-card:active {
    transform: scale(0.98) !important; transition-duration: 0.1s !important;
  }
  .vid-card:active {
    transform: scale(0.98) !important;
    transition-duration: 0.1s !important;
  }
  .trust-card, .work-card, .svc-card, .about-card, .edu-card, .conn-card,
  .result-card, .vid-card, .case-card, .svc-process-card { transform-style: flat; }
  .play-btn { animation: none; }
}

/* ═══════════════════════════════════════════
   PERFORMANCE HINTS (mobile GPU)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-bg-img, .hero-bg-gradient, .hero-bg-grid { will-change: auto; }
  .gs-reveal, .gs-reveal-left, .gs-reveal-right, .gs-reveal-scale { will-change: auto; }
  .hero-orb { animation-duration: 20s; }
}

/* ═══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .nav, .mob-bottom-nav, .scroll-progress, .btt, .modal-bg,
  .cursor-dot, .cursor-ring, #preloader, .nav-overlay, .page-transition,
  .ask-ai-fab {
    display: none !important;
  }
  body { background: #fff; color: #000; padding-bottom: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  body::after { display: none; }
}

/* ═══════════════════════════════════════════
   ASK AI FLOATING BUTTON (Vertex AI Search)
═══════════════════════════════════════════ */
@keyframes ask-ai-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.45), 0 0 0 0 rgba(var(--primary-rgb), 0.35); }
  50%       { box-shadow: 0 4px 28px rgba(var(--primary-rgb), 0.65), 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

.ask-ai-fab {
  position: fixed;
  bottom: var(--ask-ai-bottom);
  right: var(--floating-edge);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 52px;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(var(--primary-rgb), 0.85);
  border: none;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  animation: ask-ai-pulse 2.8s ease-in-out infinite;
  transition: background 0.2s var(--ease), transform 0.25s var(--ease-spring), opacity 0.2s ease, bottom 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ask-ai-fab.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  pointer-events: none;
}
.ask-ai-fab:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 6px 36px rgba(var(--primary-rgb), 0.7);
}
.ask-ai-fab:active {
  transform: translateY(0) scale(0.95);
}

.ask-ai-fab__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ask-ai-close {
  position: fixed;
  top: calc(var(--safe-top) + 10px);
  right: calc(var(--safe-right) + 12px);
  z-index: 10020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(8,8,10,0.9);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s var(--ease-out), background 0.2s var(--ease);
}
body.widget-open .ask-ai-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ask-ai-close:hover {
  background: rgba(18,18,22,0.96);
  transform: translateY(0) scale(1.02);
}
.ask-ai-close:active {
  transform: scale(0.97);
}
.ask-ai-close__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile: icon only, above the bottom nav */
@media (max-width: 859px) {
  .ask-ai-fab {
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    animation: none;
    right: calc(var(--safe-right) + 12px);
  }
  /* When sticky CTA is active on mobile, lift FAB above it */
  .ask-ai-fab.above-sticky {
    bottom: calc(var(--bottom-nav-h) + 78px);
    transition: bottom 0.3s var(--ease);
  }
  .ask-ai-fab__label {
    display: none;
  }
  .ask-ai-fab__icon {
    width: 19px;
    height: 19px;
  }
  .ask-ai-close {
    top: calc(var(--safe-top) + 8px);
    right: calc(var(--safe-right) + 12px);
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.8125rem;
  }
  .ask-ai-close__label {
    letter-spacing: 0.01em;
  }
}

/* ═══════════════════════════════════════════
   FIX: White text in Google Search Widget
   Targets every possible selector path
═══════════════════════════════════════════ */
gen-search-widget,
gen-search-widget * {
  --search-input-color: #1a1a1a;
}
gen-search-widget input,
gen-search-widget input[type="text"],
gen-search-widget input[type="search"],
gen-search-widget textarea {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  caret-color: #1a1a1a !important;
}
gen-search-widget input::placeholder {
  color: #999 !important;
  -webkit-text-fill-color: #999 !important;
}
/* Also target the Google-injected overlay that appears outside the widget */
body > div input,
body > div input[type="text"],
body > div input[type="search"] {
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  caret-color: #1a1a1a !important;
}
body > div input::placeholder {
  color: #999 !important;
  -webkit-text-fill-color: #999 !important;
}

body.is-page-hidden .hero-command-card,
body.is-page-hidden .svc-grid > .svc-card {
  animation-play-state: paused;
}

html.save-data .particles,
html.save-data .hero-orb,
html.save-data #heroGfx {
  display: none !important;
}
html.save-data .hero-command-card,
html.save-data .svc-grid > .svc-card,
html.save-data .play-btn,
html.save-data .ask-ai-fab,
html.save-data .ai-card::before,
html.save-data .ai-node-ic,
html.save-data .ai-pulse,
html.save-data .ai-step-ic,
html.save-data .ai-inv-status .dot {
  animation: none !important;
}

/* ═══════════════════════════════════════════
   AI & AUTOMATION ENGINE  (added 2026-05-29)
   Mobile-first. Heavy border animation gated to >=1024px.
═══════════════════════════════════════════ */
.ai-sec {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--primary-rgb), 0.10), transparent 60%),
    var(--bg-base);
}
.ai-glow-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 12% 18%, rgba(var(--primary-rgb), 0.14), transparent 70%),
    radial-gradient(38% 46% at 88% 82%, rgba(var(--cta-rgb), 0.10), transparent 70%);
}
.ai-sec > * { position: relative; z-index: 1; }

/* Capability badges */
.ai-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 760px; margin: 0 auto 40px;
}
.ai-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-h);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white); font-size: 0.72rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ai-badges span i { color: var(--c-accent); font-size: 0.8rem; }

/* Card grid */
.ai-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 1140px; margin: 0 auto;
}

/* Card shell + gradient border (static on mobile, rotates on desktop) */
.ai-card {
  position: relative; border-radius: 18px; overflow: hidden;
  isolation: isolate; background: #0e0e18;
}
.ai-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,
    rgba(var(--primary-rgb), 0.55),
    rgba(var(--cta-rgb), 0.32) 60%,
    rgba(var(--primary-rgb), 0.14));
}
.ai-card::after {
  content: ''; position: absolute; inset: 1.2px; z-index: 1;
  border-radius: 16.8px;
  background: linear-gradient(180deg, #15151f, #0f0f18);
}
.ai-card-feature::after {
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.10), #10101a);
}
.ai-card-body { position: relative; z-index: 2; padding: 26px 22px; }

.ai-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--cta-rgb), 0.10));
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--c-accent); font-size: 1.15rem;
}
.ai-card h3 {
  font-family: var(--font-h); font-size: 1.12rem; font-weight: 800;
  line-height: 1.2; margin-bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.ai-tag-new {
  font-family: var(--font-b); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cta);
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: rgba(var(--cta-rgb), 0.12); border: 1px solid rgba(var(--cta-rgb), 0.30);
}
.ai-card p {
  color: var(--c-gray); font-size: 0.84rem; line-height: 1.65;
  font-weight: 300; margin-bottom: 18px;
}
.ai-stack {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding-top: 16px; border-top: 1px solid var(--c-border);
}
.ai-stack span {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.64rem; color: var(--c-white);
  padding: 5px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--c-border);
}

@media (hover: hover) and (pointer: fine) {
  .ai-card { transition: transform 0.45s var(--ease); }
  .ai-card:hover { transform: translateY(-5px); }
  .ai-card .ai-ic { transition: transform 0.45s var(--ease-spring); }
  .ai-card:hover .ai-ic { transform: scale(1.08) rotate(-3deg); }
}

/* Pipeline */
.ai-pipeline {
  max-width: 1140px; margin: 54px auto 0; padding: 30px 22px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ai-pipe-head { text-align: center; margin-bottom: 26px; }
.ai-pipe-eyebrow {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 8px;
}
.ai-pipe-head h3 {
  font-family: var(--font-h); font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
}

.ai-flow { display: flex; flex-direction: column; align-items: stretch; }
.ai-node {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px; padding: 14px 10px;
}
.ai-node-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.25rem;
  color: var(--c-white);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--cta-rgb), 0.12));
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  animation: aiNodePulse 3.2s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.42s);
}
.ai-node-end .ai-node-ic {
  color: var(--success);
  background: linear-gradient(135deg, rgba(var(--success-rgb), 0.24), rgba(var(--primary-rgb), 0.10));
  border-color: rgba(var(--success-rgb), 0.40);
}
.ai-node strong { font-size: 0.92rem; font-weight: 700; color: var(--c-white); }
.ai-node span { font-size: 0.7rem; color: var(--c-gray); line-height: 1.4; max-width: 20ch; }

.ai-link {
  position: relative; align-self: center; overflow: hidden;
  width: 2px; height: 30px; margin: 2px 0; border-radius: 2px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.5), rgba(var(--primary-rgb), 0.12));
}
.ai-pulse {
  position: absolute; left: 50%; top: -6px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--cta);
  box-shadow: 0 0 10px 2px rgba(var(--cta-rgb), 0.8);
  animation-name: aiPulseDown; animation-duration: 2.4s;
  animation-timing-function: linear; animation-iteration-count: infinite;
}
.ai-flow > .ai-link:nth-child(2) .ai-pulse { animation-delay: 0s; }
.ai-flow > .ai-link:nth-child(4) .ai-pulse { animation-delay: 0.6s; }
.ai-flow > .ai-link:nth-child(6) .ai-pulse { animation-delay: 1.2s; }
.ai-flow > .ai-link:nth-child(8) .ai-pulse { animation-delay: 1.8s; }

@keyframes aiNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(var(--primary-rgb), 0); }
}
@keyframes aiPulseDown {
  0% { top: -6px; opacity: 0; } 15% { opacity: 1; }
  85% { opacity: 1; } 100% { top: 100%; opacity: 0; }
}
@keyframes aiPulseRight {
  0% { left: -6px; opacity: 0; } 15% { opacity: 1; }
  85% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}
@keyframes aiSpin { to { transform: rotate(1turn); } }

.ai-closing { margin-top: 44px; }
.ai-cta {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; max-width: 760px; margin: 28px auto 0;
}
.ai-cta .btn { width: 100%; }

/* Tablet+: 2-col cards */
@media (min-width: 600px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Desktop: 4-col cards, rotating border, horizontal pipeline */
@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-card::before {
    inset: -60%;
    background: conic-gradient(from 0deg,
      rgba(var(--primary-rgb), 0.42),
      rgba(var(--cta-rgb), 0.42) 33%,
      rgba(var(--primary-rgb), 0.42) 66%,
      rgba(var(--primary-rgb), 0.42));
    animation: aiSpin 7s linear infinite;
  }
  .ai-card:hover::before { animation-duration: 3.5s; }
  .ai-flow { flex-direction: row; align-items: center; }
  .ai-node { flex: 0 0 auto; width: 150px; padding: 6px 8px; }
  .ai-link {
    flex: 1 1 auto; width: auto; height: 2px; margin: 0 4px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.5), rgba(var(--primary-rgb), 0.18), rgba(var(--cta-rgb), 0.4));
  }
  .ai-pulse {
    left: -6px; top: 50%; margin-left: 0; margin-top: -3px;
    animation-name: aiPulseRight;
  }
  .ai-cta { flex-direction: row; justify-content: center; }
  .ai-cta .btn { width: auto; }
}

/* ── INVENTIONS SHOWCASE (added 2026-05-29c) ── */
.ai-inventions { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.ai-invention {
  position: relative; border-radius: 20px; padding: 1.2px; overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.5), rgba(var(--cta-rgb),0.28) 55%, rgba(var(--primary-rgb),0.12));
}
.ai-inv-grid {
  position: relative; border-radius: 18.8px; padding: 26px 22px;
  background: linear-gradient(180deg, #13131d, #0f0f18);
  display: flex; flex-direction: column; gap: 22px;
}
.ai-inv-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ai-inv-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.ai-inv-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--success); padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(var(--success-rgb),0.10); border: 1px solid rgba(var(--success-rgb),0.28);
}
.ai-inv-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: aiDotPulse 2.6s var(--ease) infinite; }
@keyframes aiDotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--success-rgb),0.5); } 50% { box-shadow: 0 0 0 6px rgba(var(--success-rgb),0); } }
.ai-inv-name { font-family: var(--font-h); font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 900; line-height: 1.05; margin-bottom: 8px; }
.ai-inv-tagline { font-size: 1rem; color: var(--c-white); font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.ai-inv-tagline em { font-family: var(--font-h); font-style: italic; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ai-inv-desc { color: var(--c-gray); font-size: 0.88rem; line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.ai-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ai-spec-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.66rem; font-weight: 500; color: var(--c-white); padding: 6px 11px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.05); border: 1px solid var(--c-border); }
.ai-spec-chips i { color: var(--c-accent); font-size: 0.72rem; }
.ai-inv-engine { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.64rem; color: var(--c-muted); display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.ai-inv-engine i { color: var(--cta); }

.ai-inv-visual {
  position: relative; padding: 20px 18px; border-radius: 14px;
  background: radial-gradient(120% 120% at 100% 0, rgba(var(--primary-rgb),0.10), transparent 60%), rgba(255,255,255,0.02);
  border: 1px solid var(--c-border);
}
.ai-meters-cap, .ai-steps-cap { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 16px; }

/* NeuroScore meters */
.ai-meter { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.ai-meter:last-child { margin-bottom: 0; }
.ai-meter-l { flex: 0 0 46%; font-size: 0.7rem; color: var(--c-gray); line-height: 1.25; }
.ai-meter-bar { position: relative; flex: 1 1 auto; height: 7px; border-radius: 6px; background: rgba(255,255,255,0.07); overflow: hidden; }
.ai-meter-bar i { display: block; height: 100%; width: var(--val); border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--cta)); box-shadow: 0 0 12px rgba(var(--primary-rgb),0.45); }
@media (prefers-reduced-motion: no-preference) {
  .ai-meter-bar i { width: 0; transition: width 1.1s var(--ease); }
  .ai-invention.is-visible .ai-meter-bar i { width: var(--val); }
}

/* Outreach steps */
.ai-steps { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ai-step { display: flex; align-items: center; gap: 14px; position: relative; }
.ai-step-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.20), rgba(var(--cta-rgb),0.10));
  border: 1px solid rgba(var(--primary-rgb),0.30);
  animation: aiNodePulse 3.4s var(--ease) infinite; animation-delay: calc(var(--i) * 0.4s);
}
.ai-step-end .ai-step-ic { color: var(--success); border-color: rgba(var(--success-rgb),0.40); background: linear-gradient(135deg, rgba(var(--success-rgb),0.22), rgba(var(--primary-rgb),0.10)); animation: none; }
.ai-step:not(:last-child) .ai-step-ic::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px; background: linear-gradient(180deg, rgba(var(--primary-rgb),0.5), rgba(var(--primary-rgb),0.08)); }
.ai-step strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--c-white); }
.ai-step span { font-size: 0.74rem; color: var(--c-gray); line-height: 1.4; }

@media (hover: hover) and (pointer: fine) {
  .ai-invention { transition: transform 0.45s var(--ease); }
  .ai-invention:hover { transform: translateY(-4px); }
}

/* Built-with tech badges */
.ai-builtwith { max-width: 920px; margin: 56px auto 0; text-align: center; }
.ai-bw-head h3 { font-family: var(--font-h); font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 800; margin: 8px 0 10px; }
.ai-bw-head p { color: var(--c-gray); font-size: 0.86rem; line-height: 1.7; max-width: 640px; margin: 0 auto 28px; font-weight: 300; }
.ai-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ai-logo {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 16px 10px; border-radius: 14px; border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.025);
  text-decoration: none; cursor: pointer; color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.ai-logo-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px;
}
.ai-logo-img img {
  max-height: 38px; max-width: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.ai-logo em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--c-white); text-align: center; }
.ai-logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ai-logo { will-change: transform; }
  .ai-logo:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb),0.4); background: rgba(var(--primary-rgb),0.07); }
  .ai-logo img { transition: transform 0.35s var(--ease); }
  .ai-logo:hover img { transform: scale(1.07); }
}
/* small platform logos inline in the engine/backend line */
.ai-engine-link {
  display: inline-block; line-height: 0; vertical-align: middle;
  border-radius: 6px; transition: transform 0.3s var(--ease);
}
.ai-engine-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ai-engine-link:hover { transform: translateY(-1px); }
}
.ai-engine-logo {
  height: 18px; width: auto; vertical-align: middle;
  margin-left: 6px; display: inline-block;
  padding: 3px 5px; border-radius: 5px;
  background: #fff; box-sizing: content-box;
}

@media (min-width: 560px) { .ai-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .ai-logos { grid-template-columns: repeat(6, 1fr); }
  .ai-inv-grid { flex-direction: row; align-items: center; gap: 38px; padding: 38px 34px; }
  .ai-invention--rev .ai-inv-grid { flex-direction: row-reverse; }
  .ai-inv-info { flex: 1.05 1 0; min-width: 0; }
  .ai-inv-visual { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .ai-meter-l { flex: 0 0 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-meter-bar i { width: var(--val) !important; }
}

@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;
  }
  .particles, .hero-orb, #heroGfx { display: none !important; }
  .hero-layer { transform: none !important; }
  .vid-card { animation: none !important; opacity: 1 !important; }
  .m-track {
    animation-duration: 52000ms !important;
    animation-iteration-count: infinite !important;
  }
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
