/* ============================================
   Knowledge Movement — Advanced Edition
   3D, motion, glassmorphism, gradient mesh
   ============================================ */

:root {
  --bg-deep: #050816;
  --bg-deep-2: #0a0e1f;
  --bg-card: rgba(16, 22, 48, 0.55);
  --bg-card-2: rgba(20, 26, 56, 0.7);
  --color-primary: #6c8cff;
  --color-primary-2: #4f6ee0;
  --color-accent: #ffb347;
  --color-accent-2: #ff8e53;
  --color-magenta: #d36bff;
  --color-cyan: #4cd9ff;
  --color-text: #e8ebf5;
  --color-text-dim: #a0a8c0;
  --color-text-muted: #6b7390;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --glow-primary: 0 0 60px rgba(108, 140, 255, 0.45);
  --glow-accent: 0 0 60px rgba(255, 179, 71, 0.4);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1280px;
  --header-h: 84px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-1: linear-gradient(135deg, #6c8cff 0%, #d36bff 50%, #ffb347 100%);
  --gradient-2: linear-gradient(135deg, #4cd9ff 0%, #6c8cff 100%);
  --gradient-3: radial-gradient(circle at 30% 20%, rgba(108,140,255,0.4), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(211,107,255,0.3), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255,179,71,0.2), transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

*::selection { background: var(--color-accent); color: var(--bg-deep); }

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--bg-deep);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

/* Animated gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-3);
  background-size: 200% 200%;
  animation: meshShift 20s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: -1;
  pointer-events: none;
}

@keyframes meshShift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  50% { background-position: 100% 100%, 0% 0%, 30% 70%; }
}

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

a { color: var(--color-primary); text-decoration: none; transition: color 0.3s var(--ease); cursor: none; }
a:hover { color: var(--color-accent); }

button { cursor: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; color: var(--color-text-dim); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; position: relative; }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  display: inline-block;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Custom Cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: transform 0.15s var(--ease), width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  background: rgba(255,179,71,0.2);
  border-color: var(--color-accent);
}
@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Three.js canvas ===== */
#three-canvas {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: all 0.4s var(--ease);
  background: rgba(5, 8, 22, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}
.site-header.scrolled {
  background: rgba(5, 8, 22, 0.85);
  height: 70px;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #050816;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: logoFloat 5s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(108, 140, 255, 0.3);
  border: 1px solid var(--color-border-strong);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a {
  color: var(--color-text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--color-text); }
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gradient-2);
  transition: all 0.4s var(--ease);
  transform: translateX(-50%);
}
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); margin: 5px auto;
  transition: 0.3s var(--ease); border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons (magnetic + gradient) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  background: var(--gradient-1);
  background-size: 200% 200%;
  color: #fff;
  border: 0;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(108, 140, 255, 0.5);
  animation: gradientShift 6s ease infinite;
  will-change: transform;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(211, 107, 255, 0.6);
  color: #fff;
}
.btn:hover::before { opacity: 1; }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-strong);
  animation: none;
  box-shadow: none;
}
.btn-ghost::before { display: none; }
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(255, 179, 71, 0.3);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 140, 255, 0.1);
  border: 1px solid rgba(108, 140, 255, 0.3);
  border-radius: 100px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(255, 179, 71, 0); }
}

.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #b0b8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scene {
  position: relative;
  aspect-ratio: 1;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}

/* Hero meta strip */
.hero-meta {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 2;
}
.hero-meta-inner {
  display: flex; justify-content: space-around; align-items: center;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap; gap: 1rem;
}
.hero-meta-item { text-align: center; }
.hero-meta-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-1);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  line-height: 1;
}
.hero-meta-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ===== Sections ===== */
section { padding: 7rem 0; position: relative; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 4rem; position: relative; z-index: 2; }
.section-header p { font-size: 1.1rem; color: var(--color-text-dim); }

/* ===== Glass Cards with 3D tilt ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; perspective: 1500px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.tilt-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
  overflow: hidden;
  will-change: transform;
}
.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 140, 255, 0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.tilt-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(108, 140, 255, 0.4);
}
.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { transform: translateZ(30px); position: relative; z-index: 1; }

.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.2), rgba(211, 107, 255, 0.2));
  border: 1px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  transition: all 0.5s var(--ease);
}
.tilt-card:hover .card-icon {
  background: var(--gradient-1);
  color: #fff;
  transform: translateZ(60px) rotateZ(-8deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(108, 140, 255, 0.5);
}
.tilt-card h3 { color: var(--color-text); }
.tilt-card p { color: var(--color-text-dim); margin-bottom: 0; font-size: 0.95rem; }

/* ===== Floating shapes ===== */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.floating-shape.f1 {
  width: 400px; height: 400px;
  background: var(--color-primary);
  top: 10%; left: -10%;
  animation: floatY 12s ease-in-out infinite;
}
.floating-shape.f2 {
  width: 350px; height: 350px;
  background: var(--color-magenta);
  bottom: 5%; right: -8%;
  animation: floatY 14s ease-in-out infinite reverse;
}
.floating-shape.f3 {
  width: 300px; height: 300px;
  background: var(--color-accent);
  top: 40%; right: 30%;
  opacity: 0.25;
  animation: floatY 10s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ===== Service rows (advanced) ===== */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient-1);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
  transform-origin: top;
}
.service-row:hover {
  transform: translateX(8px);
  border-color: var(--color-border-strong);
  background: var(--bg-card-2);
}
.service-row:hover::before { transform: scaleY(1); }

.service-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(108, 140, 255, 0.1);
  border: 1px solid var(--color-border-strong);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  transition: all 0.5s var(--ease);
}
.service-row:hover .service-num {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  transform: rotate(360deg);
  box-shadow: var(--glow-primary);
}
.service-row h3 { color: var(--color-text); margin-bottom: 0.35rem; }
.service-row p { margin-bottom: 0.5rem; color: var(--color-text-dim); }
.service-meta {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== CTA Strip ===== */
.cta-strip {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.cta-strip-inner {
  position: relative;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.15), rgba(211, 107, 255, 0.15));
  border: 1px solid var(--color-border-strong);
  border-radius: 32px;
  padding: 4rem 2rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.cta-strip-inner::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 179, 71, 0.3), transparent 30%);
  animation: rotateGlow 8s linear infinite;
  z-index: -1;
}
@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}
.cta-strip h2 { color: var(--color-text); }
.cta-strip p { color: var(--color-text-dim); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }

/* ===== Pillars (about) ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.pillar {
  padding: 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50px; height: 50px;
  background: var(--gradient-1);
  filter: blur(40px);
  opacity: 0.5;
  transition: all 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: var(--color-border-strong); }
.pillar:hover::before { width: 150px; height: 150px; opacity: 0.7; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { font-size: 0.95rem; margin: 0; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--color-text);
  transition: all 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.15);
  background: var(--bg-card-2);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }
.form-message.success {
  background: rgba(76, 217, 255, 0.1);
  border: 1px solid rgba(76, 217, 255, 0.3);
  color: var(--color-cyan);
  display: block;
}
.form-message.error {
  background: rgba(255, 99, 99, 0.1);
  border: 1px solid rgba(255, 99, 99, 0.3);
  color: #ff8585;
  display: block;
}

/* ===== Contact info ===== */
.contact-info { display: grid; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.contact-item:hover {
  border-color: var(--color-border-strong);
  transform: translateX(6px);
}
.contact-item-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-1);
  background-size: 200%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

/* ===== Calendly wrap ===== */
.calendly-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 720px;
  padding: 1rem;
}

.booking-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.booking-tab {
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-dim);
  transition: all 0.4s var(--ease);
}
.booking-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-2px);
}
.booking-tab.active {
  background: var(--gradient-1);
  background-size: 200%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-primary);
}
.booking-panel { display: none; animation: fadeUp 0.5s var(--ease); }
.booking-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.setup-note {
  background: rgba(255, 179, 71, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  color: var(--color-text-dim);
}
.setup-note strong { color: var(--color-text); }
.setup-note code {
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--color-accent);
  font-size: 0.88em;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.stat-item {
  padding: 2rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}
.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-border-strong);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  background: var(--gradient-1);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  line-height: 1;
  animation: gradientShift 6s ease infinite;
}
.stat-label {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Page header (with 3D scene) ===== */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header .container { position: relative; z-index: 2; }
.page-header-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}
.page-header-scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(5,8,22,0.4) 70%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-header h1 {
  background: linear-gradient(180deg, #ffffff 0%, #a0a8c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--color-text-dim);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-text-dim); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ===== Content prose ===== */
.content-prose { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.content-prose p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}
.content-prose h2 {
  margin-top: 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #a0a8c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.content-prose strong { color: var(--color-text); }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.95));
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.site-footer a {
  color: var(--color-text-dim);
  display: block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.site-footer a:hover { color: var(--color-accent); transform: translateX(4px); }
.site-footer .logo { color: var(--color-text); margin-bottom: 1.25rem; }
.site-footer p { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all 0.4s var(--ease);
}
.social-row a:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-3px) rotate(8deg);
  box-shadow: var(--glow-primary);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: var(--gradient-1);
  background-size: 200%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  animation: gradientShift 3s ease infinite, loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(108, 140, 255, 0.6); }
}
.loader-bar {
  width: 180px; height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  transform: translateX(-100%);
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBar {
  to { transform: translateX(100%); }
}

/* ===== Holographic card ===== */
.holo-card {
  position: relative;
  background: linear-gradient(135deg, rgba(108,140,255,0.08), rgba(211,107,255,0.08), rgba(255,179,71,0.08));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.holo-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(108,140,255,0.4), transparent 30%, rgba(211,107,255,0.3), transparent 60%, rgba(255,179,71,0.3), transparent);
  animation: holoRotate 8s linear infinite;
  z-index: 0;
}
.holo-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-deep);
  border-radius: calc(var(--radius-lg) - 1px);
  z-index: 1;
}
.holo-card > * { position: relative; z-index: 2; }
@keyframes holoRotate { to { transform: rotate(360deg); } }

/* ===== Marquee / scrolling badges ===== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(90deg, transparent, rgba(108,140,255,0.05), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marqueeMove 30s linear infinite;
  white-space: nowrap;
  padding-left: 3rem;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.marquee-item::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-left: 1rem;
}
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ===== Glowing border button ===== */
.btn-glow {
  position: relative;
  background: var(--bg-deep);
  color: var(--color-text);
  border: 0;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(from 0deg, #6c8cff, #d36bff, #ffb347, #4cd9ff, #6c8cff);
  animation: holoRotate 4s linear infinite;
  z-index: -1;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: var(--bg-deep);
  z-index: -1;
}

/* ===== Founder card (About page) ===== */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: var(--gradient-1);
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--gradient-1) border-box;
  background-clip: border-box;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(108, 140, 255, 0.4);
}
.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-1);
  background-size: 200%;
  animation: gradientShift 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 0;
}
.founder-card h3 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.founder-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ===== Hero portrait (replaces 3D scene on About if needed) ===== */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), var(--glow-primary);
  transform: perspective(1500px) rotateY(-6deg);
  transition: transform 0.6s var(--ease);
}
.hero-portrait:hover { transform: perspective(1500px) rotateY(0deg) scale(1.02); }
.hero-portrait img { width: 100%; height: auto; display: block; }
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(108, 140, 255, 0.15) 100%);
  pointer-events: none;
}

/* ===== Image gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 520px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.gallery-item:nth-child(1) { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 22, 0.85) 100%);
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem; right: 1.25rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  z-index: 2;
  transform: translateY(8px);
  opacity: 0.9;
  transition: all 0.4s var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; height: auto; }
  .gallery-item:nth-child(1) { grid-row: auto; grid-column: 1 / 3; }
}

/* ===== Founder card responsive ===== */
@media (max-width: 700px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .founder-photo { max-width: 220px; margin: 0 auto; }
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-1);
  background-size: 200%;
  z-index: 101;
  transition: width 0.1s linear;
  animation: gradientShift 6s ease infinite;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  section { padding: 5rem 0; }
}

@media (max-width: 900px) {
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .cursor-dot, .cursor-ring { display: none; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 2rem) 0 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-scene { max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
  .hero h1 { font-size: 2.5rem; }
  .hero p.lead { font-size: 1.05rem; }
  .hero-meta { position: relative; bottom: auto; margin-top: 2rem; }
  .hero-meta-inner { padding: 1rem; gap: 0.5rem; }
  .hero-meta-num { font-size: 1.35rem; }
  .hero-meta-label { font-size: 0.7rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-toggle { display: block; z-index: 101; }
  .nav {
    position: fixed;
    inset: 0 0 0 25%;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; padding: 0.75rem 0; }
  .nav .btn { margin-top: 1rem; }

  .page-header { padding: calc(var(--header-h) + 3rem) 0 3rem; min-height: 380px; }
  .page-header-scene { opacity: 0.5; }

  .service-row { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; }
  .service-num { margin: 0 auto; width: 60px; height: 60px; font-size: 1.4rem; }
  .service-row h3 { font-size: 1.2rem; }
  .service-row:hover { transform: none; }

  .grid-3, .grid-2 { gap: 1.25rem; }
  .tilt-card { padding: 1.5rem; }
  .tilt-card:hover { transform: none !important; }

  .stat-num { font-size: 2.5rem; }
  section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .floating-shape { filter: blur(60px); opacity: 0.3; }
  .floating-shape.f1 { width: 280px; height: 280px; }
  .floating-shape.f2 { width: 240px; height: 240px; }
  .floating-shape.f3 { width: 200px; height: 200px; }
}

@media (max-width: 600px) {
  :root { --container: 100%; --header-h: 64px; }
  h1 { font-size: 2.1rem; line-height: 1.1; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.2rem; }
  p { font-size: 0.95rem; }
  .container { padding: 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .footer-grid .social-row { justify-content: center; }
  .cta-strip-inner { padding: 2.5rem 1.25rem; border-radius: 20px; }
  .hero h1 { font-size: 2rem; }
  .hero-scene { max-width: 260px; }
  .hero-meta-inner { padding: 0.85rem; }
  .hero-meta-num { font-size: 1.15rem; }
  .hero-meta-label { font-size: 0.65rem; letter-spacing: 0.04em; }
  .booking-tabs { gap: 0.4rem; }
  .booking-tab { padding: 0.65rem 1rem; font-size: 0.85rem; }
  .btn { padding: 0.85rem 1.4rem; font-size: 0.9rem; }
  .logo { font-size: 1.05rem; }
  .logo-mark { width: 40px; height: 40px; }
  section { padding: 3rem 0; }
  .stats { gap: 1rem; }
  .stat-item { padding: 1.25rem 0.75rem; }
  .stat-num { font-size: 2rem; }
  .form-group input, .form-group textarea, .form-group select { padding: 0.85rem 1rem; }
  .page-header { min-height: 320px; padding: calc(var(--header-h) + 2rem) 0 2.5rem; }
  .page-header p { font-size: 1rem; }
  .content-prose p { font-size: 1rem; }
  .gallery-grid { grid-template-rows: 180px 180px 180px; }
  .calendar-frame { height: 600px; }
  .calendar-frame-wrap { min-height: 600px; }
}

/* Touch-device: kill expensive hovers */
@media (hover: none) {
  .tilt-card:hover { transform: none !important; box-shadow: none; }
  .btn:hover { transform: none !important; }
  .service-row:hover { transform: none; }
  .pillar:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .floating-shape, .logo-mark { animation: none; }
}
