/*
Theme Name: Bolden
Theme URI: https://boldenit.ai
Author: Bolden
Author URI: https://boldenit.ai
Description: Custom WordPress theme for Bolden — AI-powered distribution agency for asset managers. Dark-only, deeply creative, abstract-modern aesthetic.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bolden
Tags: custom-menu, dark-mode, portfolio, full-width-template
*/

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds — deep midnight navy for premium dark feel */
  --bg:        #03040e;
  --surface:   #07091a;
  --surface-2: #0c0f22;
  --surface-3: #13162e;

  /* Brand — official Bolden palette */
  --violet:    #45569D;
  --violet-lt: #8599d4;
  --orange:    #FF9E5C;
  --orange-lt: #FFB87A;
  --teal:      #B9C7CA;
  --teal-lt:   #d4e0e4;
  --rose:      #e879a6;
  --gold:      #f0c96e;
  --pink:      #DDB7E8;
  --pink-lt:   #ebd8f5;
  --lavender:  #DDB7E8;
  --lavender-lt: #ebd8f5;

  /* Text */
  --text:      #eef0ff;
  --text-muted:#94a3b8;
  --text-dim:  #4f5a7a;

  /* Borders */
  --border:    rgba(133,153,212,0.08);
  --border-md: rgba(133,153,212,0.14);
  --border-hi: rgba(133,153,212,0.28);

  /* Glass */
  --glass:     hsl(230 45% 6% / 0.82);
  --glass-hi:  hsl(230 45% 6% / 0.96);

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.45);
  --shadow-md: 0 8px 28px -4px rgba(0,0,0,0.35), 0 4px 12px -6px rgba(69,86,157,0.12);
  --shadow-lg: 0 24px 48px -12px rgba(69,86,157,0.28);
  --shadow-xl: 0 40px 80px -12px rgba(0,0,0,0.65);

  /* Glows */
  --glow-v: 0 12px 36px -6px rgba(69,86,157,0.55);
  --glow-o: 0 12px 36px -6px rgba(255,158,92,0.40);
  --glow-t: 0 0 60px rgba(185,199,202,0.20);

  /* Radius */
  --r-sm: 0.375rem;
  --r:    0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;

  /* Fonts */
  --font-head: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
html.light-theme ::-webkit-scrollbar-thumb { background: #cbd5e1; }
html.light-theme ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════════════════
   CANVAS & OVERLAYS
   ═══════════════════════════════════════════════════════════ */
#wave-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Film grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.022;
}

/* ═══════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.loader-logo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.loader-logo-ring {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, #FF9E5C, #DDB7E8, #8599d4, #45569D) border-box;
  animation: loader-spin 2s linear infinite;
}
.loader-logo-img {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(0) invert(1);
  position: relative; z-index: 1;
  animation: loader-pulse 1.8s ease-in-out infinite;
}
.loader-wordmark {
  font-family: var(--font-head);
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FF9E5C, #DDB7E8, #8599d4, #45569D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loader-fade-in 0.5s ease forwards;
}
.loader-progress-track {
  width: 140px; height: 2px;
  background: var(--surface-3); border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #FF9E5C, #DDB7E8, #8599d4, #45569D);
  border-radius: 2px;
  animation: loader-fill 1.4s var(--ease) forwards;
}
@keyframes loader-fill {
  0% { width: 0; }
  60% { width: 75%; }
  100% { width: 100%; }
}
@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.9; }
}
@keyframes loader-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Light theme loader */
html.light-theme .loader-logo-img { filter: none; }
html.light-theme .loader-logo-ring {
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, #FF9E5C, #DDB7E8, #8599d4, #45569D) border-box;
}

.skip-loader #page-loader,
.page-loading.loaded #page-loader { opacity: 0; visibility: hidden; }
html.page-loading #page-loader { opacity: 1; }
html.skip-loader #page-loader { display: none; }
html.no-transition * { transition: none !important; animation: none !important; }

/* ═══════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════ */
#cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99999;
  width: 7px; height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #818cf8;
  box-shadow: 0 0 10px rgba(129,140,248,0.9), 0 0 24px rgba(129,140,248,0.5);
  transition: transform 0.08s, background 0.3s, box-shadow 0.3s;
}
body.cursor-hover #cursor-dot {
  transform: translate(-50%,-50%) scale(1.5);
  background: #e879f9;
  box-shadow: 0 0 14px rgba(232,121,249,0.9), 0 0 30px rgba(232,121,249,0.5);
}
body.cursor-click #cursor-dot { transform: translate(-50%,-50%) scale(2); }
@media (hover: none) { #cursor-dot, #cursor-canvas { display: none; } }

/* ═══════════════════════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 99999;
  background: var(--violet); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--r);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  width: 100%; max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 6rem 0; }
.section-surface { background: transparent; position: relative; z-index: 1; }
.section-surface-2 { background: transparent; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════ */
.text-gradient {
  background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-v {
  background: linear-gradient(135deg, #45569D, #8599d4, #DDB7E8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-o {
  background: linear-gradient(135deg, #DDB7E8, #FF9E5C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.italic { font-style: italic; }

/* Section label */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.section-label.violet { background: rgba(124,110,245,0.12); color: var(--violet-lt); border: 1px solid rgba(124,110,245,0.2); }
.section-label.orange { background: rgba(245,149,106,0.12); color: var(--orange-lt); border: 1px solid rgba(245,149,106,0.2); }
.section-label.teal   { background: rgba(77,184,196,0.12);  color: var(--teal-lt);   border: 1px solid rgba(77,184,196,0.2); }
.section-label.rose   { background: rgba(232,121,166,0.12); color: var(--rose);      border: 1px solid rgba(232,121,166,0.2); }
.section-label.gold   { background: rgba(240,201,110,0.12); color: var(--gold);      border: 1px solid rgba(240,201,110,0.2); }
.section-label .dot   { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 1.25rem;
}
.section-title.xl { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.section-subtitle {
  font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75;
  max-width: 600px; margin: 0 auto;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #45569D 0%, #6b7fc4 45%, #DDB7E8 100%);
  background-size: 200% 200%;
  animation: btnGradientShift 4s ease infinite;
  color: #fff !important; font-weight: 600; font-size: 0.9375rem;
  border-radius: var(--r-lg);
  border: none;
  transition: opacity 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
@keyframes btnGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.30) 50%, rgba(255,255,255,0.15) 55%, transparent 100%);
  transform: translateX(-100%); pointer-events: none;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 12px 32px -6px rgba(69,86,157,0.55); }
.btn-primary:hover::after { animation: shimmerSweep 0.7s ease-in-out; }
.btn-primary:active { transform: translateY(0) scale(0.97); }
@keyframes shimmerSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-md);
  color: var(--text-muted); font-weight: 600; font-size: 0.9375rem;
  border-radius: 100px;
  background: transparent;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); background: rgba(255,255,255,0.04); transform: translateY(-1px); }

.btn-large { padding: 1rem 2rem; font-size: 1rem; }

.btn-primary svg, .btn-ghost svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom-color 0.4s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 1.5rem; height: 72px;
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 60%, var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.4rem 0.875rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); background: rgba(124,110,245,0.10); }

.nav-cta { margin-left: 0.75rem; font-size: 0.875rem; padding: 0.55rem 1.25rem; }
.hamburger { display: none; color: var(--text); margin-left: auto; }

/* progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #FF9E5C, #DDB7E8, #8599d4, #45569D);
  transition: width 0.1s linear;
}

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 1.5rem 2rem;
  background: var(--glass-hi, rgba(5,6,15,0.96));
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  padding: 0.625rem 0.75rem; border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); background: rgba(255,255,255,0.04); }
.mobile-menu .btn-primary { margin-top: 0.5rem; justify-content: center; border-radius: var(--r); }
.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════════════════════════
   HERO — Homepage
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 6rem;
  position: relative; z-index: 2;
  overflow: clip;
}

/* Pine Labs-style mega gradient bloom — navy/lavender crown from top-center */
.hero::before {
  content: ''; position: absolute;
  top: -25%; left: 50%; transform: translateX(-50%);
  width: 90%; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(69,86,157,0.55) 0%, rgba(221,183,232,0.22) 38%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -10%; right: -8%; width: 48%; height: 72%;
  background: radial-gradient(ellipse, rgba(255,158,92,0.12) 0%, rgba(221,183,232,0.06) 50%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 2;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-lt);
  background: rgba(124,110,245,0.1); border: 1px solid rgba(124,110,245,0.2);
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s ease-in-out infinite; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1.5rem; color: var(--text);
}
.hero-title .hero-sub {
  display: block;
  background: linear-gradient(135deg, #FF9E5C, #DDB7E8, #8599d4, #45569D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: var(--text-muted); line-height: 1.75;
  max-width: 520px; margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 0.875rem;
  margin-bottom: 3.5rem;
}

.hero-metrics {
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-metric-val {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.015em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--text), var(--violet-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-metric-label {
  font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.15rem; white-space: nowrap;
}

.why-card {
  background: rgba(7,9,26,0.52);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(133,153,212,0.12);
  border-radius: var(--r-lg); padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(124,110,245,0.03) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.why-card:hover { border-color: var(--border-hi); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-card:hover::after { opacity: 1; }

.why-card-icon {
  width: 42px; height: 42px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
}
.why-card h4 {
  font-family: var(--font-head); font-size: 0.9375rem;
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   PIPELINE — Horizontal accordion cards
   ═══════════════════════════════════════════════════════════ */

/* Track: flex row, all cards stretch to same height */
.pst-track {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  min-height: 400px;
  margin-top: 3rem;
}

/* Each card */
.pst-card {
  flex: 0 0 68px;          /* collapsed: just the aside strip */
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.055);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-basis 0.6s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
}

.pst-card:hover:not(.is-active) {
  border-color: rgba(255,255,255,0.10);
  background: var(--surface-2);
}

.pst-card.is-active {
  flex: 1 1 0;             /* active: takes all remaining space */
  border-color: var(--pst-color, rgba(255,255,255,0.2));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px var(--pst-glow, transparent),
    0 20px 60px rgba(0,0,0,0.5),
    0 48px 100px rgba(0,0,0,0.3);
  cursor: default;
}

/* Top-edge lit line on active */
.pst-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--pst-color, rgba(255,255,255,0.15)) 25%,
    var(--pst-color, rgba(255,255,255,0.15)) 75%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.pst-card.is-active::before { opacity: 0.7; }

/* Ambient corner glow on active */
.pst-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%,
    var(--pst-glow, transparent) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.pst-card.is-active::after { opacity: 1; }

/* ── Aside: always-visible vertical strip ── */
.pst-card-aside {
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  z-index: 2;
}

.pst-card-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--pst-color, var(--text-dim));
  transition: opacity 0.3s;
}
.pst-card.is-active .pst-card-num { opacity: 0.7; }

.pst-card-name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s, opacity 0.4s;
  white-space: nowrap;
}
.pst-card:hover:not(.is-active) .pst-card-name { color: var(--text-muted); }
.pst-card.is-active .pst-card-name { opacity: 0; }

/* ── Expanded content (shown when active) ── */
.pst-card-content {
  position: absolute;
  top: 0; left: 68px; right: 0; bottom: 0;
  padding: 2.25rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.35s 0.15s var(--ease), transform 0.35s 0.15s var(--ease);
  pointer-events: none;
}
.pst-card.is-active .pst-card-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Icon */
.pst-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--pst-color, white);
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 0 20px var(--pst-glow, transparent);
}

/* Title */
.pst-card-title {
  font-family: var(--font-head);
  font-size: 2.125rem; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1;
  color: var(--text);
  position: relative; z-index: 1;
}

/* Description */
.pst-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 46ch;
  position: relative; z-index: 1;
}

/* Bullet list */
.pst-card-bullets {
  display: flex; flex-direction: column; gap: 0.45rem;
  position: relative; z-index: 1;
}
.pst-card-bullets li {
  font-size: 0.875rem; color: var(--text-muted);
  padding-left: 1.25rem; position: relative;
}
.pst-card-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.52em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--pst-color, var(--violet-lt));
}

/* Progress bar — sits at bottom of content area */
.pst-card-progress {
  margin-top: auto;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative; z-index: 1;
}
.pst-card-pb {
  height: 100%; width: 0%;
  background: var(--pst-color, white);
  border-radius: 2px;
}
.pst-card.is-active .pst-card-pb {
  animation: pst-fill 4.4s linear forwards;
}
@keyframes pst-fill { from { width: 0% } to { width: 100% } }

/* ── Mobile: stack vertically ── */
@media (max-width: 767px) {
  .pst-track {
    flex-direction: column;
    min-height: unset;
    gap: 0.5rem;
  }
  .pst-card { flex: 0 0 52px; }
  .pst-card.is-active { flex: 0 0 auto; }
  .pst-card-aside {
    width: 100%; height: 52px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 1.25rem;
    gap: 0.75rem;
  }
  .pst-card-name {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.8125rem;
  }
  .pst-card.is-active .pst-card-name { opacity: 1; color: var(--text-muted); }
  .pst-card.is-active .pst-card-num  { opacity: 1; }
  .pst-card-content {
    position: relative;
    left: 0; top: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    opacity: 0; transform: translateY(8px);
    max-height: 0; overflow: hidden;
    transition: opacity 0.3s, transform 0.3s, max-height 0.4s var(--ease);
  }
  .pst-card.is-active .pst-card-content {
    opacity: 1; transform: none;
    max-height: 600px; pointer-events: auto;
  }
  .pst-card-title { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   WHY BOLDEN — Spotlight layout
   ═══════════════════════════════════════════════════════════ */
.why-spotlight {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Left: numbered list ── */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.why-item {
  display: grid;
  grid-template-columns: 2rem 1fr 1.25rem;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.875rem;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.22s, border-color 0.22s;
}
.why-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px; height: 55%;
  border-radius: 2px;
  background: var(--wi-color, var(--violet-lt));
  transition: transform 0.25s var(--ease);
}
.why-item:hover { background: rgba(255,255,255,0.03); }
.why-item.is-active {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.why-item.is-active::before { transform: translateY(-50%) scaleY(1); }

.wi-icon {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  opacity: 0.5;
  transition: opacity 0.22s;
}
.why-item:hover .wi-icon,
.why-item.is-active .wi-icon { opacity: 1; }

.wi-body {
  grid-column: 2; grid-row: 1;
  display: flex; align-items: center; gap: 0.5rem; min-width: 0;
}
.wi-num {
  font-family: var(--font-mono); font-size: 0.625rem;
  color: var(--text-dim); flex-shrink: 0; letter-spacing: 0.06em;
}
.wi-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.22s;
}
.why-item:hover .wi-title,
.why-item.is-active .wi-title { color: var(--text); }

.wi-chevron {
  grid-column: 3; grid-row: 1;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), color 0.22s;
  display: flex; align-items: center;
}
.why-item.is-active .wi-chevron {
  transform: rotate(90deg);
  color: var(--wi-color, var(--violet-lt));
}

.wi-mobile-desc {
  display: none;
  grid-column: 2 / span 2; grid-row: 2;
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65;
  padding-top: 0.5rem;
}

/* ── Right: sticky detail panel ── */
.why-detail {
  position: sticky;
  top: 5rem;
}

.why-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  animation: why-panel-in 0.32s var(--ease);
  box-shadow: 0 8px 40px rgba(0,0,0,0.32), 0 0 40px var(--wc, rgba(69,86,157,0.38));
}
.why-panel.is-active { display: flex; }

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

/* Watermark number */
.why-panel::before {
  content: attr(data-num);
  position: absolute;
  bottom: -1rem; right: 1.25rem;
  font-size: 9rem; font-weight: 800;
  font-family: var(--font-head);
  color: rgba(255,255,255,0.028);
  line-height: 1; letter-spacing: -0.05em;
  pointer-events: none; user-select: none;
}

/* Thin top accent bar */
.wp-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0.85;
}

.wp-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wp-icon svg { width: 22px; height: 22px; }

.wp-num {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.wp-title {
  font-family: var(--font-head);
  font-size: 1.375rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.25;
  color: var(--text);
}

.wp-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ── Mobile: accordion ── */
@media (max-width: 767px) {
  .why-spotlight { grid-template-columns: 1fr; gap: 0; }
  .why-detail { display: none; }
  .wi-mobile-desc { display: block; height: 0; overflow: hidden; transition: height 0.28s var(--ease); padding-top: 0; }
  .why-item.is-active .wi-mobile-desc { display: block; height: auto; padding-top: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--border);
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  background: var(--surface-2);
  padding: 2.5rem 2rem; text-align: center;
  position: relative;
  transition: background 0.3s;
}
.stat-item:hover { background: var(--surface-3); }
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.015em;
  background: linear-gradient(135deg, var(--text) 40%, var(--violet-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem; color: var(--text-muted); font-weight: 500;
}

.blog-read-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--violet-lt);
  transition: gap 0.25s var(--ease);
}
.blog-read-more:hover { gap: 0.75rem; }

.blog-grid {
  display: grid; gap: 1.125rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border-md); transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.blog-card { display: flex; flex-direction: column; }
.blog-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  font-size: 0.75rem; color: var(--text-dim);
}
.blog-card-meta .cat {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--violet-lt); background: rgba(124,110,245,0.10);
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.blog-card-body h3 {
  font-family: var(--font-head); font-size: 1.0625rem;
  font-weight: 700; letter-spacing: -0.008em; line-height: 1.3;
  color: var(--text);
  transition: color 0.25s;
}
.blog-card:hover .blog-card-body h3 { color: var(--violet-lt); }
.blog-card-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-card-body .blog-read-more { margin-top: auto; padding-top: 0.5rem; }

/* empty blog state */
.blog-empty {
  text-align: center; padding: 6rem 2rem;
  color: var(--text-muted);
}
.blog-empty h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid; gap: 4rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.6fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h3 {
  font-family: var(--font-head); font-size: 1.875rem;
  font-weight: 800; letter-spacing: -0.01em;
}
.contact-info > p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; }

.contact-detail {
  display: flex; align-items: center; gap: 0.875rem;
  font-size: 0.9375rem; color: var(--text-muted);
}
.contact-detail svg { color: var(--violet-lt); flex-shrink: 0; }

.contact-form-card {
  background: rgba(7,9,26,0.62);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(133,153,212,0.14);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--border-md); border-radius: var(--r);
  padding: 0.75rem 1rem;
  color: var(--text); font-size: 0.9375rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,110,245,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  justify-content: center; border-radius: var(--r);
  padding: 0.9rem 2rem;
}

.contact-success {
  text-align: center; padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.contact-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(77,184,196,0.12); border: 1px solid rgba(77,184,196,0.25);
  display: flex; align-items: center; justify-content: center; color: var(--teal);
}
.contact-success h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.contact-success p { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   CTA CARD
   ═══════════════════════════════════════════════════════════ */
.cta-card {
  background: rgba(7,9,26,0.52);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(133,153,212,0.18);
  z-index: 1;
  border-radius: var(--r-2xl);
  padding: 5rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(69,86,157,0.18), transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(221,183,232,0.08), transparent 60%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem;
  color: var(--text);
}
.cta-card p {
  font-size: 1.0625rem; color: var(--text-muted);
  line-height: 1.75; max-width: 560px; margin: 0 auto 2.5rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO — Inner pages
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative; z-index: 2; overflow: clip;
}
.page-hero::before {
  content: ''; position: absolute;
  top: 0; left: -10%; width: 70%; height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,110,245,0.07), transparent 70%);
  pointer-events: none;
}
.page-hero-content { max-width: 680px; }
.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1.25rem;
}
.page-hero-content p {
  font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — Values grid
   ═══════════════════════════════════════════════════════════ */
.about-grid { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value-card {
  background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.value-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,0.28); }

/* Sequential value card spotlight */
.value-card { animation: value-zoom 8s ease-in-out infinite; }
.values-grid .value-card:nth-child(1) { animation-delay: 0s; }
.values-grid .value-card:nth-child(2) { animation-delay: 2s; }
.values-grid .value-card:nth-child(3) { animation-delay: 4s; }
.values-grid .value-card:nth-child(4) { animation-delay: 6s; }
@keyframes value-zoom {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 24px rgba(0,0,0,0.22); }
  5%        { transform: scale(1.04); box-shadow: 0 12px 40px rgba(0,0,0,0.32); }
  20%       { transform: scale(1.04); box-shadow: 0 12px 40px rgba(0,0,0,0.32); }
  25%       { transform: scale(1); box-shadow: 0 4px 24px rgba(0,0,0,0.22); }
}
.value-card .icon-wrap {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.4);
  color: #0d0f2c;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.value-card h3 { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.value-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
}
.footer-inner {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-brand h3 {
  font-family: var(--font-head); font-size: 1.375rem;
  font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.875rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--violet-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; max-width: 280px; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.8125rem; color: var(--text-dim); }
.footer-linkedin-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.875rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: rgba(10,102,194,0.10);
  border: 1px solid rgba(10,102,194,0.28);
  color: #0a66c2;
  font-size: 0.75rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-linkedin-btn:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-1px);
}
.footer-logo-img { filter: brightness(0) invert(1); transition: filter 0.3s; }
html.light-theme .footer-logo-img { filter: none; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover { color: var(--text); border-color: var(--border-md); background: var(--surface-3); }

.footer-col h4 {
  font-family: var(--font-head); font-size: 0.875rem;
  font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.125rem; color: var(--text);
}
.footer-col a {
  display: block; font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 0.625rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   REVEAL ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none !important; }
.reveal-up    { transform: translateY(32px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.94); }

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(124,110,245,0.2); }
  50%      { box-shadow: 0 0 40px rgba(124,110,245,0.45); }
}

/* page enter */
.page-enter { animation: fade-in 0.5s var(--ease) both; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero { padding-top: 100px; }
}
@media (max-width: 767px) {
  .section-pad { padding: 4rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 3rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-metrics { gap: 1.5rem; }
  .contact-form-card { padding: 1.75rem; }
  .pipeline-wrap { flex-direction: column; }
  .pipeline-orbit-container { max-width: 320px; margin: 0 auto; }
  .hero-inner-v2 { gap: 2rem; }
  .vision-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-tabs { flex-wrap: wrap; gap: 0.5rem; }
  .service-tab { font-size: 0.75rem; padding: 0.5rem 0.875rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .boldai-screenshot-wrap { max-width: 100%; }
}
@media (max-width: 479px) {
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; }
  .wire-scene { width: clamp(200px, 80vw, 300px) !important; height: clamp(200px, 80vw, 300px) !important; }
  .section-title.xl { font-size: clamp(1.5rem, 6vw, 2rem); }
  .pipeline-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   V4 ENHANCEMENTS — Hero v2, Orbital, Vision, Marquee,
   Service Tabs, Partner Grid v2, AI Character, Engine Flow
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS variable additions ─── */
:root {
  --lavender: #c084fc;
  --lavender-lt: #d8b4fe;
}

/* ─── Hero v2 ─── */
.hero-v2 { padding: 100px 0 3rem; }

.hero-inner-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative; z-index: 2;
}
@media (min-width: 1200px) {
  .hero-inner-v2 { grid-template-columns: 1fr auto; gap: 4rem; }
}

.hero-text-col { position: relative; padding-top: 2rem; min-width: 0; }

.hero-metric-divider {
  width: 1px; height: 32px;
  background: var(--border-md);
  flex-shrink: 0;
}

/* ─── Floating hero pills ─── */
.hero-float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero-float-pill .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hero-float-pill-1 { top: 6%; right: -4%; animation: float-pill-a 5s ease-in-out infinite; }
.hero-float-pill-2 { bottom: 22%; left: -4%; animation: float-pill-b 6.5s ease-in-out infinite 0.7s; }
.hero-float-pill-3 { bottom: 6%; right: 5%; animation: float-pill-a 4.2s ease-in-out infinite 1.4s; }

@keyframes float-pill-a {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-pill-b {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ─── Hero scroll cue ─── */
.hero-scroll-cue {
  display: none;
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  animation: fade-in 1s var(--ease) 1.5s both;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border-md), transparent);
  animation: scroll-line-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Marquee text strip ─── */
.marquee-text-strip {
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  position: relative; z-index: 1;
}
.marquee-text-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-text 36s linear infinite;
}
.marquee-text-track span {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 1.5rem;
  white-space: nowrap;
}
.marquee-text-track span.highlight { color: var(--violet-lt); }
@keyframes marquee-text {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Vision section ─── */
.vision-section { position: relative; overflow: hidden; }
.vision-section::after {
  content: 'BOLDAI';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124,110,245,0.11);
  text-shadow: 0 0 120px rgba(124,110,245,0.08);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
}
.vision-inner { position: relative; z-index: 1; }

.vision-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .vision-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.vision-text .section-subtitle {
  text-align: left;
  margin: 0;
}
.vision-text strong { color: var(--violet-lt); font-weight: 700; }

.vision-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.vision-stat-val {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, var(--orange-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.vision-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.45;
}

.vision-quote {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-muted);
  border-left: 2px solid var(--violet);
  padding-left: 1.25rem;
  margin-top: 2rem;
  max-width: 420px;
  line-height: 1.6;
}

/* ─── AI Character SVG ─── */
.vision-char-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-char-wrap {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
}

/* SVG element animations */
.ai-char-svg { width: 100%; height: auto; display: block; }

.char-breathe {
  animation: char-breathe-anim 4s ease-in-out infinite;
}
@keyframes char-breathe-anim {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.char-spin-slow {
  transform-origin: 220px 200px;
  animation: char-spin-cw 22s linear infinite;
}
.char-spin-rev {
  transform-origin: 220px 200px;
  animation: char-spin-ccw 16s linear infinite;
}
@keyframes char-spin-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes char-spin-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

.char-eye-pulse { animation: char-eye-anim 3s ease-in-out infinite; }
@keyframes char-eye-anim {
  0%, 85%, 100% { r: 11; opacity: 1; }
  90% { r: 8; opacity: 0.4; }
}

.char-core-pulse { animation: char-core-anim 2.5s ease-in-out infinite; }
@keyframes char-core-anim {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

.char-node-pulse { animation: char-node-anim 2s ease-in-out infinite; }
@keyframes char-node-anim {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.char-arm-pulse { animation: char-arm-anim 3s ease-in-out infinite; }
@keyframes char-arm-anim {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.char-particle-1 { animation: float-pill-a 3.5s ease-in-out infinite; }
.char-particle-2 { animation: float-pill-b 4.8s ease-in-out infinite; }
.char-particle-3 { animation: float-pill-a 4.1s ease-in-out infinite 1s; }

.char-wave-arm {
  transform-origin: 170px 268px;
  animation: char-wave-anim 1.1s ease-in-out infinite;
}
@keyframes char-wave-anim {
  0%, 100% { transform: rotate(0deg); }
  25%  { transform: rotate(-12deg); }
  75%  { transform: rotate(12deg); }
}
#boldai-char.is-wave .char-left-arm-group { display: none; }

/* Character badge labels */
.char-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.875rem;
  background: var(--surface-3);
  border: 1px solid var(--border-md);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  animation: float-pill-a 5s ease-in-out infinite;
}
.char-badge svg { color: var(--violet-lt); }
.char-badge-tl { top: 8%; left: 0%; animation-delay: 0s; }
.char-badge-br { bottom: 2%; right: 0%; animation-delay: 1s; }
.char-badge-tr { top: 8%; right: 0%; animation-delay: 0.5s; }
.char-badge-bl { bottom: 2%; left: 0%; animation-delay: 1.5s; }

/* ─── Emotion switcher ─── */
.emotion-switcher {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.emotion-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.emotion-btn:hover { border-color: var(--border-md); background: var(--surface-3); transform: scale(1.1); }
.emotion-btn.active { border-color: var(--violet-lt); background: rgba(133,153,212,0.12); }
.emotion-state { transition: opacity 0.4s var(--ease); }

/* ─── Engine Flow (horizontal pipeline) ─── */
.engine-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.engine-flow-step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.engine-flow-step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--step-accent, var(--violet)), transparent);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.engine-flow-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-md);
}
.engine-flow-step:hover::before { opacity: 1; }
.engine-flow-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,110,245,0.1);
  color: var(--step-accent, var(--violet));
  border: 1px solid rgba(124,110,245,0.2);
  margin-bottom: 1.25rem;
}
.engine-flow-num {
  font-family: var(--font-mono);
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.engine-flow-step h3 {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.008em;
  margin-bottom: 0.625rem;
}
.engine-flow-step p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; }

/* Sequential step spotlight — each box highlights one by one */
.engine-flow-step {
  animation: step-spotlight 8s ease-in-out infinite;
}
.engine-flow > .engine-flow-step:nth-child(1) { animation-delay: 0s; }
.engine-flow > .engine-flow-step:nth-child(3) { animation-delay: 2s; }
.engine-flow > .engine-flow-step:nth-child(5) { animation-delay: 4s; }
.engine-flow > .engine-flow-step:nth-child(7) { animation-delay: 6s; }

.engine-flow-step::before {
  animation: step-bar-spotlight 8s ease-in-out infinite;
}
.engine-flow > .engine-flow-step:nth-child(1)::before { animation-delay: 0s; }
.engine-flow > .engine-flow-step:nth-child(3)::before { animation-delay: 2s; }
.engine-flow > .engine-flow-step:nth-child(5)::before { animation-delay: 4s; }
.engine-flow > .engine-flow-step:nth-child(7)::before { animation-delay: 6s; }

@keyframes step-spotlight {
  0%, 100%  { border-color: var(--border); box-shadow: none; transform: translateY(0); background: var(--surface-2); }
  5%        { border-color: var(--step-hl-border); box-shadow: 0 0 0 1px var(--step-hl-ring), 0 12px 36px var(--step-hl-glow); transform: translateY(-6px); background: var(--step-hl-bg); }
  20%       { border-color: var(--step-hl-border); box-shadow: 0 0 0 1px var(--step-hl-ring), 0 12px 36px var(--step-hl-glow); transform: translateY(-6px); background: var(--step-hl-bg); }
  25%       { border-color: var(--border); box-shadow: none; transform: translateY(0); background: var(--surface-2); }
}
@keyframes step-bar-spotlight {
  0%, 25%, 100% { opacity: 0.5; }
  5%, 20%       { opacity: 1; }
}

.engine-flow-arrow {
  display: flex;
  align-items: center;
  padding: 2.5rem 0.5rem 0;
  flex-shrink: 0;
  opacity: 0.7;
}
.arrow-dash {
  stroke-dashoffset: 0;
  animation: arrow-flow 1.4s linear infinite;
}
@keyframes arrow-flow {
  from { stroke-dashoffset: 20; }
  to   { stroke-dashoffset: 0; }
}
.arrow-head {
  animation: arrow-head-pulse 1.4s ease-in-out infinite;
}
@keyframes arrow-head-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-2px); }
  50%       { opacity: 1;   transform: translateX(2px); }
}

.engine-tagline {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .engine-flow { flex-direction: column; align-items: stretch; }
  .engine-flow-step { max-width: none; }
  .engine-flow-arrow { display: none; }
}

/* ─── Pipeline Graph (circular node style) ─── */
.pipeline-graph {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  flex-wrap: nowrap;
}
.pipeline-node {
  flex: 1;
  max-width: 210px;
  text-align: center;
  position: relative;
  animation: pipe-spotlight 8s ease-in-out infinite;
}
.pipeline-node:nth-child(1) { animation-delay: 0s; }
.pipeline-node:nth-child(3) { animation-delay: 2s; }
.pipeline-node:nth-child(5) { animation-delay: 4s; }
.pipeline-node:nth-child(7) { animation-delay: 6s; }
.pipeline-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.625rem; font-weight: 800;
  color: white;
  margin: 0 auto 1.25rem;
  background: var(--pipe-bg, rgba(124,110,245,0.15));
  border: 2px solid var(--pipe-border, rgba(124,110,245,0.4));
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative;
}
.pipeline-step-name {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.pipeline-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 160px;
  margin: 0 auto;
}
.pipeline-connector {
  display: flex;
  align-items: center;
  padding-top: 1.65rem;
  flex-shrink: 0;
  min-width: 48px;
}
@keyframes pipe-spotlight {
  0%, 80%, 100% {
    opacity: 0.5;
    filter: none;
    transform: none;
  }
  5%, 22% {
    opacity: 1;
    transform: translateY(-6px);
    filter: drop-shadow(0 0 18px var(--pipe-glow, rgba(124,110,245,0.3)));
  }
}
@media (max-width: 767px) {
  .pipeline-graph { flex-direction: column; align-items: center; gap: 0; }
  .pipeline-connector { padding-top: 0; transform: rotate(90deg); min-height: 48px; }
  .pipeline-node { max-width: 280px; }
}

/* ─── Pipeline Tree Timeline ─── */

/* Dot-grid background on section */
.pf-diagram-section { background-image: none; }

/* Tree container */
.pf-tree {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

/* ── Trunk ── */
.pf-trunk {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--violet) 8%,
    var(--orange) 35%,
    #c7abf2 62%,
    var(--teal) 88%,
    transparent 100%
  );
  opacity: 0.35;
  clip-path: inset(0 0 100% 0); /* JS updates this */
}

/* ── Branch row ── */
.pf-branch {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 0;
  /* Constrain each branch to its own half — trunk sits at 50% */
}
/* Left branch: content in left half, right half stays empty */
.pf-branch--left  { padding-right: 50%; }
/* Right branch: content in right half, left half stays empty */
.pf-branch--right { padding-left: 50%; }

/* ── Arm (horizontal connector) ── */
.pf-branch-arm {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
}
.pf-branch--right .pf-branch-arm { flex-direction: row-reverse; }

.pf-arm-line {
  flex: 1;
  height: 2px;
  position: relative;
}
/* Left branch: node is on RIGHT — bright at right, fade left */
.pf-branch--left .pf-arm-line {
  background: linear-gradient(270deg, var(--s, #7c6ef5), rgba(var(--sr,124,110,245),0.15));
}
/* Right branch: node is on LEFT — bright at left, fade right */
.pf-branch--right .pf-arm-line {
  background: linear-gradient(90deg, var(--s, #7c6ef5), rgba(var(--sr,124,110,245),0.15));
}
/* Arm fill glow */
.pf-arm-line::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 2px;
  box-shadow: 0 0 6px 1px var(--s, #7c6ef5);
  opacity: 0.4;
}

.pf-arm-node {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--s, #7c6ef5);
  box-shadow: 0 0 0 3px rgba(var(--sr,124,110,245),0.2), 0 0 14px 2px rgba(var(--sr,124,110,245),0.4);
}

/* ── Card ── */
.pf-branch-card {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid rgba(var(--sr,124,110,245), 0.22);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow:
    0 2px 0 rgba(var(--sr,124,110,245),0.25),
    0 4px 0 rgba(var(--sr,124,110,245),0.12),
    0 12px 32px rgba(0,0,0,0.28),
    0 0 36px rgba(var(--sr,124,110,245),0.38);
}
.pf-branch-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--s,#7c6ef5), transparent);
  opacity: 0.7;
}
.pf-branch-card:hover {
  border-color: rgba(var(--sr,124,110,245),0.6);
  box-shadow:
    0 2px 0 rgba(var(--sr,124,110,245),0.35),
    0 4px 0 rgba(var(--sr,124,110,245),0.18),
    0 16px 48px rgba(0,0,0,0.35),
    0 0 52px rgba(var(--sr,124,110,245),0.52);
}

.pf-bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.pf-bc-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--s, #7c6ef5);
  background: rgba(var(--sr,124,110,245),0.1);
  border: 1px solid rgba(var(--sr,124,110,245),0.3);
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
}
.pf-bc-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(var(--sr,124,110,245),0.12);
  color: var(--s,#7c6ef5);
  display: flex; align-items: center; justify-content: center;
}
.pf-bc-name {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--s, #7c6ef5);
  margin-bottom: 0.45rem;
}
.pf-bc-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}
.pf-bc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.pf-bc-list li {
  font-size: 0.775rem;
  color: var(--text-muted);
  padding-left: 1.1em;
  position: relative;
}
.pf-bc-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--s,#7c6ef5);
  font-weight: 700;
}

/* ── Loop badge at trunk bottom ── */
.pf-trunk-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pf-trunk-loop strong { color: var(--text); }
.pf-trunk-loop svg { opacity: 0.65; flex-shrink: 0; }

/* Responsive: all cards on right side of trunk on mobile */
@media (max-width: 639px) {
  .pf-tree { padding-left: 2.5rem; }
  .pf-trunk { left: 12px; transform: none; }
  .pf-branch--left,
  .pf-branch--right {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-direction: row !important;
  }
  /* Left branches: flip so node is on left, card on right */
  .pf-branch--left { flex-direction: row !important; }
  .pf-branch--left .pf-branch-arm {
    flex-direction: row !important;
  }
  .pf-branch--left .pf-arm-node { order: 0; }
  .pf-branch--left .pf-arm-line { order: 1; }
  .pf-branch--left .pf-branch-card { order: 2; }
  .pf-branch-arm { width: 40px; }
  /* All arm lines point left-to-right (trunk to card) */
  .pf-branch--left .pf-arm-line,
  .pf-branch--right .pf-arm-line {
    background: linear-gradient(90deg, var(--s,#7c6ef5), rgba(var(--sr,124,110,245),0.2)) !important;
    transform-origin: 0% 50% !important;
  }
}

/* ─── Services expanded + tabs ─── */
.services-expanded-section {
  background: transparent;
  position: relative;
}
.services-expanded-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md), transparent);
}

.services-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.service-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font-body);
}
.service-tab:hover { color: var(--text); border-color: var(--border-md); background: rgba(255,255,255,0.04); }
.service-tab.active { color: var(--text); border-color: var(--violet); background: rgba(124,110,245,0.12); }

.services-panel { display: none; }
.services-panel.active { display: block; }

.services-panel-header { margin-bottom: 2rem; }
.services-panel-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.service-detail-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .service-detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-detail-grid { grid-template-columns: repeat(3, 1fr); } }

.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  background: rgba(7,9,26,0.52);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(133,153,212,0.12);
  border-radius: var(--r-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-detail-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--item-accent, var(--violet));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-detail-item:hover { border-color: var(--border-md); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-detail-item:hover::before { opacity: 0.7; }

.service-detail-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-detail-item h4 {
  font-family: var(--font-head);
  font-size: 0.9375rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 0.3rem;
}
.service-detail-item p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Compliance strip ─── */
.compliance-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.compliance-badge {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted);
}
.compliance-badge svg { color: var(--teal); flex-shrink: 0; }

/* ─── Partner grid v2 ─── */
.partner-grid-v2 {
  display: grid; gap: 2.25rem;
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
  max-width: 1000px; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .partner-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .partner-grid-v2 { grid-template-columns: repeat(3, 1fr); justify-content: center; } }
@media (min-width: 1024px) { .partner-grid-v2 { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; } }

.partner-card-v2 {
  background: rgba(7,9,26,0.52);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(133,153,212,0.12);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 420px;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.partner-card-v2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.partner-card-v2:nth-child(1)::before { background: linear-gradient(90deg, var(--violet), var(--teal)); }
.partner-card-v2:nth-child(2)::before { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.partner-card-v2:nth-child(3)::before { background: linear-gradient(90deg, var(--teal), var(--violet-lt)); }
.partner-card-v2:nth-child(1) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 8px 36px rgba(0,0,0,0.25), 0 0 28px rgba(133,153,212,0.45); }
.partner-card-v2:nth-child(2) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 8px 36px rgba(0,0,0,0.25), 0 0 28px rgba(133,153,212,0.45); }
.partner-card-v2:nth-child(3) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 8px 36px rgba(0,0,0,0.25), 0 0 28px rgba(133,153,212,0.45); }
/* Text on gradient backgrounds — dark in both modes */
.partner-card-v2:nth-child(1) .partner-cat,
.partner-card-v2:nth-child(2) .partner-cat,
.partner-card-v2:nth-child(3) .partner-cat { color: rgba(15,18,50,0.60); }
.partner-card-v2:nth-child(1) .partner-name,
.partner-card-v2:nth-child(2) .partner-name,
.partner-card-v2:nth-child(3) .partner-name { color: #0d0f2c; }
.partner-card-v2:nth-child(1) .partner-desc,
.partner-card-v2:nth-child(2) .partner-desc,
.partner-card-v2:nth-child(3) .partner-desc { color: rgba(15,18,50,0.72); }
.partner-card-v2:hover { border-color: var(--border-md); transform: translateY(-5px); }
.partner-card-v2:nth-child(1):hover { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 44px rgba(221,183,232,0.55); }
.partner-card-v2:nth-child(2):hover { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 44px rgba(201,168,214,0.55); }
.partner-card-v2:nth-child(3):hover { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 44px rgba(232,196,240,0.55); }
.partner-card-v2:hover::before { opacity: 1; }

.partner-cat {
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.partner-name {
  font-family: var(--font-head);
  font-size: 1.375rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 0.875rem;
}
.partner-desc {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65;
}
.partner-logo-mark {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}
.partner-logo-img {
  width: 100%; height: 110px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 1.25rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
html.light-theme .partner-logo-img {
  background: #ffffff;
  border-color: var(--border-md);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.partner-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: 100%; }
.partner-logo-img-placeholder {
  font-family: var(--font-head); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); opacity: 0.65;
}


/* ─── CTA badge ─── */
.cta-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-lt);
  background: rgba(77,184,196,0.1); border: 1px solid rgba(77,184,196,0.2);
  padding: 0.35rem 1rem; border-radius: 100px;
  margin-bottom: 1.75rem;
}
.cta-badge .dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }

/* ─── Magnetic button wrapper (set by JS) ─── */
.btn-magnetic { transform-style: preserve-3d; }

/* ─── Why-grid (proper column layout) ─── */
.why-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Team bios (about page) ─── */
.team-bio-grid {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.team-bio-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
}
.team-bio-card:hover { border-color: var(--border-md); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.team-bio-avatar {
  width: 160px; height: 190px; border-radius: var(--r-lg);
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border: 2px solid var(--border-md);
  box-shadow: 0 4px 24px rgba(124,110,245,0.12);
}
.team-bio-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
}
.team-bio-card:hover .team-bio-avatar img { transform: scale(1.05); }
.team-bio-avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--violet-lt), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.team-bio-header { margin-bottom: 0.85rem; }
.team-bio-name {
  font-family: var(--font-head); font-size: 1.25rem;
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--orange);
}
.team-bio-role {
  font-size: 0.6875rem; font-weight: 600;
  color: var(--violet-lt); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 0.3rem;
}
.team-bio-linkedin {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(10,102,194,0.10);
  border: 1px solid rgba(10,102,194,0.30);
  color: #0a66c2;
  font-size: 0.72rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.team-bio-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-1px);
}
.team-bio-linkedin svg { flex-shrink: 0; }

.team-bio-text {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.8;
}
.team-bio-text p { margin: 0 0 0.5rem; }
.team-bio-text p:last-child { margin-bottom: 0; }

.team-bio-readmore {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer; padding: 0;
  color: #fff; font-size: 0.8rem; font-weight: 600;
  margin-top: 0.6rem; transition: opacity 0.2s;
}
.team-bio-readmore:hover { opacity: 0.7; }

@media (max-width: 639px) {
  .team-bio-card { flex-direction: column; gap: 1.25rem; }
  .team-bio-avatar { width: 110px; height: 130px; }
}

/* ─── Responsive additions ─── */
@media (max-width: 767px) {
  .hero-float-pill-1,
  .hero-float-pill-2,
  .hero-float-pill-3 { display: none; }
  .vision-grid { gap: 2.5rem; }
  .engine-flow-step { min-width: auto; }
  .compliance-strip { gap: 1rem; }
  .partner-grid-v2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .why-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .vision-stats { gap: 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════ */

/* Smooth transitions when switching */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease,
    opacity 0.4s ease !important;
}

/* ─── Core tokens ─── */
html.light-theme {
  /* Backgrounds — clean cool white with lavender undertone */
  --bg:        #f0f2ff;
  --surface:   #ffffff;
  --surface-2: #f4f5ff;
  --surface-3: #eaecfa;

  /* Brand — official palette, adapted for light readability */
  --violet:    #45569D;
  --violet-lt: #6b7fc4;
  --orange:    #d4640a;
  --orange-lt: #FF9E5C;
  --teal:      #4a8fa4;
  --teal-lt:   #6aafbf;
  --rose:      #c0447a;
  --gold:      #c4870a;
  --pink:      #9b51be;
  --pink-lt:   #DDB7E8;
  --lavender:  #9b51be;
  --lavender-lt: #DDB7E8;

  /* Text */
  --text:      #0d0f2c;
  --text-muted:#454876;
  --text-dim:  #8890b5;

  /* Borders */
  --border:    #e2e5f7;
  --border-md: #cdd1ef;
  --border-hi: #a0a8d8;

  /* Glass */
  --glass:     rgba(240,242,255,0.88);
  --glass-hi:  rgba(255,255,255,0.97);

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(13,15,44,0.07);
  --shadow-md: 0 8px 28px -5px rgba(13,15,44,0.12), 0 4px 10px -6px rgba(79,70,229,0.08);
  --shadow-lg: 0 24px 48px -12px rgba(79,70,229,0.18), 0 12px 24px -8px rgba(0,0,0,0.06);
  --shadow-xl: 0 40px 100px rgba(13,15,44,0.20);

  /* Glows */
  --glow-v: 0 12px 32px -6px rgba(69,86,157,0.32);
  --glow-o: 0 12px 32px -6px rgba(255,158,92,0.25);
  --glow-t: 0 0 50px rgba(74,143,164,0.15);
}

/* base */
html.light-theme,
html.light-theme body { background: var(--bg); color: var(--text); }

/* scrollbar */
html.light-theme ::-webkit-scrollbar-track { background: var(--surface-2); }
html.light-theme ::-webkit-scrollbar-thumb { background: var(--surface-3); }

/* Film grain: nearly invisible on light */
html.light-theme body::before { opacity: 0.006; }

/* Page loader */
html.light-theme #page-loader { background: var(--bg); }
html.light-theme .loader-progress-track { background: rgba(0,0,0,0.08); }

/* ─── Navigation ─── */
html.light-theme .site-header {
  background: rgba(240,242,255,0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(79,70,229,0.08);
}
html.light-theme .site-header.scrolled {
  background: rgba(240,242,255,0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(79,70,229,0.14);
}
html.light-theme .nav-links a:hover  { background: rgba(79,70,229,0.06); color: var(--text); }
html.light-theme .nav-links a.active { background: rgba(79,70,229,0.10); color: var(--violet); }
html.light-theme .mobile-menu {
  background: rgba(240,242,255,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(79,70,229,0.12);
}
html.light-theme .mobile-menu a:hover,
html.light-theme .mobile-menu a.active { background: rgba(79,70,229,0.06); color: var(--text); }

/* ─── Buttons ─── */
html.light-theme .btn-ghost {
  border-color: var(--border-md);
  color: var(--text-muted);
}
html.light-theme .btn-ghost:hover {
  background: rgba(30,40,100,0.06);
  border-color: var(--border-hi);
  color: var(--text);
}

/* ─── Section labels ─── */
html.light-theme .section-label.violet {
  background: rgba(79,70,229,0.09);
  color: var(--violet);
  border-color: rgba(79,70,229,0.22);
}
html.light-theme .section-label.orange {
  background: rgba(234,109,16,0.09);
  color: var(--orange);
  border-color: rgba(234,109,16,0.22);
}
html.light-theme .section-label.teal {
  background: rgba(8,145,178,0.09);
  color: var(--teal);
  border-color: rgba(8,145,178,0.22);
}
html.light-theme .section-label.rose {
  background: rgba(225,29,72,0.09);
  color: var(--rose);
  border-color: rgba(225,29,72,0.22);
}
html.light-theme .section-label.gold {
  background: rgba(217,119,6,0.09);
  color: var(--gold);
  border-color: rgba(217,119,6,0.22);
}

/* ─── Hero ─── */
html.light-theme .hero-badge {
  background: rgba(79,70,229,0.09);
  border-color: rgba(79,70,229,0.20);
  color: var(--violet);
}
html.light-theme .hero-float-pill {
  background: rgba(255,255,255,0.92);
  border-color: rgba(79,70,229,0.14);
  box-shadow: 0 4px 20px rgba(13,15,44,0.10);
}

/* ─── Stats ─── */
html.light-theme .stats-grid { background: var(--border); }
html.light-theme .stat-item  { background: var(--surface); }
html.light-theme .stat-item:hover { background: var(--surface-2); }

/* ─── Why cards ─── */
html.light-theme .why-card { background: var(--surface); border-color: var(--border-md); }
html.light-theme .why-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hi); }
html.light-theme .why-card-icon { background: rgba(79,70,229,0.07) !important; border-color: rgba(79,70,229,0.15) !important; }

/* ─── Vision section ─── */
html.light-theme .vision-section::after { -webkit-text-stroke: 1px rgba(79,70,229,0.07); }
html.light-theme .vision-text strong { color: var(--violet); }
html.light-theme .vision-quote { border-left-color: var(--violet); }

/* ─── Engine flow ─── */
html.light-theme .engine-flow-step {
  background: var(--surface);
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}
html.light-theme .engine-flow-step:hover { box-shadow: var(--shadow-md); border-color: var(--border-hi); }

/* ─── Marquee ─── */
html.light-theme .marquee-text-strip { background: transparent; border-color: var(--border); }
html.light-theme .marquee-text-track span { color: var(--text-dim); }
html.light-theme .marquee-text-track span.highlight { color: var(--violet); }

/* ─── Compliance strip ─── */
html.light-theme .compliance-item { background: var(--surface); border-color: var(--border); }

/* ─── Partner cards ─── */
html.light-theme .partner-card-v2 {
  background: var(--surface);
  border-color: var(--border-md);
}
html.light-theme .partner-card-v2:nth-child(1) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 0 16px rgba(133,153,212,0.35); }
html.light-theme .partner-card-v2:nth-child(2) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 0 16px rgba(133,153,212,0.35); }
html.light-theme .partner-card-v2:nth-child(3) { background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%); box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 0 16px rgba(133,153,212,0.35); }
html.light-theme .partner-card-v2:nth-child(1):hover { box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 28px rgba(221,183,232,0.40); }
html.light-theme .partner-card-v2:nth-child(2):hover { box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 28px rgba(201,168,214,0.40); }
html.light-theme .partner-card-v2:nth-child(3):hover { box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 28px rgba(232,196,240,0.40); }

/* ─── Value cards ─── */
html.light-theme .pf-branch-card {
  background: #ffffff;
  border-color: rgba(var(--sr,124,110,245), 0.35);
  box-shadow:
    0 2px 0 rgba(var(--sr,124,110,245), 0.30),
    0 4px 0 rgba(var(--sr,124,110,245), 0.15),
    0 8px 30px rgba(0,0,0,0.12),
    0 0 40px rgba(var(--sr,124,110,245), 0.22);
}
html.light-theme .pf-branch-card:hover {
  border-color: rgba(var(--sr,124,110,245), 0.65);
  box-shadow:
    0 2px 0 rgba(var(--sr,124,110,245), 0.45),
    0 4px 0 rgba(var(--sr,124,110,245), 0.22),
    0 16px 48px rgba(0,0,0,0.16),
    0 0 56px rgba(var(--sr,124,110,245), 0.35);
}
html.light-theme .value-card {
  background: linear-gradient(135deg, #FF9E5C 0%, #DDB7E8 40%, #8599d4 70%, #45569D 100%);
  border-color: rgba(255,255,255,0.2);
}
html.light-theme .value-card .icon-wrap {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.4);
}
/* Text on gradient value cards */
.value-card h3, .value-card p { color: #0d0f2c; }
.value-card h3 { color: #0d0f2c; }
.value-card p { color: rgba(15,18,50,0.75); }

/* ─── Blog cards ─── */
html.light-theme .blog-card { background: var(--surface); border-color: var(--border-md); }
html.light-theme .blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hi); }
html.light-theme .blog-card-meta { color: var(--text-dim); }
html.light-theme .blog-card-meta .cat {
  color: var(--violet);
  background: rgba(79,70,229,0.09);
}
html.light-theme .blog-card-body h3 { color: var(--text); }
html.light-theme .blog-card:hover .blog-card-body h3 { color: var(--violet); }
html.light-theme .blog-read-more { color: var(--violet); }

/* ─── CTA card ─── */
html.light-theme .cta-card {
  background: linear-gradient(135deg, #edeffe 0%, #f4f5ff 50%, #eef0fd 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--border-md);
  box-shadow: var(--shadow-md);
}
html.light-theme .cta-card h2 { color: #0d0f2c; }
html.light-theme .cta-card p  { color: #454876; }

/* ─── Contact ─── */
html.light-theme .contact-form-card {
  background: var(--surface);
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}
html.light-theme .form-label { color: var(--text-muted); }
html.light-theme .form-input,
html.light-theme .form-textarea {
  background: var(--surface-2);
  border-color: var(--border-md);
  color: var(--text);
}
html.light-theme .form-input::placeholder,
html.light-theme .form-textarea::placeholder { color: var(--text-dim); }
html.light-theme .form-input:focus,
html.light-theme .form-textarea:focus {
  border-color: var(--violet);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
}
html.light-theme .contact-detail { color: var(--text-muted); }
html.light-theme .contact-detail svg { color: var(--violet); }

/* ─── Team bio ─── */
html.light-theme .team-bio-card {
  background: var(--surface);
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}
html.light-theme .team-bio-role { color: var(--violet); }
html.light-theme .team-bio-readmore { color: var(--orange); }

/* ─── Footer ─── */
html.light-theme .site-footer {
  background: var(--surface);
  border-top-color: var(--border-md);
}
html.light-theme .footer-col a { color: var(--text-muted); }
html.light-theme .footer-col a:hover { color: var(--text); }
html.light-theme .footer-bottom { color: var(--text-dim); border-top-color: var(--border); }
html.light-theme .footer-social a {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}
html.light-theme .footer-social a:hover { background: var(--surface-3); color: var(--text); }

/* ─── Page hero orb ─── */
html.light-theme .page-hero::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(79,70,229,0.07), transparent 70%);
}

/* ─── Services expanded ─── */
html.light-theme .service-detail-content { background: var(--surface-2); border-color: var(--border); }

/* ─── Floating theme toggle button ─── */
/* Push reCAPTCHA badge above the theme toggle button */
.grecaptcha-badge {
  bottom: 5.5rem !important;
}

#theme-toggle {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s var(--ease-bounce), background 0.3s, color 0.3s;
  cursor: pointer;
}
#theme-toggle:hover {
  border-color: var(--border-hi);
  color: var(--text);
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}
#theme-toggle svg { pointer-events: none; transition: transform 0.45s var(--ease); }
#theme-toggle:hover svg { transform: rotate(22deg); }
#theme-toggle .icon-sun  { display: none; }
#theme-toggle .icon-moon { display: block; }
html.light-theme #theme-toggle { background: rgba(255,255,255,0.92); }
html.light-theme #theme-toggle .icon-sun  { display: block; }
html.light-theme #theme-toggle .icon-moon { display: none; }

/* ─── Stat / metric gradient text — light theme ─── */
html.light-theme .hero-metric-val,
html.light-theme .stat-value,
html.light-theme .vision-stat-val {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text);
  background-clip: unset;
  color: var(--text);
}

/* ─── BOLDAI character — light theme (purple & pink) ─── */
/* Head: light lavender centre → medium violet → brand navy */
html.light-theme #headGrad stop:nth-child(1) { stop-color: #c8b0f5; }
html.light-theme #headGrad stop:nth-child(2) { stop-color: #8070d8; }
html.light-theme #headGrad stop:nth-child(3) { stop-color: #45569D; }
/* Specular: warm lavender sheen */
html.light-theme #headSpec stop:nth-child(1) { stop-color: rgba(235,220,255,0.50); }
/* Body: purple → brand navy */
html.light-theme #bodyGrad stop:nth-child(1) { stop-color: #9078d8; }
html.light-theme #bodyGrad stop:nth-child(2) { stop-color: #5560b0; }
/* Core glow: purple */
html.light-theme #coreGlow stop:nth-child(1) { stop-color: #7c6ef5; stop-opacity: 0.22; }
/* Accent glow: keep orange, reduce slightly */
html.light-theme #accentGlow stop:nth-child(1) { stop-opacity: 0.14; }
/* Arm gradient: violet */
html.light-theme #armGradV stop:nth-child(1) { stop-color: #8070d8; stop-opacity: 0.90; }
html.light-theme #armGradV stop:nth-child(2) { stop-color: #8070d8; stop-opacity: 0.04; }
/* HUD bar: purple */
html.light-theme #hudBar stop:nth-child(1) { stop-color: rgba(124,110,245,0); }
html.light-theme #hudBar stop:nth-child(2) { stop-color: rgba(124,110,245,0.80); }
html.light-theme #hudBar stop:nth-child(3) { stop-color: rgba(124,110,245,0.20); }
/* Head stroke + inner rings */
html.light-theme #boldai-char circle[r="78"] { stroke: rgba(124,110,245,0.55); }
html.light-theme #boldai-char circle[r="63"] { stroke: rgba(124,110,245,0.28); }
html.light-theme #boldai-char circle[r="46"] { stroke: rgba(124,110,245,0.16); }
/* Orbit rings — orange & purple highlight */
html.light-theme #boldai-char circle[r="188"] { stroke: rgba(255,158,92,0.65);  stroke-width: 1.5; }
html.light-theme #boldai-char circle[r="152"] { stroke: rgba(124,110,245,0.70); stroke-width: 1.5; }
html.light-theme #boldai-char circle[r="120"] { stroke: rgba(221,183,232,0.65); stroke-width: 1; }
/* Hex grid, circuit traces, HUD border */
html.light-theme #boldai-char path[stroke*="124,110,245"] { stroke: rgba(124,110,245,0.45); }
html.light-theme #boldai-char path[stroke*="133,153,212"] { stroke: rgba(133,153,212,0.35); }
html.light-theme #boldai-char line                         { stroke-opacity: 0.40; }
html.light-theme #boldai-char rect[stroke*="124,110,245"] { stroke: rgba(124,110,245,0.40); }
/* BOLDAI label text */
html.light-theme #boldai-char text { fill: rgba(124,110,245,0.75); }


/* ═══════════════════════════════════════════════════════════
   REDESIGN 4.0 — Connecting Dots Theme
   ═══════════════════════════════════════════════════════════ */

/* --- NAV LOGO --- */
.nav-brand {
  display: flex; align-items: center; gap: 0.25rem;
  text-decoration: none;
  -webkit-text-fill-color: unset;
  background: none;
  color: var(--text);
}
.nav-logo-mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform 0.4s var(--ease), filter 0.3s;
}
html.light-theme .nav-logo-mark { filter: none; }
.nav-brand:hover .nav-logo-mark { transform: rotate(15deg) scale(1.08); }
.nav-brand-text {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1;
}
html.light-theme .nav-brand-text { color: #0d0f2c; -webkit-text-fill-color: #0d0f2c; }

/* --- HERO BRAND LOCKUP --- */
.hero-brand-lockup {
  display: flex; align-items: center; gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.hero-logo-mark {
  width: 64px; height: 64px;
  flex-shrink: 0;
  filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.1);
}
.hero-brand-name {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text);
}

/* Hero title — slightly smaller than before */
.hero-title .hero-sub {
  font-size: 0.78em;
}

/* Hero subtitle */
.hero-subtitle {
  color: var(--text-muted) !important;
  font-size: clamp(1.0625rem, 1.85vw, 1.25rem) !important;
}

/* --- HERO VISUAL / SPINNING LOGO --- */
.hero-visual-col {
  display: flex; align-items: center; justify-content: center;
}
.hero-spin-wrap {
  position: relative;
  width: min(620px, 100%); height: min(620px, 100%);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  max-width: 100%;
}
@media (max-width: 1280px) {
  .hero-spin-wrap { width: min(500px, 100%); height: min(500px, 100%); }
}
@media (max-width: 1023px) {
  .hero-spin-wrap { width: min(300px, 100%); height: min(300px, 100%); margin: 0 auto; }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { to { transform: rotate(-360deg); } }

/* --- VISION SECTION UPDATE --- */
.vision-quote-prominent {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--orange) !important;
  border-left: 3px solid var(--orange) !important;
  padding: 0.75rem 1.25rem !important;
  background: rgba(255,158,92,0.06) !important;
  border-radius: 0 var(--r) var(--r) 0 !important;
  margin-top: 2rem !important;
}

/* BoldAI screenshot wrap */
.boldai-screenshot-wrap {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5),
              0 0 60px rgba(255,158,92,0.38),
              0 0 100px rgba(221,183,232,0.28);
}
.boldai-screen-badge {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: none;
  color: var(--orange-lt);
  background: rgba(255,158,92,0.08);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.boldai-screen-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); display: block;
  animation: pulse-dot 2s ease-in-out infinite;
}
.boldai-screen-inner {
  padding: 0;
  background: rgba(255,255,255,0.92);
  overflow: hidden;
}
.boldai-screen-svg { width: 100%; max-width: 420px; height: auto; }
.boldai-screen-img { width: 100%; height: auto; display: block; }
.boldai-screen-footer {
  padding: 0.875rem 1.25rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.boldai-tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem; border-radius: 100px;
}

/* Pipeline SVG animations */
.pipeline-pulse {
  animation: pipeline-beat 2.5s ease-in-out infinite;
}
@keyframes pipeline-beat {
  0%,100% { opacity: 0.9; r: 10; }
  50% { opacity: 0.5; r: 12; }
}
.pipeline-traveller {
  animation: pipeline-travel 2s ease-in-out infinite;
}
@keyframes pipeline-travel {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateX(56px); opacity: 0; }
}

/* --- PIPELINE LOOP (4-stage continuous orbit) --- */
.pipeline-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.pipeline-orbit-container {
  width: 100%;
  max-width: 660px;
}
.pipeline-svg {
  width: 100%; height: auto;
  overflow: visible;
}
/* SVG text elements */
.pl-sub { fill: rgba(185,199,203,0.7); }
.pl-hub-bg { fill: var(--bg); }
.pl-hub-text { fill: rgba(255,158,92,0.95); }

/* Slowly rotating outer orbit ring */
.pl-orbit-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pl-ring-spin 50s linear infinite;
}
@keyframes pl-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Flowing dashes on arc segments (clockwise cascade) */
.pl-arc-v, .pl-arc-o, .pl-arc-l, .pl-arc-t {
  stroke-dasharray: 16 9;
}
.pl-arc-v { animation: pl-dash-flow 2.8s linear infinite; }
.pl-arc-o { animation: pl-dash-flow 2.8s linear infinite 0.7s; }
.pl-arc-l { animation: pl-dash-flow 2.8s linear infinite 1.4s; }
.pl-arc-t { animation: pl-dash-flow 2.8s linear infinite 2.1s; }
@keyframes pl-dash-flow {
  from { stroke-dashoffset: 75; }
  to   { stroke-dashoffset: 0; }
}

/* 4 detail cards */
.pipeline-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 860px;
}
@media (min-width: 768px) {
  .pipeline-cards { grid-template-columns: repeat(4, 1fr); }
}
.pipeline-card {
  background: var(--surface-2);
  border: 1px solid var(--pc-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.25rem 1.125rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.pipeline-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--pc-solid);
  opacity: 0.8;
}
.pipeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pc-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.pc-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.pc-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
}
.pipeline-card p {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; margin: 0;
}

/* Light theme overrides */
html.light-theme .pipeline-card {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
html.light-theme .pl-sub { fill: rgba(61,77,158,0.5); }
html.light-theme .pl-hub-bg { fill: #fff; }
html.light-theme .pl-hub-text { fill: rgba(61,77,158,0.9); }

/* --- FULL CIRCLE THINKING ANIMATION --- */
.full-circle-wrap {
  margin-bottom: 3.5rem;
  padding: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.full-circle-stages {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.fcs-stage {
  text-align: center; flex: 1; min-width: 100px; max-width: 130px;
}
.fcs-visual {
  width: 80px; height: 60px; margin: 0 auto 0.625rem;
}
.fcs-visual svg { width: 100%; height: 100%; }
.fcs-label {
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
  line-height: 1.4; text-align: center;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.fcs-arrow {
  font-size: 1.25rem; color: var(--border-md);
  flex-shrink: 0; opacity: 0.6;
}
.fcs-dot-pulse { animation: fcs-glow 2.5s ease-in-out infinite; }
@keyframes fcs-glow {
  0%,100% { opacity: 0.85; filter: none; }
  50% { opacity: 0.5; filter: drop-shadow(0 0 6px var(--orange)); }
}
.fcs-stage-final .fcs-visual svg circle { animation: fcs-ring-spin 3s ease-in-out infinite alternate; }
@keyframes fcs-ring-spin {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* --- VISION BOLD AI FIX --- */
.vision-char-col { display: none !important; }

/* Brighter text in vision section */
.vision-text .section-subtitle,
.vision-text p {
  color: var(--text) !important;
  opacity: 1 !important;
}

/* --- WHY CARD text --- */
.why-card p { color: var(--text-muted) !important; }

/* Hide old hero-inner-v2 second column if still rendered */
.hero-inner-v2 { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) {
  .hero-inner-v2 { grid-template-columns: 1fr; }
  .hero-visual-col { order: -1; }
  .hero-spin-wrap { width: 180px; height: 180px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════
   FIXES 4.1 — Logo / Parallax / Full Circle / Light Theme
   ═══════════════════════════════════════════════════════════ */

/* Remove CSS smooth scroll (Lenis handles it) */
html { scroll-behavior: auto !important; }

/* NAV logo image */
.nav-logo-mark {
  width: 54px; height: 54px; object-fit: cover;
  border-radius: 50%;
  filter: brightness(0) invert(1);
  transition: filter 0.3s, transform 0.4s var(--ease);
  display: block;
}
html.light-theme .nav-logo-mark { filter: none; }
.nav-brand:hover .nav-logo-mark { transform: rotate(30deg) scale(1.1); }

/* HERO spin image — full-size, centered, big */
.hero-spin-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.1) drop-shadow(0 0 48px rgba(255,158,92,0.6));
  animation: hero-logo-spin 18s linear infinite;
}
@keyframes hero-logo-spin { to { transform: rotate(360deg); } }

/* ── PARALLAX BANNER ── */
.parallax-banner {
  position: relative; overflow: hidden;
  height: 280px;
  z-index: 1;
}
@media (min-width: 768px) { .parallax-banner { height: 380px; } }
.parallax-img-layer {
  position: absolute; inset: -25% 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,9,20,0.72) 0%, rgba(8,9,20,0.40) 50%, rgba(8,9,20,0.72) 100%);
  display: flex; align-items: center; justify-content: center;
}
html.light-theme .parallax-banner-overlay {
  background: linear-gradient(to right, rgba(240,236,255,0.72) 0%, rgba(240,236,255,0.40) 50%, rgba(240,236,255,0.72) 100%);
}
.parallax-banner-text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.015em;
  color: rgba(255,255,255,0.88); text-align: center;
  max-width: 640px; padding: 0 2rem; line-height: 1.3;
}
html.light-theme .parallax-banner-text { color: var(--text); }
.parallax-banner-text em { font-style: italic; color: var(--orange); -webkit-text-fill-color: var(--orange); }

/* ── FULL CIRCLE THINKING ── */
.full-circle-wrap {
  margin-bottom: 4rem; padding: 2.5rem 2rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
html.light-theme .full-circle-wrap { background: var(--surface); border-color: var(--border-md); }

.fct-header { text-align: center; margin-bottom: 2rem; }

.full-circle-stages {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 0.5rem;
}
@media (max-width: 700px) {
  .full-circle-stages { gap: 0.5rem; }
  .fcs-arrow { display: none; }
}

.fcs-stage {
  display: flex; flex-direction: column; align-items: center; gap: 0.875rem;
  flex-shrink: 0;
}
.fcs-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
@media (min-width: 768px) { .fcs-visual { min-height: 120px; } }

.fcs-s1-svg { width: 60px; height: 60px; color: var(--text); }
@media (min-width: 768px) { .fcs-s1-svg { width: 80px; height: 80px; } }

.fcs-s3-svg { width: 180px; height: 30px; color: var(--text); }
@media (min-width: 768px) { .fcs-s3-svg { width: 280px; height: 44px; } }

.fcs-img { display: block; max-width: 100%; height: auto; transition: transform 0.3s; }
.fcs-s2-img { width: 70px; }
@media (min-width: 768px) { .fcs-s2-img { width: 100px; } }
.fcs-s4-img { width: 100px; }
@media (min-width: 768px) { .fcs-s4-img { width: 140px; } }

/* Images in light theme: keep color (they're orange already) */
/* Dark/light image switching */
.fcs-s4-dark  { display: block; }
.fcs-s4-light { display: none; }
html.light-theme .fcs-s4-dark  { display: none; }
html.light-theme .fcs-s4-light { display: block; }

/* Hero spin image dark/light */
.hero-spin-dark  { display: block; }
.hero-spin-light { display: none; }
html.light-theme .hero-spin-dark  { display: none; }
html.light-theme .hero-spin-light { display: block; }

/* Dots — stage 1/2/3 black, stage 4 uses inline gradient fill */
.fcs-dot-1, .fcs-chain-dot, .fcs-2dot { fill: #000000; }

/* Stage 3 SVG color in light theme */
html.light-theme .fcs-s3-svg { color: var(--text); }

.fcs-label {
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
  line-height: 1.4; text-align: center;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.fcs-label-final { color: var(--orange) !important; font-weight: 700; }

.fcs-arrow {
  flex-shrink: 0; color: var(--border-md);
  display: flex; align-items: center;
}
.fcs-arrow svg { width: 28px; height: 10px; }

/* Full circle spin animation */
.fcs-spinning { animation: fcs-spin 20s linear infinite; }
@keyframes fcs-spin { to { transform: rotate(360deg); } }

/* ── Full Circle banner section ── */
.fct-banner-section {
  position: relative; z-index: 1;
  overflow: hidden;
  padding: 8rem 0;
  background: var(--surface);
}

/* Ensure content sits above pseudo-elements */
.fct-banner-section .container { position: relative; z-index: 1; }
.fct-banner-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
/* Dark section — heading and subtitle need light colours */
.fct-heading {
  color: #fff;
  margin-top: 0.5rem;
}
.fct-banner-header .section-subtitle {
  color: rgba(255,255,255,0.5);
}
/* Light theme — section background is #f4f4f8, revert to dark text */
html.light-theme .fct-heading {
  color: var(--text);
}
html.light-theme .fct-banner-header .section-subtitle {
  color: var(--text-muted);
}


/* No border/bg — open layout matching reference */
.full-circle-wrap--large {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* 4-column even grid, no arrows */
.full-circle-wrap--large .full-circle-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: end;
  justify-items: center;
}

/* Each stage: visual on top, label below */
.full-circle-wrap--large .fcs-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: none;
  width: 100%;
}

/* Visual containers — tall enough for elements + goo filter overflow */
.full-circle-wrap--large .fcs-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  overflow: visible;
  max-width: 100%;
}

/* Stage 1: single dot */
.full-circle-wrap--large .fcs-s1-svg {
  width: 70px; height: 70px;
  overflow: visible;
}

/* Stage 2: two dots SVG */
.fcs-s2-svg { overflow: visible; }
.full-circle-wrap--large .fcs-s2-svg {
  width: 80px; height: 42px;
  overflow: visible;
}

/* Stage 3: chain — fixed width, dots match stages 1 & 2 */
.full-circle-wrap--large .fcs-stage3-visual {
  overflow: visible;
}
.full-circle-wrap--large .fcs-s3-svg {
  width: min(238px, 100%); height: 36px;
  overflow: visible;
}

/* Stage 4: full circle SVG */
.fcs-s4-svg { overflow: visible; }
.full-circle-wrap--large .fcs-s4-svg {
  width: 170px; height: 170px;
}

/* Spinning group — rotates around the SVG centre point */
.fcs-circle-group {
  transform-box: fill-box;
  transform-origin: center;
}
.fcs-circle-group.fcs-spinning {
  animation: fcs-spin 10s linear infinite;
}

/* Labels — plain text, no uppercase */
.full-circle-wrap--large .fcs-label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.5;
}
.full-circle-wrap--large .fcs-label-final {
  color: var(--orange) !important;
  font-weight: 600;
}

/* Responsive: 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
  .full-circle-wrap--large .full-circle-stages {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}
@media (max-width: 480px) {
  .full-circle-wrap--large .full-circle-stages {
    grid-template-columns: 1fr;
  }
}

/* ── LIGHT THEME: New section overrides ── */
html.light-theme .boldai-screenshot-wrap { background: var(--surface); border-color: var(--border-md); }
html.light-theme .boldai-screen-inner   { background: var(--surface-2); }
html.light-theme .full-circle-wrap      { background: #fff; border-color: var(--border-md); }
html.light-theme .nav-brand-text        { color: #0d0f2c; -webkit-text-fill-color: #0d0f2c; }
html.light-theme .hero-brand-name       { color: var(--text); }

/* ── Hero wordmark image ── */
.hero-wordmark-img {
  height: 80px;
  width: auto;
  max-width: 400px;
  display: block;
  filter: brightness(0) invert(1); /* white in dark mode */
}
html.light-theme .hero-wordmark-img {
  filter: none; /* orange in light mode */
}
html.light-theme .parallax-banner-text  { color: var(--text); }
html.light-theme .fcs-label             { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   GLASS FROST — applied to all sections & cards (light theme)
   ═══════════════════════════════════════════════════════════ */

/* Section surfaces */
html.light-theme .section-surface,
html.light-theme .section-surface-2 {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* Cards */
html.light-theme .why-card {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 2px 16px rgba(61,80,160,0.06);
}
html.light-theme .why-card:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* BoldAI screenshot wrap */
html.light-theme .boldai-screenshot-wrap {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12),
              0 0 36px rgba(255,158,92,0.18),
              0 0 60px rgba(221,183,232,0.14);
}

/* Service detail items */
html.light-theme .service-detail-item {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg);
}

/* Engine flow steps */
html.light-theme .engine-flow-step {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-color: rgba(255,255,255,0.9) !important;
}


/* Dark mode glass stays as-is but cards get slight transparency */
.why-card,
.engine-flow-step {
  background: var(--surface-2);
}

/* Hero visual column — vertically centered */
.hero-visual-col { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: visible; }

/* Hero spin image — fills wrap */
.hero-spin-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.1) drop-shadow(0 0 48px rgba(255,158,92,0.6));
  animation: hero-logo-spin 18s linear infinite;
}
@keyframes hero-logo-spin { to { transform: rotate(360deg); } }

/* Stage 4 Full Circle — same spinning logo */
.fcs-s4-spin-img {
  width: min(280px, 100%); height: auto; aspect-ratio: 1; object-fit: contain;
  filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.1) drop-shadow(0 0 24px rgba(255,158,92,0.5));
  animation: hero-logo-spin 18s linear infinite;
  opacity: 0;
  transition: opacity 0.6s;
}
.fcs-s4-spin-img.fcs-revealed { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   WIREFRAME CUBE — Hero Visual
   ═══════════════════════════════════════════════════════════ */
.wire-scene {
  width:  clamp(260px, 36vw, 460px);
  height: clamp(260px, 36vw, 460px);
  position: relative;
  flex-shrink: 0;
}
#hz-canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .wire-scene { width: clamp(220px, 72vw, 340px); height: clamp(220px, 72vw, 340px); }
}

/* keep rubik-scene class stub so old references don't break */
.rubik-scene {
  --cs: 260px;
  --half: 130px;
  width:  var(--cs);
  height: var(--cs);
  perspective: 700px;
  perspective-origin: 50% 44%;
  position: relative;
  flex-shrink: 0;
}

/* Ambient glow beneath the cube */
.rubik-scene::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(180,180,200,0.10) 0%,
    rgba(124,110,245,0.06) 40%,
    transparent 70%);
  pointer-events: none;
  animation: cube-glow 6s ease-in-out infinite alternate;
}
@keyframes cube-glow {
  from { opacity: 0.6; transform: scale(0.94); }
  to   { opacity: 1.0; transform: scale(1.06); }
}

.rubik-cube {
  width:  var(--cs);
  height: var(--cs);
  position: relative;
  transform-style: preserve-3d;
  animation: cube-show-all 22s ease-in-out infinite;
}

/* Cycle through all 6 faces: 4 sides + tilt to top + tilt to bottom */
@keyframes cube-show-all {
  /* Face 1 — front */
  0%,  4%  { transform: rotateX(-22deg) rotateY(0deg); }
  /* → face 2 */
  18%, 22% { transform: rotateX(-22deg) rotateY(90deg); }
  /* → face 3 */
  36%, 40% { transform: rotateX(-22deg) rotateY(180deg); }
  /* → face 4 */
  54%, 58% { transform: rotateX(-22deg) rotateY(270deg); }
  /* → back to face 1 */
  68%, 70% { transform: rotateX(-22deg) rotateY(360deg); }
  /* tilt up → show top */
  76%, 81% { transform: rotateX(65deg)  rotateY(360deg); }
  /* tilt down → show bottom */
  87%, 92% { transform: rotateX(-112deg) rotateY(360deg); }
  /* return to start */
  100%     { transform: rotateX(-22deg) rotateY(360deg); }
}

.rubik-face {
  position: absolute;
  width:  var(--cs);
  height: var(--cs);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows:    repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  background: #0e0e0e;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 0 40px rgba(0,0,0,0.85);
}

.rubik-face span {
  border-radius: 7px;
  background: var(--c, #1e1e1e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 1px 4px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
}

/* Face transforms — half = 130px */
.rf-front  { transform: translateZ(var(--half)); }
.rf-back   { transform: rotateY(180deg)  translateZ(var(--half)); }
.rf-right  { transform: rotateY(90deg)   translateZ(var(--half)); }
.rf-left   { transform: rotateY(-90deg)  translateZ(var(--half)); }
.rf-top    { transform: rotateX(90deg)   translateZ(var(--half)); }
.rf-bottom { transform: rotateX(-90deg)  translateZ(var(--half)); }

/* Responsive */
@media (max-width: 1200px) {
  .rubik-scene { --cs: 220px; --half: 110px; }
}
@media (max-width: 767px) {
  .rubik-scene { --cs: 180px; --half: 90px; }
  .rubik-face  { gap: 4px; padding: 4px; border-radius: 10px; }
  .rubik-face span { border-radius: 5px; }
  .rubik-scene::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   MODERN UI POLISH
   ═══════════════════════════════════════════════════════════ */

/* Hero: text left, cube right */
.hero-inner-v2 {
  grid-template-columns: 1fr auto !important;
  align-items: center;
  gap: 4rem;
}
@media (max-width: 900px) {
  .hero-inner-v2 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    justify-items: center;
  }
  .hero-visual-col { order: -1; }
}

/* Hero section: no overflow clip */
.hero { overflow: visible; }
.hero-v2 { padding: 120px 0 5rem; }


/* Abstract section accent: faint diagonal line pattern on pipeline section */
.section-surface {
  position: relative;
  background: var(--surface);
}
.section-surface > *,
.section-surface-2 > * { position: relative; z-index: 1; }

/* Section separators — thin gradient lines */
section + section::before {
  content: none; /* Reset to avoid conflicts */
}

/* Frosted nav always — not just on scroll */
.site-header {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled {
  background: rgba(0,0,0,0.75);
}

/* Nav brand: glow on hover */
.nav-brand:hover { opacity: 0.85; }

/* Section titles: tighter tracking on large */
.section-title.xl { letter-spacing: -0.03em; }

/* Engine tagline: more stylish */
.engine-tagline {
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 3.5rem;
  letter-spacing: 0.01em;
}

/* Why-spotlight gap tighten on medium screens */
@media (max-width: 1100px) and (min-width: 768px) {
  .why-spotlight { grid-template-columns: 1fr; gap: 2rem; }
  .why-detail { position: static; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — Global Fixes
   ═══════════════════════════════════════════════════════════ */

/* Tighter container on small screens */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
}

/* Hero text: tighter on mobile */
@media (max-width: 640px) {
  .hero-v2 { padding: 100px 0 3rem; }
  .hero-title { font-size: clamp(1.875rem, 8vw, 2.75rem) !important; }
  .hero-subtitle { font-size: 0.9375rem !important; }
}

/* Pipeline track: proper sizing on small mobile */
@media (max-width: 480px) {
  .pst-card-title { font-size: 1.25rem; }
  .pst-card-desc  { font-size: 0.875rem; }
  .pst-card-bullets li { font-size: 0.8125rem; }
}

/* Why-spotlight: full mobile treatment */
@media (max-width: 767px) {
  .why-spotlight { gap: 0; }
  .why-item { padding-left: 1rem; }
  .wp-title { font-size: 1.125rem; }
}

/* Full Circle: tighter grid on mobile */
@media (max-width: 540px) {
  .fct-banner-section { padding: 4rem 0; }
}

/* Stats grid: 2-col stays fine, but on tiny screens go 1-col */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Footer: ensure links don't overflow */
@media (max-width: 480px) {
  .footer-inner { gap: 2rem; }
  .footer-col h4 { font-size: 0.875rem; }
}

/* Services tabs: wrap on mobile */
@media (max-width: 767px) {
  .services-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .service-tab {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}

/* CTA card: less padding on mobile */
@media (max-width: 480px) {
  .cta-card { padding: 2.5rem 1.25rem; border-radius: var(--r-xl); }
}

/* Blog cards: single column on mobile */
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Section pad: reduce on small screens */
@media (max-width: 480px) {
  .section-pad { padding: 3rem 0; }
}

/* Ensure no horizontal overflow anywhere */
.hero, main, section { max-width: 100vw; overflow-x: hidden; }
/* But let the 3D cube overflow its parent without cutting */
.hero-visual-col { overflow: visible; }
.hero-inner-v2   { overflow: visible; }

/* ─── Enhanced card hover transitions ─── */
.pipeline-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.pipeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  border-color: var(--pc-solid, rgba(255,255,255,0.15));
}

.value-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.team-bio-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-bio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.btn-primary, .btn-ghost {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,110,245,0.35);
}
.btn-ghost:hover {
  transform: translateY(-2px);
}

.nav-links a {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.service-tab {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.service-tab:hover:not(.active) {
  transform: translateY(-1px);
}

/* Smooth section reveal */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ─── FAQ / AEO / GEO section ─── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.faq-item[open] {
  border-color: rgba(124,110,245,0.35);
  box-shadow: 0 4px 24px rgba(124,110,245,0.12);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--violet-lt);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}
.faq-item[open] .faq-q { color: var(--violet-lt); }

.faq-a {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-a p { margin: 0; padding-top: 1rem; }

/* Light theme FAQ */
html.light-theme .faq-item { background: var(--surface); }
html.light-theme .faq-item[open] { border-color: rgba(69,86,157,0.35); box-shadow: 0 4px 24px rgba(69,86,157,0.1); }
html.light-theme .faq-item[open] .faq-q { color: var(--violet); }
html.light-theme .faq-q::after { color: var(--violet); }

/* ─── Light mode card/shadow fixes ─── */
html.light-theme .pipeline-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 18px rgba(var(--sr,124,110,245),0.18);
}
html.light-theme .pipeline-card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.12), 0 0 28px rgba(var(--sr,124,110,245),0.28);
}
html.light-theme .why-panel {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 4px 20px var(--wc, rgba(69,86,157,0.18));
}
html.light-theme .cta-card {
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 0 60px rgba(69,86,157,0.08);
}
html.light-theme .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(69,86,157,0.25);
}
html.light-theme .faq-a {
  color: var(--text-muted);
}
html.light-theme .marquee-text-strip {
  background: var(--surface-2);
}
