﻿/* ============================================================
   KEYFRAME DESIGNS — style.css
   Colors: #FFBC00 (gold) | #1C1B2E (dark) | #05040e (bg)
   Font: Manrope
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:                   #05040e;
  --bg-2:                 #0d0c1a;
  --bg-card:              rgba(255,255,255,0.04);
  --gold:                 #FFBC00;
  --gold-light:           #FFD040;
  --gold-dark:            #CC9900;
  --dark:                 #1C1B2E;
  --text:                 #F0EFF8;
  --text-muted:           #7A7A9A;
  --border:               rgba(255,188,0,0.15);
  --border-soft:          rgba(255,255,255,0.06);
  --radius:               16px;
  --radius-sm:            10px;
  --radius-lg:            24px;
  --ease:                 cubic-bezier(0.16, 1, 0.3, 1);
  --font:                 'Manrope', sans-serif;
  --shadow-gold:          0 0 40px rgba(255,188,0,0.18);
  --shadow-card:          0 24px 64px rgba(0,0,0,0.5);
  /* theme-adaptive tokens */
  --navbar-scrolled-bg:   rgba(5,4,14,0.85);
  --nav-mobile-bg:        rgba(5,4,14,0.97);
  --svc-card-bg:          rgba(13,12,26,0.85);
  --svc-card-hover-bg:    rgba(28,27,46,0.9);
  --input-bg:             rgba(255,255,255,0.04);
  --input-placeholder:    rgba(255,255,255,0.2);
  --loader-track:         rgba(255,255,255,0.08);
  --badge-bg:             rgba(13,12,26,0.85);
  --work-scrollbar-track: rgba(255,255,255,0.06);
  --logo-cutout:          #05040e;
  --logo-cutout-alt:      #0d0c1a;
  --logo-fill:            #F0EFF8;
}

/* ── Light Theme ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:                   #F4F3FF;
  --bg-2:                 #ECEAF8;
  --bg-card:              rgba(0,0,0,0.035);
  --text:                 #1C1B2E;
  --text-muted:           #5A5A7A;
  --border:               rgba(255,188,0,0.35);
  --border-soft:          rgba(0,0,0,0.09);
  --shadow-gold:          0 0 40px rgba(255,188,0,0.2);
  --shadow-card:          0 24px 64px rgba(0,0,0,0.1);
  --navbar-scrolled-bg:   rgba(244,243,255,0.88);
  --nav-mobile-bg:        rgba(244,243,255,0.97);
  --svc-card-bg:          rgba(255,255,255,0.82);
  --svc-card-hover-bg:    rgba(255,255,255,0.97);
  --input-bg:             rgba(0,0,0,0.04);
  --input-placeholder:    rgba(0,0,0,0.25);
  --loader-track:         rgba(0,0,0,0.08);
  --badge-bg:             rgba(244,243,255,0.9);
  --work-scrollbar-track: rgba(0,0,0,0.08);
  --logo-cutout:          #F4F3FF;
  --logo-cutout-alt:      #ECEAF8;
  --logo-fill:            #1C1B2E;
}

/* SVG logo — main body adapts to theme */
.logo-icon :nth-child(1),
.logo-icon :nth-child(2),
.loader-logo :nth-child(1),
.loader-logo :nth-child(2) { fill: var(--logo-fill); }

/* SVG logo cutouts adapt to background color */
.logo-icon :nth-child(3),
.loader-logo :nth-child(3) { fill: var(--logo-cutout); }
.av-logo :nth-child(3)     { fill: var(--logo-cutout-alt); }
.footer .logo-icon :nth-child(3) { fill: var(--logo-cutout-alt); }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.6;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.12; margin-bottom: 20px;
  /* color set via gradient animation */
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.75;
}
/* ── Animated gradient headings ─────────────────────────────── */
@keyframes kf2-heading-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.grad-text,
.kf2-h1,
.section-title,
.kf2-research-title,
.kf2-proc-title {
  background: linear-gradient(
    110deg,
    var(--text) 0%,
    var(--text) 18%,
    #FFBC00 38%,
    #FFD040 50%,
    #FFBC00 62%,
    var(--text) 82%,
    var(--text) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kf2-heading-shimmer 6s linear infinite;
}

/* Light theme: swap base color for dark text */
[data-theme="light"] .grad-text,
[data-theme="light"] .kf2-h1,
[data-theme="light"] .section-title,
[data-theme="light"] .kf2-research-title,
[data-theme="light"] .kf2-proc-title,
[data-theme="light"] .kf2 .kf2-h1,
[data-theme="light"] .kf2 .kf2-research-title,
[data-theme="light"] .kf2 .kf2-proc-title {
  background: linear-gradient(
    110deg,
    #1C1B2E 0%,
    #1C1B2E 18%,
    #CC9900 38%,
    #FFBC00 50%,
    #CC9900 62%,
    #1C1B2E 82%,
    #1C1B2E 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kf2-heading-shimmer 6s linear infinite;
}
.section-head { text-align: left; margin-bottom: 64px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-sub { margin: 0 auto; }

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%; pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,188,0,0.5);
  border-radius: 50%; pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              border-color 0.3s, transform 0.08s linear;
}
.cursor.hover { width: 16px; height: 16px; background: var(--gold-light); }
.cursor-follower.hover { width: 56px; height: 56px; border-color: var(--gold); }

/* ── Loader ────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
.loader-bar-wrap {
  width: 200px; height: 2px;
  background: var(--loader-track); border-radius: 2px;
  overflow: hidden; margin: 0 auto 16px;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.loader-text {
  font-size: 0.8rem; color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              backdrop-filter 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: var(--navbar-scrolled-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-soft), 0 8px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.2rem; font-weight: 600; color: var(--text);
  line-height: 1.2;
}
.logo-name strong { font-weight: 800; }
.logo-tagline { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.04em; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0%; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta-btn {
  font-size: 0.85rem; font-weight: 700;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a14; border-radius: 50px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,188,0,0.4);
}
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s,
              transform 0.35s var(--ease);
}
.theme-toggle:hover {
  background: rgba(255,188,0,0.12);
  border-color: var(--border);
  color: var(--gold);
  transform: rotate(22deg) scale(1.1);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; margin-left: auto;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.35s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a14; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255,188,0,0.45);
}
.btn-primary.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 50px;
  border: 1.5px solid var(--border-soft);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  padding-top: 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 28px; opacity: 0; transform: translateY(20px);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: eyebrow-blink 2s ease-in-out infinite;
}
@keyframes eyebrow-blink { 0%,100%{opacity:1}50%{opacity:0.3} }
.hero-title {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 900; line-height: 1.08;
  margin-bottom: 28px;
  max-width: 800px;
}
.title-line {
  display: block; overflow: hidden;
  opacity: 0; transform: translateY(60px);
}
.title-line.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-line em { font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(30px);
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0; transform: translateY(30px);
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  opacity: 0; transform: translateY(30px);
}
.hstat { display: flex; flex-direction: column; }
.hstat-val { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hstat-lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.hstat-sep { width: 1px; height: 40px; background: var(--border-soft); }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); z-index: 1;
  opacity: 0;
}
.sh-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: sh-anim 1.8s ease-in-out infinite;
}
@keyframes sh-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── ABOUT ─────────────────────────────────────────────────── */
.about {
  position: relative; padding: 140px 0;
  overflow: hidden;
}
.about-blob {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,188,0,0.07) 0%, transparent 70%);
  pointer-events: none; border-radius: 50%;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
/* About Visual */
.about-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  height: 480px;
}
.av-card {
  position: relative; width: 280px; height: 320px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.av-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.av-card-glow {
  position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold-dark));
  opacity: 0.2; z-index: -1;
}
.av-card-body { text-align: center; padding: 32px; }
.av-logo { width: 72px; height: 72px; margin: 0 auto 20px; }
.av-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.av-metrics { display: flex; gap: 24px; justify-content: center; }
.av-metric { text-align: center; }
.av-metric span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.av-metric small { font-size: 0.72rem; color: var(--text-muted); }
/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow-card);
  z-index: 3;
}
.floating-badge i { color: var(--gold); }
.fb1 { top: 60px; right: 10px; animation: float1 4s ease-in-out infinite; }
.fb2 { bottom: 80px; left: 0; animation: float2 5s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
/* Orbit rings */
.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.or1 {
  width: 360px; height: 360px;
  animation: orbit-spin 20s linear infinite;
}
.or2 {
  width: 460px; height: 460px;
  animation: orbit-spin 30s linear infinite reverse;
}
@keyframes orbit-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
/* About Text */
.about-text {}
.about-desc {
  font-size: 1rem; color: var(--text-muted); line-height: 1.85;
  margin-bottom: 20px;
}
.about-desc em { color: var(--gold); font-style: italic; }
.pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.pillar-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pillar-item:hover { border-color: var(--border); transform: translateX(6px); }
.pillar-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,188,0,0.15), rgba(255,188,0,0.05));
  color: var(--gold); font-size: 1rem;
}
.pillar-item strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.pillar-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── SERVICES ──────────────────────────────────────────────── */
.services {
  position: relative;
  padding: 140px 0;
  background: var(--bg-2);
  overflow: hidden;
}
#servicesCanvas {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 540px;
  height: 90%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 55%);
}
@media (max-width: 1024px) {
  #servicesCanvas { display: none; }
}
.services-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.svc-indicators {
  display: none; /* Hidden on mobile/tablet */
}
.services-right {
  width: 100%;
}
.svc-3d-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.svc-card {
  position: relative; overflow: hidden;
  padding: 36px 32px;
  background: var(--svc-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.svc-card:hover {
  border-color: var(--border);
  background: var(--svc-card-hover-bg);
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}
.svc-card:hover .svc-glow { opacity: 1; }
.svc-card:hover .svc-arrow { opacity: 1; transform: translateX(0); }
.svc-glow {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255,188,0,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.svc-num {
  font-size: 3rem; font-weight: 900;
  color: rgba(255,188,0,0.08);
  position: absolute; top: 20px; right: 24px;
  line-height: 1; letter-spacing: -0.04em;
  transition: color 0.4s;
}
.svc-card:hover .svc-num { color: rgba(255,188,0,0.15); }
.svc-icon {
  width: 52px; height: 52px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,188,0,0.18), rgba(255,188,0,0.06));
  color: var(--gold); font-size: 1.2rem;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.svc-card:hover .svc-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, rgba(255,188,0,0.3), rgba(255,188,0,0.1));
}
.svc-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.svc-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.svc-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #0a0a14;
  font-size: 0.75rem;
  margin-top: 24px;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

/* Desktop 3D stacked card deck & indicators layout */
@media (min-width: 1024px) {
  .services-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .services-left {
    position: sticky;
    top: 20%;
    align-self: start;
  }
  .services-left .section-head {
    margin-bottom: 0;
  }
  .svc-indicators {
    display: flex;
    position: relative;
    margin-top: 40px;
    flex-direction: column;
    gap: 18px;
    padding-left: 24px;
  }
  .svc-ind-item {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .svc-ind-item.active {
    opacity: 1;
    transform: translateX(8px);
  }
  .svc-ind-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold);
  }
  .svc-ind-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
  }
  .svc-indicators-line {
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-soft);
    border-radius: 2px;
  }
  .svc-indicators-fill {
    width: 100%;
    height: 0%;
    background: var(--gold);
    border-radius: inherit;
    transition: height 0.4s var(--ease);
  }
  .services-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .svc-3d-stage {
    display: block; /* Override grid */
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 460px;
    perspective: 1500px;
    transform-style: preserve-3d;
  }
  .svc-3d-stage .svc-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
    transform-origin: center center;
    /* CRITICAL: Disable transform/opacity transitions to avoid fighting GSAP */
    transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
    opacity: 0;
  }
  .svc-3d-stage .svc-card.active {
    pointer-events: auto;
  }
}

/* ── WORK / PORTFOLIO ──────────────────────────────────────── */
.work { position: relative; }
.work-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.work-head {
  padding-top: 0; margin-bottom: 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.work-hint {
  font-size: 0.82rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.work-hint i { color: var(--gold); }
.work-track-wrap { overflow: hidden; padding: 0 32px 0 32px; }
.work-track {
  display: flex; gap: 28px;
  width: max-content;
  will-change: transform;
}
.work-card {
  width: 400px; flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
.wc-img {
  height: 260px; overflow: hidden;
  position: relative;
}
/* FinFlow Banking */
.wc1 { background: linear-gradient(135deg, #0d0a2e, #1a1040, #0d0a2e); }
.wc1 .wc-ui {
  position: absolute; inset: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.wc-nav { display: flex; gap: 6px; }
.wc-nav span {
  width: 8px; height: 8px; border-radius: 50%;
}
.wc-nav span:nth-child(1) { background: #ff5f57; }
.wc-nav span:nth-child(2) { background: #ffbd2e; }
.wc-nav span:nth-child(3) { background: #28c840; }
.wc-hero-block {
  height: 80px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,188,0,0.2), rgba(255,188,0,0.05));
  border: 1px solid rgba(255,188,0,0.2);
}
.wc-row { display: flex; gap: 8px; }
.wc-chip {
  flex: 1; height: 32px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06);
}
.wc-phone-frame {
  flex: 1; border-radius: 16px;
  background: rgba(255,188,0,0.06);
  border: 1px solid rgba(255,188,0,0.15);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 12px;
}
.wc-phone-bar {
  border-radius: 4px; background: rgba(255,188,0,0.2);
}
.wc-phone-bar.b1 { width: 100%; height: 10px; }
.wc-phone-bar.b2 { width: 80%; height: 8px; }
.wc-phone-bar.b3 { width: 60%; height: 8px; }
.wc-phone-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  margin-top: 4px;
}
/* Nexus Dashboard */
.wc2 { background: linear-gradient(135deg, #060d1a, #0a1628, #060d1a); }
.wc2 .wc-ui {
  position: absolute; inset: 0;
  display: flex; gap: 0;
}
.wc-sidebar {
  width: 60px; height: 100%;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 8px; padding: 16px 10px;
}
.wcs-item {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.wcs-item.active { background: var(--gold); }
.wc-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wc-chart-area {
  flex: 1; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-end; padding: 12px; gap: 6px;
}
.wc-bar-chart { display: flex; align-items: flex-end; gap: 6px; width: 100%; height: 80px; }
.wcb {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--gold-dark), var(--gold));
  opacity: 0.7;
}
.wc-kpi-row { display: flex; gap: 8px; }
.wc-kpi { flex: 1; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.04); }
/* Lumina Retail */
.wc3 { background: linear-gradient(135deg, #1a0d0a, #2a1412, #1a0d0a); }
.wc3 .wc-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.wc-retail-header {
  height: 36px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wc-logo-pill {
  width: 80px; height: 14px;
  background: rgba(255,188,0,0.3); border-radius: 7px;
}
.wc-nav-dots { display: flex; gap: 16px; }
.wc-nav-dots span {
  width: 32px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.wc-product-grid { flex: 1; display: flex; gap: 8px; padding: 12px 16px; }
.wc-product {
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(200,100,60,0.2), rgba(200,60,40,0.1));
  border: 1px solid rgba(200,100,60,0.15);
}
.wc-product.tall { flex: 1.2; }
.wc-product-col { flex: 0.8; display: flex; flex-direction: column; gap: 8px; }
.wc-product-col .wc-product { flex: 1; }
/* Forge Design System */
.wc4 { background: linear-gradient(135deg, #0a0d14, #0e1220, #0a0d14); }
.wc4 .wc-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.wc-ds-header {
  height: 36px; padding: 0 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wc-ds-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.wc-ds-dot.red { background: #ff5f57; }
.wc-ds-dot.yellow { background: #ffbd2e; }
.wc-ds-dot.green { background: #28c840; }
.wc-ds-title {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.08); margin-left: 8px;
  max-width: 100px;
}
.wc-ds-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px; padding: 12px;
}
.wc-ds-comp {
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.btn-comp { border-color: rgba(255,188,0,0.3); }
.btn-comp::after {
  content: ''; width: 60%; height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}
.inp-comp::after {
  content: ''; width: 75%; height: 2px;
  background: rgba(255,255,255,0.2);
}
.card-comp { grid-column: span 1; grid-row: span 1; }
.color-comp { gap: 0; overflow: hidden; }
.color-comp span { flex: 1; height: 100%; }
/* Work card info */
.wc-info { padding: 24px 28px; }
.wc-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(255,188,0,0.1);
  border-radius: 50px;
}
.wc-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.wc-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
/* Scrollbar indicator */
.work-scrollbar {
  height: 2px; background: var(--work-scrollbar-track);
  margin: 24px 32px 0; border-radius: 2px;
}
.work-scrollbar-thumb {
  height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px; transition: width 0.1s;
}

/* ── PROCESS ───────────────────────────────────────────────── */
.process {
  position: relative; padding: 140px 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
#processCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0.45;
  z-index: 0;
}
.process .container { position: relative; z-index: 1; }
.process-list { max-width: 860px; }
.process-step {
  display: grid;
  grid-template-columns: 80px 72px 1fr;
  gap: 0 28px; align-items: flex-start;
  margin-bottom: 0;
}
.ps-left {
  display: flex; flex-direction: column; align-items: center;
}
.ps-num {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: 12px; transition: color 0.4s;
  padding-top: 20px;
}
.ps-line {
  flex: 1; width: 1px; min-height: 80px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-bottom: 0;
}
.ps-line.last { background: transparent; }
.ps-icon-wrap {
  display: flex; justify-content: center;
  padding-top: 16px;
}
.ps-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: background 0.4s, border-color 0.4s, color 0.4s,
              transform 0.4s var(--ease), box-shadow 0.4s;
  flex-shrink: 0;
}
.ps-content {
  padding: 16px 0 60px;
  opacity: 0.4; transform: translateX(20px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.ps-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.ps-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
/* Active state */
.process-step.active .ps-num { color: var(--gold); }
.process-step.active .ps-icon {
  background: linear-gradient(135deg, rgba(255,188,0,0.2), rgba(255,188,0,0.06));
  border-color: var(--border);
  color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(255,188,0,0.2);
}
.process-step.active .ps-content { opacity: 1; transform: translateX(0); }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials {
  padding: 140px 0;
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
.testi-bg-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,188,0,0.06), transparent 70%);
  pointer-events: none;
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  position: relative; overflow: hidden;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.4s, box-shadow 0.4s;
  opacity: 0; transform: translateY(40px);
  /* GSAP controls opacity/transform; hover uses box-shadow & border only initially */
}
.testi-card.anim-done { transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.testi-card.anim-done:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow-card); }
.testi-card.featured {
  border-color: var(--border);
  background: linear-gradient(160deg, rgba(255,188,0,0.06), var(--bg-card));
}
.testi-card.featured:hover { box-shadow: var(--shadow-gold), var(--shadow-card); }
.testi-quote-mark {
  font-size: 5rem; line-height: 0.8;
  color: rgba(255,188,0,0.12);
  font-family: Georgia, serif; margin-bottom: 12px;
}
.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; }
.testi-card blockquote {
  font-size: 0.92rem; line-height: 1.8; color: var(--text-muted);
  margin-bottom: 28px; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.ta-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #0a0a14;
  flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg, #FFBC00, #FFD040); }
.av2 { background: linear-gradient(135deg, #CC9900, #FFBC00); }
.av3 { background: linear-gradient(135deg, #FFD040, #FFBC00); }
.testi-author strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.testi-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact {
  position: relative; padding: 140px 0;
  overflow: hidden;
}
#contactCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0.4;
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: flex-start;
}
.contact-desc {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.ci {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.ci:hover { border-color: var(--border); color: var(--text); transform: translateX(4px); }
.ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,188,0,0.15), rgba(255,188,0,0.05));
  color: var(--gold); font-size: 0.9rem;
}
.social-row { display: flex; gap: 12px; }
.soc-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text-muted); font-size: 0.9rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.soc-btn:hover {
  background: rgba(255,188,0,0.1); border-color: var(--border);
  color: var(--gold); transform: translateY(-3px);
}
/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,188,0,0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--input-placeholder); }
.form-field select option { background: var(--bg-2); color: var(--text); }
.form-success {
  display: none; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(39,196,106,0.1); border: 1px solid rgba(39,196,106,0.3);
  color: #27c46a; font-size: 0.88rem; font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.1rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 36px;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; margin-bottom: 56px;
}
.footer-brand {}
.footer-desc {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.75; max-width: 320px; margin-top: 20px;
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fc h5 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.fc a {
  display: block; font-size: 0.88rem; color: var(--text-muted);
  margin-bottom: 10px; transition: color 0.25s, transform 0.25s var(--ease);
}
.fc a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border-soft);
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-love span { color: var(--gold); }

/* ── GSAP Initial States (elements before animation) ───────── */
.svc-card { opacity: 0; transform: translateY(50px) rotateX(15deg); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-3d-stage { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed;
    inset: 0; background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    z-index: 700; padding: 100px 32px 40px;
    align-items: flex-start; gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.6rem; font-weight: 700; color: var(--text); }
  .nav-cta-btn { font-size: 1rem; }
  .hamburger { display: flex; z-index: 750; position: relative; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 320px; }
  .svc-3d-stage { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .work-card { width: 320px; }
  .process-step { grid-template-columns: 56px 56px 1fr; gap: 0 16px; }
  .contact-form { padding: 28px; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .work-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .hstat-val { font-size: 1.6rem; }
  .work { height: 600vh; }
}

/* ============================================================
   K2 HERO SECTION ADDITIONS (From Website-v2)
   ============================================================ */

.kf2 {
  --bg: #0E0E0E;
  --bg-2: #161616;
  --bg-3: #1F1F1F;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --text: #F5F5F0;
  --text-2: rgba(245,245,240,0.65);
  --text-3: rgba(245,245,240,0.4);
  --accent: #FFBC00;
  --accent-2: #E0A500;
  --accent-text: #0E0E0E;
  --nav-bg: rgba(14,14,14,0.92);
  --border-radius-lg: 24px;
  --border-radius-md: 12px;
  --font-sans: "Manrope", sans-serif;
  color: var(--text);
  font-family: var(--font-sans);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .kf2 {
  --bg: #FAFAFA;
  --bg-2: #F0F0EF;
  --bg-3: #E5E5E4;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.16);
  --text: #0E0E0E;
  --text-2: rgba(14,14,14,0.65);
  --text-3: rgba(14,14,14,0.4);
  --accent: #FFBC00;
  --accent-2: #E0A500;
  --accent-text: #0E0E0E;
  --nav-bg: rgba(250,250,250,0.92);
}

/* === STANDARD REVEAL === */
.kf2-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.kf2-reveal.in { opacity: 1; transform: translateY(0); }
.kf2-reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.kf2-reveal-scale.in { opacity: 1; transform: scale(1); }
.kf2-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.kf2-stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.kf2-stagger.in > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.kf2-stagger.in > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.kf2-stagger.in > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.kf2-stagger.in > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.kf2-stagger.in > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* === SKELETON === */
@keyframes kf2-shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.kf2-skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, rgba(255,255,255,0.04) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: kf2-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--border-radius-md);
}
.kf2-skel-wrap { transition: opacity 0.45s ease-out; }
.kf2-skel-wrap.hidden { display: none; }
.kf2-content-wrap { opacity: 0; transition: opacity 0.5s ease-out; }
.kf2-content-wrap.shown { opacity: 1; }
.kf2-sk-line { height: 14px; margin-bottom: 12px; }
.kf2-sk-line-sm { height: 10px; margin-bottom: 8px; }
.kf2-sk-line-lg { height: 24px; margin-bottom: 16px; }
.kf2-sk-circle { border-radius: 50%; }

/* === HERO === */
.kf2-hero { padding: 8rem 2rem 6rem; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.kf2-hero .container {
  width: 100%; position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-right: 0;
}
.kf2-hero-left { min-width: 0; }

/* ── Hero card carousel (right col — bleeds to viewport edge) ── */
.kf2-hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: clamp(340px, 52vh, 460px);
  overflow: visible;
  position: relative;
  margin-right: -2rem;
}
.kf2-hc-card {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.55s cubic-bezier(0.4,0,0.2,1);
}
.kf2-hc-card.collapsed { width: 58px; }
.kf2-hc-card.active    { width: 210px; }
.kf2-hc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.kf2-hc-overlay {
  position: absolute; inset: 0;
  transition: opacity 0.4s;
}
.kf2-hc-card.collapsed .kf2-hc-overlay { opacity: 0.35; }
.kf2-hc-card.active    .kf2-hc-overlay { opacity: 0.55; }
.kf2-hc-vert {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: opacity 0.3s;
  font-family: var(--font-sans);
}
.kf2-hc-card.active .kf2-hc-vert { opacity: 0; }
.kf2-hc-icon {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s 0.2s;
}
.kf2-hc-card.active .kf2-hc-icon { opacity: 1; }
.kf2-hc-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 16px;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s 0.15s;
}
.kf2-hc-card.active .kf2-hc-content { opacity: 1; transform: translateY(0); }
.kf2-hc-title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 5px; line-height: 1.2;
  font-family: var(--font-sans);
}
.kf2-hc-desc { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 10px; }
.kf2-hc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px; padding: 3px 10px;
  font-size: 10px; color: #fff; font-weight: 500;
}
.kf2-hc-badge span { color: #FFBC00; font-weight: 700; }
@keyframes kf2-hc-bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-9px);} }

@media (max-width: 900px) {
  .kf2-hero .container { grid-template-columns: 1fr; }
  .kf2-hero-right { display: none; }
}
#kf2-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 1; }
#kf2-plasma-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: 0; pointer-events: none; }

.kf2-hero { background: transparent; }

.kf2-hero-content { position: relative; z-index: 2; max-width: 580px; }
.kf2-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 14px; background: var(--bg-2) !important; color: var(--text-2); border: 0.5px solid var(--line-2); border-radius: 999px; margin-bottom: 1.5rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.kf2-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: kf2-pulse 2s ease-in-out infinite; }
.kf2-h1 { font-size: 51.2px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.kf2-h1 em { font-style: normal; }
.kf2-hero-sub { font-size: 16px; color: var(--text-2); line-height: 1.65; margin-bottom: 2rem; max-width: 460px; }
.kf2-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kf2-btn-primary { font-size: 14px; padding: 12px 24px; background: var(--accent); color: var(--accent-text); border: none; border-radius: 999px; cursor: pointer; font-weight: 500; transition: background 0.2s, transform 0.15s; font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 8px; }
.kf2-btn-primary:hover { background: var(--accent-2); }
.kf2-btn-primary:active { transform: scale(0.97); }
.kf2-btn-outline { font-size: 14px; padding: 12px 24px; background: transparent; color: var(--text); border: 0.5px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: all 0.2s; font-family: var(--font-sans); }
.kf2-btn-outline:hover { background: var(--bg-2); border-color: var(--text-2); }
.kf2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  padding-top: 2rem;
  position: relative;
  z-index: 2;
}
.kf2-stat {
  padding: 1rem 0.5rem 1rem 1rem;
  border-right: 0.5px solid var(--line);
  position: relative;
}

.kf2-stat:last-child { border-right: none; }
.kf2-stat:first-child { padding-left: 0; }
.kf2-stat-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.kf2-stat-count { color: var(--accent); }
.kf2-stat-num em { color: var(--accent); font-style: normal; font-size: 0.65em; margin-left: 2px; }
.kf2-stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@media (max-width: 540px) {
  .kf2-h1 { font-size: 32px; }
  .kf2-stats { grid-template-columns: 1fr 1fr; }
  .kf2-stat { padding: 1rem 0.75rem; border-right: none; border-bottom: 0.5px solid var(--line); }
  .kf2-stat:nth-child(odd) { padding-left: 0; }
  .kf2-stat:last-child { border-bottom: none; }
}


/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.kf2-marquee { width: 100vw; margin-left: calc(50% - 50vw); padding: 1.5rem 0; overflow: hidden; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); background: var(--bg); }
.kf2-marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: kf2-scroll 28s linear infinite; width: max-content; }
.kf2-marquee-item { font-size: 28px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; display: flex; align-items: center; gap: 3rem; }
.kf2-marquee-dot { color: var(--accent); font-size: 14px; }
@keyframes kf2-scroll { to { transform: translateX(-50%); } }

/* ============================================================
   KF2 SECTION BASE
   ============================================================ */
.kf2-section { padding: 4.5rem 2rem; border-bottom: 0.5px solid var(--line); min-height: 200px; position: relative; }
.kf2-inner-section { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 0.5px solid var(--line); }

/* ============================================================
   RESEARCH SECTION
   ============================================================ */
.kf2-research-top { margin-bottom: 2.5rem; }
.kf2-research-title { font-size: clamp(26px,4vw,51.2px); font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.025em; }
.kf2-research-desc { font-size: 14px; color: var(--text-2); max-width: 560px; line-height: 1.7; }
.kf2-research-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.kf2-chart-wrap { position: relative; width: 100%; border-radius: var(--border-radius-lg); overflow: hidden; }
.kf2-research .kf2-chart-wrap { width: 60%; }
.kf2-chart-wrap canvas { width: 100%; height: auto; display: block; }
.kf2-research-side { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 1.5rem; }
.kf2-research-card { background: var(--accent); color: var(--accent-text); border-radius: 16px; padding: 1.75rem 1.5rem; width: 100%; }
.kf2-research-card-label { font-size: 13px; font-weight: 500; margin-bottom: 1rem; opacity: 0.75; line-height: 1.4; }
.kf2-research-card-num { font-size: 54px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.9rem; }
.kf2-research-card-sub { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kf2-research-card-sub i { font-size: 16px; }
.kf2-research-arrow-svg { width: 179px; height: 72px; opacity: 0.9; margin-left: -0.5rem; }
[data-theme="light"] .kf2 .kf2-research-card { box-shadow: 0 8px 32px rgba(255,188,0,0.18); }
@media (max-width: 700px) {
  .kf2-research-body { grid-template-columns: 1fr; }
  .kf2-research-side { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .kf2-research-card { max-width: 300px; }
  .kf2-research-arrow-svg { display: none; }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.kf2-proc-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }
.kf2-proc-left { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; }
.kf2-proc-chart-box { position: relative; width: 100%; border-radius: 14px; overflow: hidden; }
.kf2-proc-chart-box canvas { width: 100%; height: auto; display: block; }
.kf2-proc-chart-label { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.35; }
.kf2-proc-arr { width: 179px; height: 72px; opacity: 0.9; }
.kf2-proc-right { display: flex; flex-direction: column; gap: 1.5rem; }
.kf2-proc-title { font-size: clamp(28px,4vw,51.2px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.kf2-proc-sub { font-size: 14px; color: var(--text-2); max-width: 480px; line-height: 1.72; }
.kf2-proc-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.kf2-proc-card { grid-column: span 2; border: 1px solid rgba(255,188,0,0.55); border-radius: 13px; padding: 1.6rem 1rem 1.4rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.65rem; background: rgba(255,188,0,0.03); transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease; cursor: default;background: #0d0c1a; border: 0;  }
svg.kf2-proc-arr {transform: rotateY(195deg);}
.kf2-proc-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(255,188,0,0.14); }
.kf2-proc-card:nth-child(4),
.kf2-proc-card:nth-child(5) { grid-column: span 2; }

.kf2-proc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,188,0,0.07);
  border: 1px solid rgba(255,188,0,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.4) rotate(-8deg);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.kf2-proc-card:hover .kf2-proc-icon {
  background: rgba(255,188,0,0.14);
  border-color: rgba(255,188,0,0.55);
  box-shadow: 0 0 18px rgba(255,188,0,0.18);
}
@keyframes kf2-icon-pop {
  0%   { opacity:0; transform:scale(0.4) rotate(-8deg); }
  60%  { opacity:1; transform:scale(1.12) rotate(3deg); }
  80%  { transform:scale(0.95) rotate(-1deg); }
  100% { opacity:1; transform:scale(1) rotate(0deg); }
}
.kf2-proc-card.kf2-proc-anim .kf2-proc-icon { animation: kf2-icon-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.kf2-proc-card-name { font-size: 16px; font-weight: 700; color: var(--accent); }
.kf2-proc-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }
[data-theme="light"] .kf2 .kf2-proc-card { background: rgba(255,255,255,0.65) !important; border-color: rgba(255,188,0,0.65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (max-width: 860px) {
  .kf2-proc-layout { grid-template-columns: 1fr; }
  .kf2-proc-left { padding-top: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .kf2-proc-chart-box { flex: 1 1 280px; }
  .kf2-proc-arr { display: none; }
}
@media (max-width: 520px) {
  .kf2-proc-grid { grid-template-columns: repeat(2,1fr); }
  .kf2-proc-card, .kf2-proc-card:nth-child(4), .kf2-proc-card:nth-child(5) { grid-column: span 1; }
}

/* ============================================================
   RESEARCH + PROCESS — sticky scroll reveal
   Each panel sticks at top:0. Process slides up and covers
   Research as you scroll, showing only one at a time.
   ============================================================ */
.kf2-rp-section { padding: 0; border-bottom: 0.5px solid var(--line); position: relative; }

/* Sticky viewport — panels crossfade inside here */
.kf2-rp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Both panels fill the sticky viewport, stacked on top of each other */
.kf2-rp-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: #0d0c1a;
  will-change: opacity, transform;
}
[data-theme="light"] .kf2-rp-panel { background: #F4F3FF; }
.kf2-rp-panel > .container { width: 100%; }

#kf2-panel-research { z-index: 1; }
#kf2-panel-process  { z-index: 2; opacity: 0; }

/* Extra scroll distance that drives the crossfade animation */
.kf2-rp-spacer { height: 150vh; }

/* ── Scroll progress nav ─────────────────────────────────────── */
.kf2-rp-nav {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.kf2-rp-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.kf2-rp-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}
.kf2-rp-nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  border: 1.5px solid var(--line-2);
  transition: background 0.35s, transform 0.35s, border-color 0.35s;
  flex-shrink: 0;
}
.kf2-rp-nav-item.active .kf2-rp-nav-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.5);
}
.kf2-rp-nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.35s;
  font-family: var(--font-sans);
}
.kf2-rp-nav-item.active .kf2-rp-nav-label { color: var(--text-2); }
.kf2-rp-nav-track {
  width: 2px; height: 44px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  align-self: flex-end;
  margin-right: 3px;
}
.kf2-rp-nav-fill {
  width: 100%; height: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.1s linear;
}
@media (max-width: 700px) { .kf2-rp-nav { display: none; } }

/* Content entrance animations (triggered by IntersectionObserver) */
.kf2-rp-anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.kf2-rp-anim.from-left  { transform: translateX(-44px); }
.kf2-rp-anim.from-right { transform: translateX(44px); }
.kf2-rp-anim.visible    { opacity: 1; transform: translate(0,0); }
