/* ==========================================================================
   KEBS AFRICA — Design Tokens
   Palette: warm paper white + deep violet + electric blue, ink text.
   Type: Playfair Display (display) / Montserrat (body + UI)
   Signature: interlocking "strand" weave motif (PatternDivider) — a modern,
   non-literal nod to woven African textile structure, used as a rare accent.
   ========================================================================== */
:root {
  --paper: #FFFFFF;
  --paper-soft: #FAF8FC;
  --paper-tint: #F3EEFA;
  --ink: #15121D;
  --ink-soft: #514B60;
  --ink-faint: #948D9E;
  --violet: #5B2A9D;
  --violet-deep: #2E1152;
  --violet-tint: #EFE7FA;
  --electric: #2E5CFF;
  --electric-deep: #1935A6;
  --electric-tint: #E9EEFF;
  --line: #E7E1F0;
  --gold-hair: #C9A15A; /* used at 1% opacity moments only, ornamental hairline */

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -25px rgba(46, 17, 82, 0.25);
  --shadow-card: 0 12px 32px -18px rgba(46, 17, 82, 0.28);

  --container: 1240px;
  color-scheme: light;
}

[data-theme='dark'] {
  --paper: #120E1B;
  --paper-soft: #171225;
  --paper-tint: #1D1730;
  --ink: #F5F2FA;
  --ink-soft: #C9C2D6;
  --ink-faint: #837C93;
  --violet: #9B6FE0;
  --violet-deep: #C6A6F5;
  --violet-tint: #241A38;
  --electric: #6E8DFF;
  --electric-deep: #A9BAFF;
  --electric-tint: #1A2140;
  --line: #2B2440;
  --shadow-soft: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--electric), var(--violet));
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
.section--soft { background: var(--paper-soft); }
.section--violet {
  background: linear-gradient(155deg, var(--violet-deep) 0%, var(--violet) 70%, var(--electric-deep) 130%);
  color: #fff;
}
.section--violet h2, .section--violet h3, .section--violet .eyebrow { color: #fff; }
.section--violet .eyebrow::before { background: rgba(255,255,255,0.6); }
.section--violet p { color: rgba(255,255,255,0.78); }

/* .grad-text — defined in PREMIUM VISUAL EFFECTS section with shimmer animation */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--violet), var(--electric));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(91, 42, 157, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(46, 92, 255, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-onviolet {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-onviolet:hover { background: #fff; color: var(--violet-deep); }
.btn-sm { padding: 10px 20px; font-size: 0.78rem; }

/* Glass card */
.glass {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
[data-theme='dark'] .glass {
  background: rgba(29, 23, 48, 0.55);
  border-color: rgba(255,255,255,0.08);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: all 0.35s ease;
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
[data-theme='dark'] .navbar.scrolled { background: rgba(18, 14, 27, 0.82); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--violet), var(--electric)); position: relative; flex-shrink: 0; }
.logo-mark::after { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 4px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.87rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-links a.active::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: linear-gradient(90deg, var(--violet), var(--electric)); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; color: var(--ink-soft);
  transition: all .25s ease;
}
.icon-btn:hover { border-color: var(--violet); color: var(--violet); }
.mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
    background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 28px; transform: translateX(100%); transition: transform .4s ease; box-shadow: -20px 0 60px rgba(0,0,0,0.15); z-index: 250; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 10px; }
  .mobile-toggle { display: flex; z-index: 260; }
}

/* Hero slider */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  background: var(--paper);
}
.hero-bg-shape {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: 100%; position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 26px; }
.hero-sub { font-size: 1.12rem; max-width: 540px; color: var(--ink-soft); margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-slide-dots { display: flex; gap: 8px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade 0.6s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-dot { width: 26px; height: 4px; border-radius: 4px; background: var(--line); border: none; cursor: pointer; transition: all .3s ease; }
.hero-dot.active { background: linear-gradient(90deg, var(--violet), var(--electric)); width: 42px; }

.hero-visual { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; }
.hero-visual img, .feature-visual img, .portfolio-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 4/3; }
}

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar-num { font-family: var(--font-display); font-size: 0.85rem; color: var(--electric); font-weight: 700; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
@media (max-width: 760px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; margin-top: 6px; }

/* Alternating feature rows (services) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse .feature-visual { grid-template-columns: 1fr; order: 0; }
  .feature-row { grid-template-columns: 1fr; }
}
.feature-visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
.feature-list li svg { color: var(--electric); flex-shrink: 0; margin-top: 3px; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 50px; }
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-step { padding: 26px 18px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.process-step-index { font-family: var(--font-display); font-size: 1.6rem; color: var(--violet); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 50px; }
@media (max-width: 800px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.portfolio-media { aspect-ratio: 16/10; position: relative; }
.portfolio-body { padding: 30px; }
.portfolio-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--electric); background: var(--electric-tint); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.portfolio-stats { display: flex; gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.portfolio-stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--violet); }
.portfolio-stat span { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }

/* Testimonial */
.testimonial-quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; line-height: 1.5; max-width: 800px; }

/* Filter chips */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); transition: all .25s ease; }
.chip.active { background: linear-gradient(100deg, var(--violet), var(--electric)); color: #fff; border-color: transparent; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 50px; }

/* Timeline (philosophy) */
.philosophy-list { counter-reset: phi; display: grid; gap: 26px; margin-top: 40px; }
.philosophy-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; }
.philosophy-item-num { counter-increment: phi; font-family: var(--font-display); font-size: 1.3rem; color: var(--electric); }
.philosophy-item-num::before { content: counter(phi, decimal-leading-zero); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { position: relative; margin-bottom: 22px; }
.form-control {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper-soft); color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color .25s ease;
}
.form-control:focus { border-color: var(--violet); outline: none; }
.form-control.error { border-color: #E0546B; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-error-msg { color: #E0546B; font-size: 0.76rem; margin-top: 5px; display: block; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-tint); color: var(--violet); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Footer */
.footer { background: var(--violet-deep); color: rgba(255,255,255,0.8); padding: 90px 0 30px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: block; margin-bottom: 12px; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0; }
.social-row a:hover { background: #fff; color: var(--violet-deep); }

/* Live chat widget */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--electric));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -10px rgba(46,92,255,0.55); border: none; cursor: pointer;
}
.chat-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 300; width: 320px; max-width: 88vw;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
}
.chat-header { background: linear-gradient(100deg, var(--violet), var(--electric)); color: #fff; padding: 18px 20px; }
.chat-body { background: var(--paper); padding: 18px; max-height: 260px; overflow-y: auto; }
.chat-bubble { background: var(--paper-tint); padding: 12px 14px; border-radius: 12px; font-size: 0.85rem; margin-bottom: 10px; max-width: 85%; }
.chat-input-row { display: flex; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; border: none; padding: 14px; font-family: var(--font-body); font-size: 0.85rem; background: var(--paper); color: var(--ink); }
.chat-input-row input:focus { outline: none; }
.chat-input-row button { border: none; background: var(--violet); color: #fff; padding: 0 18px; cursor: pointer; }

/* Scroll to top */
.scroll-top-btn {
  position: fixed; left: 26px; bottom: 26px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-card); transition: opacity .3s ease, transform .3s ease;
}

/* Page header (interior pages) */
.page-header { padding: 190px 0 90px; background: var(--paper-soft); position: relative; overflow: hidden; }
.page-header h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); max-width: 760px; }
.page-header p { max-width: 620px; font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 6px 14px; border-radius: 999px; background: var(--violet-tint); color: var(--violet); font-size: 0.76rem; font-weight: 600; }

.section-head { max-width: 640px; margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Static-site additions: scroll reveal + pure-CSS signature pattern field
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: none; }

/* Pure-CSS "strand weave" signature pattern — used wherever the React build
   used the PatternDivider/PatternField SVG component. No JS needed. */
.pattern-field {
  position: relative;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 55%, var(--electric) 100%);
  overflow: hidden;
}
.pattern-field::before {
  content: '';
  position: absolute; inset: -20%;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 42px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 42px);
  pointer-events: none;
}

.pattern-line {
  height: 46px;
  background:
    repeating-linear-gradient(115deg, var(--violet) 0px, var(--violet) 2px, transparent 2px, transparent 40px),
    repeating-linear-gradient(65deg, var(--electric) 0px, var(--electric) 2px, transparent 2px, transparent 40px);
  opacity: 0.35;
}

/* Loading progress bar (top of page, brief, JS-controlled) */
#page-load-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--electric));
  z-index: 999; transition: width 0.3s ease, opacity 0.4s ease;
}

/* ==========================================================================
   PREMIUM VISUAL EFFECTS — Particles, Glows, Shimmer, Orbs
   ========================================================================== */

/* --- Hero Particle Canvas --- */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Hero Animated Gradient Orbs --- */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  will-change: transform;
}
[data-theme='dark'] .hero-orb { opacity: 0.2; }

.hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91, 42, 157, 0.6) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46, 92, 255, 0.5) 0%, transparent 70%);
  bottom: -15%; left: 10%;
  animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(155, 111, 224, 0.4) 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.15); }
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 42, 157, 0.08) 0%, rgba(46, 92, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.3s ease, width 0.4s ease, height 0.4s ease;
  mix-blend-mode: screen;
}
[data-theme='dark'] .cursor-glow {
  background: radial-gradient(circle, rgba(155, 111, 224, 0.12) 0%, rgba(110, 141, 255, 0.06) 40%, transparent 70%);
}
.cursor-glow--active {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91, 42, 157, 0.15) 0%, rgba(46, 92, 255, 0.08) 40%, transparent 70%);
}
[data-theme='dark'] .cursor-glow--active {
  background: radial-gradient(circle, rgba(155, 111, 224, 0.2) 0%, rgba(110, 141, 255, 0.1) 40%, transparent 70%);
}

/* --- Gradient Text Shimmer --- */
.grad-text {
  background: linear-gradient(100deg, var(--violet) 0%, var(--electric) 40%, var(--violet) 80%, var(--electric) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 6s ease-in-out infinite;
}
@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Card Glow Border on Hover --- */
.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color .35s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--violet), var(--electric), var(--violet));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: glowBorderRotate 4s linear infinite;
}
.card:hover::before { opacity: 1; }
.card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 1px);
  background: var(--paper);
  z-index: -1;
}
@keyframes glowBorderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Portfolio Card Glow on Hover --- */
.portfolio-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.portfolio-card:hover {
  box-shadow:
    0 20px 50px -15px rgba(91, 42, 157, 0.25),
    0 0 30px -10px rgba(46, 92, 255, 0.15);
}

/* --- Hero Visual Animated Gradient Border --- */
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: linear-gradient(135deg, var(--violet), var(--electric), rgba(155, 111, 224, 0.6), var(--electric), var(--violet));
  background-size: 400% 400%;
  z-index: -1;
  animation: heroGlowBorder 8s ease infinite;
  opacity: 0.7;
}
@keyframes heroGlowBorder {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* --- Logo Mark Pulse Glow --- */
.logo-mark {
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 42, 157, 0); }
  50% { box-shadow: 0 0 18px 4px rgba(91, 42, 157, 0.3); }
}

/* --- Pattern Line Glow Pulse --- */
.pattern-line {
  animation: lineGlow 4s ease-in-out infinite;
}
@keyframes lineGlow {
  0%, 100% { opacity: 0.35; filter: brightness(1); }
  50% { opacity: 0.6; filter: brightness(1.3); }
}

/* --- Button Glow Pulse on Primary --- */
.btn-primary {
  position: relative;
  overflow: visible;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--violet), var(--electric));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 0.5;
}

/* --- Stats Section Decorative Glow Line --- */
.section--violet::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
.section--violet::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* --- Feature Icon Check Glow --- */
.feature-list li i.fas.fa-check {
  color: var(--electric);
  filter: drop-shadow(0 0 4px rgba(46, 92, 255, 0.3));
}

/* --- Smooth 3D transitions for tilt effect (JS-driven) --- */
.card, .portfolio-card {
  transition: transform 0.25s ease, box-shadow 0.35s ease, border-color .35s ease;
  will-change: transform;
}

/* --- Contact Icon Glow --- */
.contact-icon {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-info-item:hover .contact-icon {
  box-shadow: 0 0 20px rgba(91, 42, 157, 0.3);
  transform: scale(1.05);
}

/* --- Process Step Hover Glow --- */
.process-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(91, 42, 157, 0.2);
  border-color: var(--violet-tint);
}

/* --- Chip Glow when active --- */
.chip.active {
  box-shadow: 0 4px 18px -4px rgba(91, 42, 157, 0.4);
}

/* --- Nav Link Hover Glow --- */
.nav-links a:hover {
  text-shadow: 0 0 12px rgba(91, 42, 157, 0.15);
}

/* No-JS fallback: reveal elements immediately if JS is disabled */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   MOBILE RESPONSIVENESS
   These rules use !important where necessary to override inline styles
   that would otherwise keep multi-column grids on small screens.
   ========================================================================== */

/* Prevent horizontal scroll from any element */
html, body { overflow-x: hidden; }

/* Reduce section padding on tablets/phones */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 50px 0; }
  .container { padding: 0 20px; }

  /* Hero adjustments */
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
  .hero-grid { gap: 30px !important; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 18px; }
  .hero-sub { font-size: 1rem; margin-bottom: 26px; }
  .hero-cta-row { margin-bottom: 30px; }

  /* Page header (interior pages) */
  .page-header { padding: 140px 0 60px; }

  /* Featured work 3-col → 1-col */
  .two-col[style*="repeat(3"] { grid-template-columns: 1fr !important; }

  /* About page 2-col custom widths → 1-col */
  .two-col[style*="1fr 0.8fr"],
  .two-col[style*="0.9fr 1.1fr"],
  .two-col[style*="0.8fr 1.2fr"] { grid-template-columns: 1fr !important; gap: 30px !important; }

  /* About team 4-col → 2-col */
  .two-col[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }

  /* Feature rows (services page) — single column + reset order */
  .feature-row { grid-template-columns: 1fr !important; gap: 30px !important; padding: 40px 0; }
  .feature-row.reverse .feature-visual { order: 0 !important; }

  /* Stats bar text sizing */
  .stat-num { font-size: 1.8rem; }

  /* Footer */
  .footer { padding: 60px 0 24px; }
  .footer-grid { gap: 30px; }
  .footer-bottom { margin-top: 40px; flex-direction: column; text-align: center; }
}

/* Small phones */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section--tight { padding: 40px 0; }

  /* Hero */
  .hero { padding-top: 80px; padding-bottom: 40px; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero-sub { font-size: 0.92rem; }
  .hero-visual { aspect-ratio: 4/3 !important; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }

  /* Page header */
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Buttons — full width on small screens */
  .btn { padding: 13px 24px; font-size: 0.82rem; }
  .btn-sm { padding: 9px 16px; }

  /* Cards */
  .card { padding: 22px; }

  /* About team 4-col → 2-col stays good at this size */
  .two-col[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Stats bar — 2 col already, just shrink text more */
  .stat-num { font-size: 1.5rem; word-break: break-word; }
  .stat-label { font-size: 0.72rem; }
  .stats-bar { gap: 16px; }

  /* Portfolio cards */
  .portfolio-body { padding: 20px; }
  .portfolio-stats { flex-wrap: wrap; gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer { padding: 50px 0 20px; }
  .footer-bottom { margin-top: 30px; font-size: 0.72rem; }

  /* Chip row — scrollable on small screens */
  .chip-row { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  /* Values grid */
  .values-grid { grid-template-columns: 1fr !important; }

  /* Philosophy items */
  .philosophy-item { grid-template-columns: 40px 1fr; gap: 14px; }

  /* Contact form glass */
  .glass[style*="padding:40px"] { padding: 24px !important; }

  /* Chat widget — full width */
  .chat-panel { right: 10px; bottom: 86px; width: calc(100vw - 20px); max-width: 100%; }
  .chat-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .scroll-top-btn { left: 16px; bottom: 16px; width: 38px; height: 38px; }

  /* Testimonial */
  .testimonial-quote { font-size: clamp(1.1rem, 4vw, 1.4rem); }
}

/* Extra-small phones (iPhone SE, etc) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.5rem; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 28px; height: 28px; }
  .nav-right { gap: 8px; }
  .icon-btn { width: 34px; height: 34px; }

  /* Stack CTA buttons */
  .hero-cta-row .btn { font-size: 0.8rem; padding: 12px 20px; }

  /* About team → single column on tiny screens */
  .two-col[style*="repeat(4"] { grid-template-columns: 1fr !important; }
}


/* ==========================================================================
   Get Started — Multi-Step Project Wizard
   ========================================================================== */
.wizard-shell { max-width: 780px; margin: 0 auto; }

.wizard-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.wizard-progress-step { flex: 1; text-align: center; position: relative; }
.wizard-progress-step:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.wizard-progress-step.done:not(:last-child)::after { background: var(--violet); }
.wizard-progress-dot {
  width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1;
  font-weight: 700; font-size: 0.85rem; color: var(--ink-faint); transition: all 0.3s ease;
}
.wizard-progress-step.active .wizard-progress-dot { border-color: var(--violet); color: var(--violet); background: var(--violet-tint); }
.wizard-progress-step.done .wizard-progress-dot { border-color: var(--violet); background: var(--violet); color: #fff; }
.wizard-progress-label { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.wizard-progress-step.active .wizard-progress-label { color: var(--ink); font-weight: 600; }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: wizardFade 0.4s ease; }
@keyframes wizardFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.wizard-panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.wizard-panel > p.wizard-sub { color: var(--ink-soft); margin-bottom: 32px; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.option-card {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer;
  transition: all 0.2s ease; background: var(--paper); position: relative;
}
.option-card:hover { border-color: var(--electric); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card i { font-size: 1.5rem; color: var(--violet); margin-bottom: 10px; display: block; }
.option-card span { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.option-card.selected { border-color: var(--violet); background: var(--violet-tint); box-shadow: 0 0 0 3px rgba(91,42,157,0.12); }

.chip-select { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); transition: all 0.2s ease; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select.selected { border-color: var(--violet); background: var(--violet-tint); color: var(--violet); }
.chip-select-group { display: flex; flex-wrap: wrap; gap: 10px; }

.radio-card-group { display: grid; gap: 12px; }
.radio-card { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: all 0.2s ease; }
.radio-card:hover { border-color: var(--electric); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.radio-card.selected { border-color: var(--violet); background: var(--violet-tint); }
.radio-card.selected .radio-dot { border-color: var(--violet); }
.radio-card.selected .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--violet); }
.radio-card-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.radio-card-sub { font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s ease; background: var(--paper-soft);
}
.dropzone.dragover { border-color: var(--violet); background: var(--violet-tint); }
.dropzone i { font-size: 1.8rem; color: var(--violet); margin-bottom: 10px; display: block; }
.dropzone input { display: none; }
.file-list { margin-top: 16px; display: grid; gap: 8px; }
.file-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 0.84rem; }
.file-list-item button { background: none; border: none; color: #E0546B; cursor: pointer; font-size: 0.9rem; }

.wizard-nav-row { display: flex; justify-content: space-between; margin-top: 40px; }

.wizard-review-block { background: var(--paper-soft); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.wizard-review-block dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 12px; }
.wizard-review-block dt:first-child { margin-top: 0; }
.wizard-review-block dd { margin: 2px 0 0; font-size: 0.94rem; color: var(--ink); }

.wizard-success { text-align: center; padding: 60px 20px; }
.wizard-success i { font-size: 3.2rem; color: var(--violet); margin-bottom: 20px; }

@media (max-width: 640px) {
  .wizard-progress-label { display: none; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
}
