/* ============================================================
   HEATED (h8d.net) — Fire-Warm Redesign
   Aesthetic: Warm, bold, contemporary & premium
   ============================================================ */
:root {
  /* Core palette — warm fire tones */
  --clr-bg: #FDF8F3;
  --clr-bg-alt: #F9F0E8;
  --clr-bg-card: #FFFFFF;
  --clr-surface: #F2E8DC;
  --clr-border: rgba(46,20,10,0.08);
  --clr-border-hover: rgba(46,20,10,0.18);

  /* Text */
  --clr-text: #2E140A;
  --clr-text-dim: #5A3A2A;
  --clr-text-muted: #9A7A6A;

  /* Accents — fire spectrum */
  --clr-accent: #E8651A;
  --clr-accent-2: #F5A623;
  --clr-accent-3: #D44B1A;

  /* Warm pastels */
  --clr-pink: #F5D1C0;
  --clr-lavender: #F2C8A0;
  --clr-sage: #E8D5B8;
  --clr-blue: #F0D6B0;
  --clr-peach: #F5C4A0;
  --clr-mint: #F2DCC4;
  --clr-coral: #F0B8A0;
  --clr-beige: #F5E0C4;

  /* Gradients — fire-inspired */
  --clr-gradient-1: linear-gradient(135deg, #E8651A, #F5A623);
  --clr-gradient-2: linear-gradient(135deg, #F5A623, #F0C060);
  --clr-gradient-3: linear-gradient(135deg, #D44B1A, #E8651A);
  --clr-gradient-text: linear-gradient(135deg, #E8651A 0%, #F5A623 50%, #D44B1A 100%);
  --clr-gradient-mesh: linear-gradient(135deg, #E8651A 0%, #F5A623 25%, #D44B1A 50%, #FF6B35 75%, #F0C060 100%);
  --clr-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  --clr-gradient-warm-dark: linear-gradient(135deg, #1a0804, #2a1008, #1a0804);

  /* Shadows — warm */
  --shadow-sm: 0 2px 8px rgba(232,101,26,0.06);
  --shadow-md: 0 8px 32px rgba(232,101,26,0.10);
  --shadow-lg: 0 16px 64px rgba(232,101,26,0.12);
  --shadow-glow: 0 0 40px rgba(232,101,26,0.15);
  --shadow-xs: 0 1px 3px rgba(232,101,26,0.04);
  --shadow-inner: inset 0 2px 6px rgba(232,101,26,0.08);
  --shadow-glow-lg: 0 0 60px rgba(232,101,26,0.25);
  --shadow-float: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(232,101,26,0.15);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  --max-w: 1280px;
  --nav-h: 72px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Easing */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: .2s;
  --dur-norm: .4s;
  --dur-slow: .8s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
body { font-family: var(--font-body); background: var(--clr-bg); color: var(--clr-text); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.gradient-text { background: var(--clr-gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- Utility Classes ---- */
.glass { background: var(--clr-gradient-glass); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); border: 1px solid rgba(255,255,255,0.08); }
.glass-warm { background: rgba(232,101,26,0.06); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); border: 1px solid rgba(232,101,26,0.12); }
.text-balance { text-wrap: balance; }

/* ---- Noscript Fallback ---- */
noscript .reveal, noscript .reveal-left, noscript .reveal-right, noscript .reveal-scale { opacity: 1; transform: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--clr-text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p { color: var(--clr-text-dim); }
.label { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--clr-accent); }

/* ---- INTRO OVERLAY ---- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-logo-reveal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(.92);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
.intro-logo-reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.intro-logo-reveal .intro-h8d {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.intro-logo-reveal .intro-tagline {
  font-family: var(--font-mono);
  font-size: clamp(.65rem, 1.5vw, .9rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,166,35,0.6);
  margin-top: .75rem;
  overflow: hidden;
  border-right: 2px solid rgba(245,166,35,0.6);
  animation: blink-cursor 0.8s step-end infinite;
  white-space: nowrap;
}
.intro-tagline.done { border-right-color: transparent; animation: none; }
@keyframes blink-cursor {
  0%, 100% { border-right-color: rgba(245,166,35,0.6); }
  50% { border-right-color: transparent; }
}

/* ---- Per-letter Intro Reveal ---- */
.intro-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: opacity 0.6s ease, transform 0.6s ease;
  color: transparent;
  background: linear-gradient(135deg, #FF6B35, #F5A623, #FFD76B);
  -webkit-background-clip: text;
  background-clip: text;
}
.intro-logo-reveal.show .intro-letter {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.intro-logo-reveal.show .intro-letter:nth-child(1) { transition-delay: 0s; }
.intro-logo-reveal.show .intro-letter:nth-child(2) { transition-delay: 0.08s; }
.intro-logo-reveal.show .intro-letter:nth-child(3) { transition-delay: 0.16s; }
.intro-logo-reveal.show .intro-letter:nth-child(4) { transition-delay: 0.24s; }
.intro-logo-reveal.show .intro-letter:nth-child(5) { transition-delay: 0.32s; }
.intro-logo-reveal.show .intro-letter:nth-child(6) { transition-delay: 0.40s; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: var(--radius-full); font-family: var(--font-display); font-weight: 600; font-size: .95rem; transition: all var(--dur-norm) var(--ease-out); position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity var(--dur-norm); }
.btn-primary { background: var(--clr-gradient-1); color: #fff; box-shadow: 0 4px 20px rgba(232,101,26,0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,101,26,0.40); }
.btn-primary::before { background: linear-gradient(135deg, rgba(255,255,255,.2), transparent); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,215,107,0.6);
  top: 50%;
  left: 50%;
  opacity: 0;
  transition: none;
}
.btn-primary:hover::after {
  animation: btn-ember-burst 0.6s ease-out forwards;
}
@keyframes btn-ember-burst {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 0 0 rgba(245,166,35,0.3); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 0 20px rgba(245,166,35,0); }
}
.btn-secondary { background: transparent; color: var(--clr-text); border: 1px solid var(--clr-border-hover); }
.btn-secondary:hover { border-color: var(--clr-accent); color: var(--clr-accent); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--clr-accent); padding: .5rem 0; }
.btn-ghost:hover { opacity: .8; }
.btn-ghost .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ---- NAV ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; transition: all var(--dur-norm) var(--ease-out); }
.nav.scrolled { background: rgba(253,248,243,0.88); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--clr-border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; z-index: 1001; }
.nav-logo .logo-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--clr-gradient-1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; color: #fff; position: relative; overflow: hidden; }
.nav-logo .logo-icon::after { content: ''; position: absolute; inset: -2px; background: radial-gradient(circle at 30% 70%, rgba(255,107,53,0.4), transparent 60%); animation: logoGlow 3s ease-in-out infinite alternate; }
@keyframes logoGlow { 0% { opacity: .3; } 100% { opacity: .7; } }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--clr-text-dim); transition: color var(--dur-fast); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--clr-accent); transition: width var(--dur-norm) var(--ease-out); }
.nav-links a:hover { color: var(--clr-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--clr-accent); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; z-index: 1001; width: 28px; }
.nav-toggle span { display: block; height: 2px; background: var(--clr-text); border-radius: 2px; transition: all var(--dur-norm) var(--ease-out); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(253,248,243,0.97); backdrop-filter: blur(20px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); opacity: 0; pointer-events: none; transition: opacity var(--dur-norm) var(--ease-out); }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--clr-text-dim); transition: color var(--dur-fast); }
.mobile-menu a:hover { color: var(--clr-accent); }

/* ---- SCROLL PROGRESS ---- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--clr-gradient-1); z-index: 9999; transition: width .1s linear; }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: var(--nav-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); animation: orbFloat 12s ease-in-out infinite alternate; }
.hero-bg .glow-orb-1 { width: 500px; height: 500px; background: rgba(232,101,26,0.15); top: -10%; right: 10%; opacity: .5; }
.hero-bg .glow-orb-2 { width: 400px; height: 400px; background: rgba(245,166,35,0.12); bottom: 10%; left: -5%; opacity: .4; animation-delay: -4s; }
.hero-bg .glow-orb-3 { width: 300px; height: 300px; background: rgba(212,75,26,0.10); top: 50%; left: 50%; opacity: .35; animation-delay: -8s; }
.hero-bg .glow-orb-4 { width: 250px; height: 250px; background: rgba(100,80,180,0.03); top: 30%; right: 30%; opacity: .3; animation-delay: -6s; }
@keyframes orbFloat { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px,-40px) scale(1.1); } }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.2rem; border-radius: var(--radius-full); background: rgba(232,101,26,0.08); border: 1px solid rgba(232,101,26,0.18); margin-bottom: var(--space-lg); font-size: .85rem; color: var(--clr-accent); font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-badge .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clr-accent); animation: pulse 2s ease-in-out infinite; position: relative; }
.hero-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--clr-accent);
  animation: pulse-ring 2s ease-in-out infinite;
  opacity: 0;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.8); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }
.hero h1 { margin-bottom: var(--space-md); }
.hero .gradient-text {
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 640px; margin: 0 auto var(--space-lg); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-2xl); }

/* ---- HERO EMBER PARTICLES ---- */
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  border-radius: 40% 60% 60% 40%;
  background: radial-gradient(circle, rgba(245,166,35,0.8), rgba(232,101,26,0.4), transparent);
  animation: emberRise linear infinite;
  opacity: 0;
  box-shadow: 0 0 6px rgba(245,166,35,0.4);
}
.ember:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.ember:nth-child(2) { width: 3px; height: 3px; left: 20%; animation-duration: 10s; animation-delay: 1s; }
.ember:nth-child(3) { width: 5px; height: 5px; left: 35%; animation-duration: 7s; animation-delay: 2s; }
.ember:nth-child(4) { width: 3px; height: 3px; left: 50%; animation-duration: 9s; animation-delay: 0.5s; }
.ember:nth-child(5) { width: 4px; height: 4px; left: 65%; animation-duration: 11s; animation-delay: 3s; }
.ember:nth-child(6) { width: 2px; height: 2px; left: 75%; animation-duration: 8s; animation-delay: 1.5s; }
.ember:nth-child(7) { width: 3px; height: 3px; left: 85%; animation-duration: 10s; animation-delay: 4s; }
.ember:nth-child(8) { width: 4px; height: 4px; left: 45%; animation-duration: 9s; animation-delay: 2.5s; }
.ember:nth-child(9) { width: 2px; height: 2px; left: 15%; animation-duration: 12s; animation-delay: 5s; }
.ember:nth-child(10) { width: 3px; height: 3px; left: 90%; animation-duration: 7.5s; animation-delay: 1.8s; }
.ember:nth-child(11) { width: 2px; height: 2px; left: 55%; animation-duration: 13s; animation-delay: 6s; }
.ember:nth-child(12) { width: 4px; height: 4px; left: 30%; animation-duration: 8.5s; animation-delay: 3.5s; }
.ember:nth-child(13) { width: 3px; height: 3px; left: 42%; animation-duration: 9.5s; animation-delay: 1.2s; }
.ember:nth-child(14) { width: 2px; height: 2px; left: 72%; animation-duration: 11.5s; animation-delay: 4.5s; }
.ember:nth-child(15) { width: 5px; height: 5px; left: 58%; animation-duration: 7.8s; animation-delay: 2.8s; }
.ember:nth-child(16) { width: 3px; height: 3px; left: 8%; animation-duration: 10.2s; animation-delay: 5.5s; }

@keyframes emberRise {
  0% { bottom: -5%; opacity: 0; transform: translateX(0) scale(0.5); }
  10% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; }
  100% { bottom: 110%; opacity: 0; transform: translateX(var(--ember-drift, 30px)) scale(0.2); }
}
.ember:nth-child(odd) { --ember-drift: 40px; }
.ember:nth-child(even) { --ember-drift: -35px; }
.ember:nth-child(3n) { --ember-drift: 60px; }
.ember:nth-child(4n) { --ember-drift: -55px; }

/* ---- SCROLL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.9); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-rotate { opacity: 0; transform: rotate(-3deg) translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-rotate.visible { opacity: 1; transform: rotate(0) translateY(0); }
.reveal-blur { opacity: 0; filter: blur(8px); transform: translateY(20px); transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-blur.visible { opacity: 1; filter: blur(0); transform: translateY(0); }
.stagger-1 { transition-delay: .1s; } .stagger-2 { transition-delay: .2s; } .stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; } .stagger-5 { transition-delay: .5s; }

/* ---- SECTIONS ---- */
section { padding: var(--space-3xl) 0; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-2xl); }
.section-header .label { margin-bottom: var(--space-sm); display: block; }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.05rem; }

/* ---- LOGO BANNER ---- */
.logo-banner { padding: var(--space-xl) 0; overflow: hidden; border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); background: var(--clr-bg-alt); }
.logo-banner-track { display: flex; gap: var(--space-2xl); animation: logoScroll 25s linear infinite; white-space: nowrap; align-items: center; }
.logo-banner-track img,
.logo-banner-track .logo-placeholder {
  height: 40px;
  width: auto;
  opacity: .45;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s;
  flex-shrink: 0;
}
.logo-banner-track .logo-placeholder:hover {
  opacity: .8;
  filter: grayscale(0);
}
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- SERVICES TABS ---- */
.services-tabs { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.tab-btn { padding: .7rem 1.5rem; border-radius: var(--radius-full); font-size: .9rem; font-weight: 600; color: var(--clr-text-dim); border: 1px solid var(--clr-border); transition: all var(--dur-norm) var(--ease-out); font-family: var(--font-display); background: var(--clr-bg-card); }
.tab-btn:hover { border-color: var(--clr-accent); color: var(--clr-text); }
.tab-btn.active { background: var(--clr-gradient-1); color: #fff; border-color: transparent; box-shadow: 0 4px 20px rgba(232,101,26,0.25); }
.tab-panel { display: none; animation: fadeInUp .5s var(--ease-out); }
.tab-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.service-card-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.service-card-layout.reversed { direction: rtl; }
.service-card-layout.reversed > * { direction: ltr; }
.service-info { display: flex; flex-direction: column; gap: var(--space-md); }
.service-info h3 { color: var(--clr-text); }
.service-features { display: flex; flex-direction: column; gap: var(--space-sm); }
.service-feature { display: flex; align-items: flex-start; gap: .75rem; }
.service-feature .check-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(232,101,26,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; color: var(--clr-accent); font-size: .75rem; }
.service-feature span { color: var(--clr-text-dim); font-size: .95rem; }
.service-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--clr-bg-card); border: 1px solid var(--clr-border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.service-visual .visual-inner { padding: var(--space-lg); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Mock UI */
.mock-ui { width: 100%; height: 100%; border-radius: var(--radius-md); background: var(--clr-bg); border: 1px solid var(--clr-border); overflow: hidden; position: relative; }
.mock-ui-bar { height: 32px; background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: var(--clr-coral); } .mock-dot:nth-child(2) { background: var(--clr-peach); } .mock-dot:nth-child(3) { background: var(--clr-sage); }

.mock-slides { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: calc(100% - 32px); }
.mock-slide { border-radius: 8px; background: var(--clr-bg-alt); border: 1px solid var(--clr-border); display: flex; flex-direction: column; padding: 12px; gap: 6px; transition: all .3s var(--ease-out); }
.mock-slide:hover { border-color: var(--clr-accent); transform: scale(1.02); }
.mock-slide .sl-title { height: 6px; width: 60%; border-radius: 3px; background: var(--clr-accent); opacity: .5; }
.mock-slide .sl-bullets { display: flex; flex-direction: column; gap: 4px; flex: 1; justify-content: center; }
.mock-slide .sl-bullet { height: 4px; border-radius: 2px; background: var(--clr-text-muted); opacity: .15; }
.mock-slide .sl-bullet:nth-child(1) { width: 90%; }
.mock-slide .sl-bullet:nth-child(2) { width: 75%; }
.mock-slide .sl-bullet:nth-child(3) { width: 60%; }
.mock-slide .sl-chart { width: 100%; margin-top: auto; }
.mock-slide .sl-body { flex: 1; border-radius: 4px; opacity: .3; }
.mock-slide:nth-child(1) .sl-body { background: var(--clr-lavender); }
.mock-slide:nth-child(2) .sl-body { background: var(--clr-pink); }
.mock-slide:nth-child(3) .sl-body { background: var(--clr-sage); }
.mock-slide:nth-child(4) .sl-body { background: var(--clr-peach); }

.mock-pipeline { padding: 16px; display: flex; flex-direction: column; gap: 12px; height: calc(100% - 32px); justify-content: center; }
.pipeline-step { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; background: var(--clr-bg-alt); border: 1px solid var(--clr-border); font-size: .8rem; color: var(--clr-text-dim); transition: all .3s var(--ease-out); }
.pipeline-step:hover { border-color: var(--clr-accent); }
.pipeline-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.pipeline-step:nth-child(1) .pipeline-icon { background: rgba(232,101,26,0.12); color: var(--clr-accent); }
.pipeline-step:nth-child(2) .pipeline-icon { background: rgba(245,166,35,0.15); color: var(--clr-accent-2); }
.pipeline-step:nth-child(3) .pipeline-icon { background: rgba(212,75,26,0.12); color: var(--clr-accent-3); }
.pipeline-step:nth-child(4) .pipeline-icon { background: rgba(245,192,96,0.25); color: #C08040; }
.pipeline-connector { width: 2px; height: 12px; background: var(--clr-border); margin-left: 30px; }
.pipeline-progress { height: 3px; border-radius: 2px; background: var(--clr-gradient-1); animation: pipelineRun 3s ease-in-out infinite; }
@keyframes pipelineRun { 0% { width: 0; } 50% { width: 100%; } 100% { width: 100%; opacity: .3; } }

.mock-chat { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: .8rem; line-height: 1.5; animation: chatAppear .6s var(--ease-out) both; }
.chat-bubble.bot { background: rgba(232,101,26,0.08); border: 1px solid rgba(232,101,26,0.15); color: var(--clr-accent); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--clr-surface); color: var(--clr-text-dim); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble:nth-child(2) { animation-delay: .3s; } .chat-bubble:nth-child(3) { animation-delay: .6s; }
.chat-bubble:nth-child(4) { animation-delay: .9s; }
.mock-cat-avatar { font-size: .7rem; margin-right: 4px; }
.mock-time { display: block; font-size: .6rem; color: var(--clr-text-muted); opacity: .5; margin-top: 4px; }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: .5rem .75rem !important; }
.typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: var(--clr-accent); opacity: .4; animation: typing-bounce .6s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes chatAppear { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.mock-media-gen { padding: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; height: calc(100% - 32px); }
.media-thumb { border-radius: 8px; background: var(--clr-surface); border: 1px solid var(--clr-border); overflow: hidden; position: relative; transition: all .3s var(--ease-out); }
.media-thumb:hover { border-color: var(--clr-accent); transform: scale(1.03); }
.media-thumb .media-gradient { position: absolute; inset: 0; opacity: .3; }
.media-thumb:nth-child(1) .media-gradient { background: linear-gradient(135deg, var(--clr-lavender), var(--clr-pink)); }
.media-thumb:nth-child(2) .media-gradient { background: linear-gradient(135deg, var(--clr-pink), var(--clr-peach)); }
.media-thumb:nth-child(3) .media-gradient { background: linear-gradient(135deg, var(--clr-sage), var(--clr-blue)); }
.media-thumb:nth-child(4) .media-gradient { background: linear-gradient(135deg, var(--clr-coral), var(--clr-peach)); }
.media-thumb:nth-child(5) .media-gradient { background: linear-gradient(135deg, var(--clr-peach), var(--clr-lavender)); }
.media-thumb:nth-child(6) .media-gradient { background: linear-gradient(135deg, var(--clr-beige), var(--clr-sage)); }
.media-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--clr-text); }
.media-badge { position: absolute; top: 6px; right: 6px; background: var(--clr-gradient-1); color: #fff; font-size: .55rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; letter-spacing: .04em; z-index: 1; }
.media-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer-sweep 1.5s ease-in-out infinite; }
@keyframes shimmer-sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.media-thumb.generating { border-color: var(--clr-accent); opacity: .7; }

/* App mock UI */
.mock-app-ui { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: calc(100% - 32px); }
.app-screen { flex: 1; border-radius: 12px; background: var(--clr-bg-alt); border: 1px solid var(--clr-border); display: flex; flex-direction: column; overflow: hidden; }
.app-screen-header { height: 28px; background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: center; font-size: .65rem; color: var(--clr-text-muted); }
.app-screen-body { flex: 1; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-block { border-radius: 6px; border: 1px solid var(--clr-border); transition: all .3s var(--ease-out); }
.app-block:hover { border-color: var(--clr-accent); transform: scale(1.02); }
.app-block:nth-child(1) { background: rgba(232,101,26,0.06); }
.app-block:nth-child(2) { background: rgba(245,166,35,0.06); }
.app-block:nth-child(3) { background: rgba(212,75,26,0.06); }
.app-block:nth-child(4) { background: rgba(240,192,96,0.06); }
.app-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; font-size: .6rem; color: var(--clr-text-muted); background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); }
.app-status-icons { letter-spacing: 2px; font-size: .5rem; }
.app-nav-header { padding: 8px 12px; font-family: var(--font-display); font-size: .75rem; font-weight: 600; color: var(--clr-text); border-bottom: 1px solid var(--clr-border); text-align: center; }
.app-nav-bar { height: 36px; border-radius: 8px; background: var(--clr-surface); border: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-around; padding: 0 16px; }
.app-nav-dot { width: 20px; height: 3px; border-radius: 2px; background: var(--clr-text-muted); opacity: .3; }
.app-nav-dot.active { background: var(--clr-accent); opacity: 1; }

/* ---- DUAL VERTICAL BANNERS ---- */
.dual-banners { padding: var(--space-3xl) 0; overflow: hidden; background: var(--clr-bg-alt); }
.dual-banners-inner { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--space-lg); align-items: center; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); height: 500px; }
.banner-column { height: 100%; overflow: hidden; position: relative; }
.banner-column::before,
.banner-column::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.banner-column::before { top: 0; background: linear-gradient(to bottom, var(--clr-bg-alt), transparent); }
.banner-column::after { bottom: 0; background: linear-gradient(to top, var(--clr-bg-alt), transparent); }
.banner-scroll-up, .banner-scroll-down { will-change: transform; }
.banner-scroll-up { animation: scrollUp 20s linear infinite; }
.banner-scroll-down { animation: scrollDown 20s linear infinite; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
.banner-item { padding: var(--space-md); margin-bottom: var(--space-sm); background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); display: flex; align-items: center; gap: var(--space-sm); transition: box-shadow .3s; }
.banner-item:hover { box-shadow: var(--shadow-md); }
.banner-item-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.banner-item-icon.bg-pink { background: var(--clr-pink); }
.banner-item-icon.bg-lavender { background: var(--clr-lavender); }
.banner-item-icon.bg-sage { background: var(--clr-sage); }
.banner-item-icon.bg-blue { background: var(--clr-blue); }
.banner-item-icon.bg-peach { background: var(--clr-peach); }
.banner-item-icon.bg-mint { background: var(--clr-mint); }
.banner-item-icon.bg-coral { background: var(--clr-coral); }
.banner-item-icon.bg-beige { background: var(--clr-beige); }
.banner-item span { font-size: .9rem; font-weight: 500; color: var(--clr-text); }
.dual-banners-center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); }
.dual-banners-center h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.dual-banners-center p { font-size: .95rem; color: var(--clr-text-dim); max-width: 300px; }

/* ---- STEPS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); position: relative; }
.step-card { text-align: center; padding: var(--space-lg); position: relative; cursor: pointer; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  margin: 0 auto var(--space-md); position: relative; z-index: 1; color: #fff;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.step-card:nth-of-type(1) .step-number { background: var(--clr-accent); }
.step-card:nth-of-type(2) .step-number { background: var(--clr-accent-2); }
.step-card:nth-of-type(3) .step-number { background: var(--clr-accent-3); }
/* Hover glow on step number circles */
.step-card:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(232,101,26,0.35), 0 0 40px rgba(245,166,35,0.15);
}
.step-card:nth-of-type(2):hover .step-number {
  box-shadow: 0 0 20px rgba(245,166,35,0.4), 0 0 40px rgba(245,166,35,0.15);
}
.step-card:nth-of-type(3):hover .step-number {
  box-shadow: 0 0 20px rgba(212,75,26,0.4), 0 0 40px rgba(212,75,26,0.15);
}
/* Active step number — brighter when fire scene has reached that step */
.fire-scene.step-1-done ~ .step-card:nth-of-type(1) .step-number {
  box-shadow: 0 0 16px rgba(232,101,26,0.3);
}
.fire-scene.step-2-done ~ .step-card:nth-of-type(2) .step-number {
  box-shadow: 0 0 16px rgba(245,166,35,0.3);
}
.fire-scene.step-3-done ~ .step-card:nth-of-type(3) .step-number {
  box-shadow: 0 0 16px rgba(212,75,26,0.3);
}
.step-card h4 { margin-bottom: var(--space-xs); color: var(--clr-text); }
.step-card p { font-size: .9rem; }

/* ---- Fire Scene Illustration ---- */
.fire-scene {
  grid-column: 1 / -1;
  width: 280px;
  height: 180px;
  margin: 0 auto var(--space-lg);
}

/* Default hidden states */
.fire-scene .fire-log { opacity: 0; transform: translateY(-80px); }
.fire-scene .fire-stick { opacity: 0; }
.fire-scene .fire-smoke .smoke-particle { opacity: 0; }
.fire-scene .fire-flames .fire-outer,
.fire-scene .fire-flames .fire-outer-2,
.fire-scene .fire-flames .fire-mid,
.fire-scene .fire-flames .fire-mid-2,
.fire-scene .fire-flames .fire-inner,
.fire-scene .fire-flames .fire-core,
.fire-scene .fire-flames .fire-spark,
.fire-scene .fire-flames .fire-wood-glow,
.fire-scene .fire-flames .fire-base-glow { opacity: 0; }

/* ===== STEP 1: Wood logs drop in with staggered bounce ===== */
.fire-scene.step-1-done .fire-log {
  animation: fs-wood-drop 0.7s var(--ease-spring) forwards;
}
.fire-scene.step-1-done .fire-log-1 { animation-delay: 0s; }
.fire-scene.step-1-done .fire-log-2 { animation-delay: 0.08s; }
.fire-scene.step-1-done .fire-log-3 { animation-delay: 0.16s; }
.fire-scene.step-1-done .fire-log-4 { animation-delay: 0.24s; }
.fire-scene.step-1-done .fire-log-5 { animation-delay: 0.32s; }
.fire-scene.step-1-done .fire-log-6 { animation-delay: 0.40s; }
.fire-scene.step-1-done .fire-log-7 { animation-delay: 0.48s; }
.fire-scene.step-1-done .fire-log-8 { animation-delay: 0.56s; }

@keyframes fs-wood-drop {
  0%   { opacity: 0; transform: translateY(-80px); }
  50%  { opacity: 1; transform: translateY(6px); }
  70%  { transform: translateY(-4px); }
  85%  { transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== STEP 2: Friction stick drops + oscillates + smoke wisps ===== */
.fire-scene.step-2-done .fire-stick {
  animation: fs-stick-enter 0.5s var(--ease-spring) forwards;
}
@keyframes fs-stick-enter {
  0%   { opacity: 0; transform: translateY(-60px); }
  60%  { opacity: 1; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fire-scene.step-2-done .fire-stick-bar {
  animation: fs-stick-twist 0.18s ease-in-out infinite alternate;
  transform-origin: 150px 134px;
}
@keyframes fs-stick-twist {
  0%   { transform: rotateZ(-8deg); }
  100% { transform: rotateZ(8deg); }
}
/* Smoke wisps drift upward with horizontal wander */
.fire-scene.step-2-done .smoke-particle {
  animation: fs-smoke-rise 3s ease-out infinite;
}
.fire-scene.step-2-done .smoke-1 { animation-delay: 0s; }
.fire-scene.step-2-done .smoke-2 { animation-delay: 0.6s; }
.fire-scene.step-2-done .smoke-3 { animation-delay: 1.2s; }
.fire-scene.step-2-done .smoke-4 { animation-delay: 1.8s; }
.fire-scene.step-2-done .smoke-5 { animation-delay: 2.4s; }

@keyframes fs-smoke-rise {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.6); }
  15%  { opacity: 0.2; transform: translateY(-8px) translateX(2px) scale(0.8); }
  50%  { opacity: 0.15; transform: translateY(-25px) translateX(-6px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-50px) translateX(10px) scale(1.4); }
}

/* ===== STEP 3: Stick fades, flames erupt, sparks fly ===== */
.fire-scene.step-3-done .fire-stick {
  opacity: 0 !important;
  transform: translateY(-30px) !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: none !important;
}
.fire-scene.step-3-done .fire-stick-bar { animation: none !important; }
.fire-scene.step-3-done .smoke-particle { animation: none !important; opacity: 0 !important; }

/* Base glow under fire */
.fire-scene.step-3-done .fire-base-glow {
  animation: fs-base-glow-in 0.6s ease-out forwards;
}
@keyframes fs-base-glow-in {
  0%   { opacity: 0; }
  100% { opacity: 0.6; }
}

/* Outer flame — large sway */
.fire-scene.step-3-done .fire-outer {
  animation: fs-flame-ignite 0.6s ease-out forwards, fs-flame-sway-1 2.5s ease-in-out 0.6s infinite;
}
.fire-scene.step-3-done .fire-outer-2 {
  animation: fs-flame-ignite 0.6s ease-out 0.1s forwards, fs-flame-sway-2 3s ease-in-out 0.7s infinite;
}
/* Mid flame */
.fire-scene.step-3-done .fire-mid {
  animation: fs-flame-ignite 0.5s ease-out 0.15s forwards, fs-flame-sway-3 2s ease-in-out 0.65s infinite;
}
.fire-scene.step-3-done .fire-mid-2 {
  animation: fs-flame-ignite 0.5s ease-out 0.2s forwards, fs-flame-sway-1 2.8s ease-in-out 0.8s infinite;
}
/* Inner flame — bright core */
.fire-scene.step-3-done .fire-inner {
  animation: fs-flame-ignite 0.4s ease-out 0.25s forwards, fs-flame-sway-2 1.8s ease-in-out 0.7s infinite;
}
/* Core shimmer */
.fire-scene.step-3-done .fire-core {
  animation: fs-flame-ignite 0.4s ease-out 0.3s forwards, fs-core-pulse 1.5s ease-in-out 0.7s infinite;
}

@keyframes fs-flame-ignite {
  0%   { opacity: 0; transform: scaleY(0) scaleX(0.3); transform-origin: 150px 142px; }
  60%  { opacity: 0.9; transform: scaleY(1.1) scaleX(1.05); transform-origin: 150px 142px; }
  100% { opacity: 1; transform: scaleY(1) scaleX(1); transform-origin: 150px 142px; }
}

/* Multiple sway keyframes for organic layered movement */
@keyframes fs-flame-sway-1 {
  0%, 100% { transform: scaleY(1) scaleX(1) skewX(0deg); opacity: 0.85; }
  25%      { transform: scaleY(1.08) scaleX(0.94) skewX(3deg); opacity: 1; }
  50%      { transform: scaleY(0.92) scaleX(1.06) skewX(-2deg); opacity: 0.8; }
  75%      { transform: scaleY(1.05) scaleX(0.97) skewX(1.5deg); opacity: 0.9; }
}
@keyframes fs-flame-sway-2 {
  0%, 100% { transform: scaleY(1) scaleX(1) skewX(0deg); opacity: 0.8; }
  30%      { transform: scaleY(0.95) scaleX(1.04) skewX(-3deg); opacity: 0.9; }
  60%      { transform: scaleY(1.1) scaleX(0.96) skewX(2deg); opacity: 1; }
  80%      { transform: scaleY(0.98) scaleX(1.02) skewX(-1deg); opacity: 0.85; }
}
@keyframes fs-flame-sway-3 {
  0%, 100% { transform: scaleY(1) scaleX(1) skewX(0deg); opacity: 0.9; }
  20%      { transform: scaleY(1.12) scaleX(0.92) skewX(2deg); opacity: 1; }
  45%      { transform: scaleY(0.88) scaleX(1.08) skewX(-3deg); opacity: 0.75; }
  70%      { transform: scaleY(1.06) scaleX(0.95) skewX(1deg); opacity: 0.95; }
}
@keyframes fs-core-pulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1) scaleX(1); }
  50%      { opacity: 1; transform: scaleY(1.05) scaleX(0.95); }
}

/* Spark particles drift upward with fade */
.fire-scene.step-3-done .fire-spark {
  animation: fs-spark-drift 2.5s ease-out infinite;
}
.fire-scene.step-3-done .fire-spark-1 { animation-delay: 0s; }
.fire-scene.step-3-done .fire-spark-2 { animation-delay: 0.4s; }
.fire-scene.step-3-done .fire-spark-3 { animation-delay: 0.9s; }
.fire-scene.step-3-done .fire-spark-4 { animation-delay: 1.3s; }
.fire-scene.step-3-done .fire-spark-5 { animation-delay: 1.7s; }
.fire-scene.step-3-done .fire-spark-6 { animation-delay: 2.1s; }

@keyframes fs-spark-drift {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  10%  { opacity: 0.8; }
  50%  { opacity: 0.4; transform: translateY(-20px) translateX(var(--spark-dx, 5px)) scale(0.7); }
  100% { opacity: 0; transform: translateY(-45px) translateX(var(--spark-dx, 8px)) scale(0.2); }
}
.fire-spark-1 { --spark-dx: -8px; }
.fire-spark-2 { --spark-dx: 10px; }
.fire-spark-3 { --spark-dx: -4px; }
.fire-spark-4 { --spark-dx: 7px; }
.fire-spark-5 { --spark-dx: -12px; }
.fire-spark-6 { --spark-dx: 6px; }

/* Wood ember glow overlay */
.fire-scene.step-3-done .fire-wood-glow {
  animation: fs-wood-ember 2.5s ease-in-out 0.4s infinite;
}
@keyframes fs-wood-ember {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.55; }
}

/* ---- STATS ---- */
.stats-section { background: linear-gradient(135deg, var(--clr-lavender), var(--clr-peach), var(--clr-coral)); border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); position: relative; }
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,101,26,0.3), transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }
.stat-item { text-align: center; position: relative; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; line-height: 1; margin-bottom: .5rem; }
.stat-label { color: var(--clr-text); font-size: .85rem; font-weight: 500; opacity: .7; }

/* Stat counter progress rings + sparkles */
.stat-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.counter-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-accent-2);
  pointer-events: none;
  animation: sparkle-fly 0.6s ease-out forwards;
}
@keyframes sparkle-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}

/* ---- BENTO GRID ---- */
.bento-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: minmax(200px, auto); gap: var(--space-md); }
.bento-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: all var(--dur-norm) var(--ease-out); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.bento-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(232,101,26,0.03), transparent); opacity: 0; transition: opacity var(--dur-norm); }
.bento-card:hover { border-color: var(--clr-border-hover); transform: translateY(-4px); box-shadow: 0 0 20px rgba(232,101,26,0.08), var(--shadow-md); }
.bento-card:hover::before { opacity: 1; }
.bento-card.span-2 { grid-column: span 2; }
.bento-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); font-size: 1.4rem; }
.bento-icon svg { width: 24px; height: 24px; }
.bento-icon.accent-1 { background: var(--clr-lavender); color: var(--clr-accent); }
.bento-icon.accent-2 { background: var(--clr-pink); color: #C05030; }
.bento-icon.accent-3 { background: var(--clr-sage); color: #8A6A40; }
.bento-icon.accent-4 { background: var(--clr-peach); color: #C06030; }
.bento-card h4 { margin-bottom: var(--space-xs); color: var(--clr-text); }
.bento-card p { font-size: .9rem; }

/* ---- PORTFOLIO CARD FLIP ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
.flip-card { perspective: 1000px; height: 380px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front,
.flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column;
  border: 1px solid var(--clr-border);
  overflow: hidden;
}
.flip-card-front {
  background: var(--clr-bg-card);
  align-items: center; justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.flip-card:hover .flip-card-front { box-shadow: 0 0 20px rgba(232,101,26,0.08), var(--shadow-md); }
.flip-card-front .card-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: var(--space-md);
}
.flip-card-front .card-art {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}
.flip-card:nth-child(1) .card-icon { background: var(--clr-lavender); }
.flip-card:nth-child(2) .card-icon { background: var(--clr-pink); }
.flip-card:nth-child(3) .card-icon { background: var(--clr-sage); }
.flip-card:nth-child(4) .card-icon { background: var(--clr-peach); }
.flip-card:nth-child(5) .card-icon { background: var(--clr-blue); }
.flip-card-front h4 { margin-bottom: var(--space-xs); }
.flip-card-front .label { margin-bottom: var(--space-xs); }
.flip-card-back {
  background: var(--clr-bg-card);
  transform: rotateY(180deg);
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.flip-card-back h4 { margin-bottom: var(--space-sm); color: var(--clr-accent); }
.flip-card-back p { font-size: .9rem; line-height: 1.8; margin-bottom: var(--space-sm); }
.flip-card-back .project-stats { display: flex; gap: var(--space-md); margin-top: auto; }
.flip-card-back .project-stat { text-align: center; }
.flip-card-back .project-stat strong { display: block; font-size: 1.4rem; font-family: var(--font-display); color: var(--clr-accent); }
.flip-card-back .project-stat span { font-size: .75rem; color: var(--clr-text-muted); }

/* ---- DROPPING BUTTONS ---- */
.dropping-section { padding: var(--space-3xl) 0; overflow: hidden; }
.dropping-zone {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-md);
  min-height: 280px;
  align-content: start;
}
.drop-btn {
  opacity: 0;
  transform: translateY(-80px);
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  color: var(--clr-text);
  cursor: pointer;
  transition: box-shadow .3s, border-color .3s;
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}
.drop-btn:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
}
.drop-btn.dropped {
  animation: dropIn .6s var(--ease-spring) forwards;
}
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-80px); }
  60% { opacity: 1; transform: translateY(8px); }
  80% { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.drop-btn .drop-icon { margin-right: .5rem; font-size: 1rem; }
.drop-btn:nth-child(6n+1) { border-left: 3px solid var(--clr-lavender); }
.drop-btn:nth-child(6n+2) { border-left: 3px solid var(--clr-pink); }
.drop-btn:nth-child(6n+3) { border-left: 3px solid var(--clr-sage); }
.drop-btn:nth-child(6n+4) { border-left: 3px solid var(--clr-peach); }
.drop-btn:nth-child(6n+5) { border-left: 3px solid var(--clr-blue); }
.drop-btn:nth-child(6n+6) { border-left: 3px solid var(--clr-coral); }

/* ---- TESTIMONIALS HORIZONTAL SCROLLER ---- */
.testimonials-scroller { overflow: hidden; }
.testimonials-track {
  display: flex;
  gap: var(--space-md);
  animation: testimonialScroll 40s linear infinite;
  width: max-content;
  will-change: transform;
}
.testimonials-scroller:hover .testimonials-track { animation-play-state: paused; }
.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm), box-shadow var(--dur-norm);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--clr-border-hover); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: var(--space-sm); color: #F5A623; font-size: .9rem; }
.testimonial-card blockquote { font-size: .95rem; color: var(--clr-text-dim); margin-bottom: var(--space-md); line-height: 1.7; font-style: italic; position: relative; }
.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 3rem;
  font-family: serif;
  color: var(--clr-accent);
  opacity: 0.1;
  line-height: 1;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--clr-accent);
}
.testimonial-meta strong { display: block; font-size: .85rem; color: var(--clr-text); }
.testimonial-meta span { font-size: .75rem; color: var(--clr-text-muted); }
@keyframes testimonialScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- CEO MESSAGE ---- */
.ceo-section { background: var(--clr-beige); padding: var(--space-3xl) 0; position: relative; overflow: hidden; }
.ceo-section::before {
  content: '\201C';
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 15rem;
  font-family: serif;
  color: var(--clr-accent);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}
.ceo-inner { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 var(--space-md); }
.ceo-inner .accent-bar {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--clr-gradient-1);
  margin: 0 auto var(--space-lg);
  animation: accent-shift 4s ease-in-out infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, #E8651A, #F5A623, #D44B1A, #E8651A);
}
@keyframes accent-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ceo-quote { font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; line-height: 1.8; color: var(--clr-text); margin-bottom: var(--space-lg); font-style: italic; }
.ceo-author { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.ceo-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--clr-gradient-1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; color: #fff; }
.ceo-meta strong { display: block; font-size: 1rem; color: var(--clr-text); }
.ceo-meta span { font-size: .85rem; color: var(--clr-text-muted); }

/* ---- PRICING ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-md); align-items: start; }
.pricing-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); position: relative; transition: all var(--dur-norm) var(--ease-out); box-shadow: var(--shadow-sm); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(232,101,26,0.08), var(--shadow-md); }
.pricing-card.featured { border-color: var(--clr-lavender); border-width: 2px; box-shadow: 0 0 40px rgba(232,101,26,0.12); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: .35rem 1rem; border-radius: var(--radius-full); background: var(--clr-gradient-1); font-size: .75rem; font-weight: 700; color: #fff; white-space: nowrap; }
.pricing-card .label { display: block; margin-bottom: var(--space-xs); }
.pricing-card h3 { margin-bottom: var(--space-xs); color: var(--clr-text); }
.pricing-price { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--clr-text); line-height: 1; margin-bottom: var(--space-md); }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--clr-text-muted); }
.pricing-desc { font-size: .9rem; color: var(--clr-text-dim); margin-bottom: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--clr-border); }
.pricing-features { display: flex; flex-direction: column; gap: .75rem; margin-bottom: var(--space-lg); }
.pricing-feature { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--clr-text-dim); }
.pricing-feature .pf-check { color: var(--clr-accent); font-size: .85rem; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.faq-item { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--dur-fast); box-shadow: var(--shadow-sm); }
.faq-item:hover { border-color: var(--clr-lavender); }
.faq-item.open { border-color: var(--clr-accent); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-align: left; color: var(--clr-text); transition: color var(--dur-fast); }
.faq-question:hover { color: var(--clr-accent); }
.faq-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--dur-norm) var(--ease-spring); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur-norm) var(--ease-out); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 var(--space-md) var(--space-md); font-size: .9rem; color: var(--clr-text-dim); line-height: 1.8; }

/* ---- CTA ---- */
.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-inner { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-xl); padding: var(--space-2xl) var(--space-xl); position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(232,101,26,0.04), rgba(245,166,35,0.04)); pointer-events: none; }
.cta-inner h2 { margin-bottom: var(--space-md); position: relative; }
.cta-inner p { max-width: 500px; margin: 0 auto var(--space-lg); position: relative; font-size: 1.05rem; }
.cta-actions { position: relative; display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }

/* ---- CONTACT SECTION ---- */
.contact-section { position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; max-width: 1000px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-info-item { display: flex; align-items: flex-start; gap: var(--space-sm); }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(232,101,26,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent); font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-text h5 { margin-bottom: .25rem; }
.contact-info-text p { font-size: .9rem; }

.contact-form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .5rem;
  color: var(--clr-text);
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  font-size: .9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  color: var(--clr-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(232,101,26,0.1);
}
.form-control::placeholder { color: var(--clr-text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239A7A6A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ---- Tooltip for coming-soon links ---- */
.coming-soon { position: relative; cursor: default; }
.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: .25rem .5rem;
  background: var(--clr-text);
  color: var(--clr-bg);
  font-size: .65rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.coming-soon:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ---- FOOTER ---- */
.footer { background: var(--clr-bg-alt); border-top: 1px solid var(--clr-border); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-brand p { font-size: .9rem; margin-top: var(--space-sm); max-width: 300px; }
.footer-col h5 { font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: var(--space-md); color: var(--clr-text); }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .85rem; color: var(--clr-text-muted); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--clr-accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--clr-border); font-size: .8rem; color: var(--clr-text-muted); }
.footer-socials { display: flex; gap: var(--space-sm); }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--clr-text-dim); transition: all var(--dur-fast); }
.footer-socials a:hover { border-color: var(--clr-accent); color: var(--clr-accent); background: rgba(232,101,26,0.05); }

/* ---- CUSTOM CURSOR FOLLOWER ---- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  pointer-events: none;
  z-index: 99998;
  mix-blend-mode: normal;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.cursor-dot.visible { opacity: 0.8; }
.cursor-dot.expanded {
  width: 24px;
  height: 24px;
  margin-left: -8px;
  margin-top: -8px;
  opacity: 0.4;
  mix-blend-mode: screen;
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media(max-width:1024px) {
  .service-card-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .service-card-layout.reversed { direction: ltr; }
  .service-visual { aspect-ratio: 16/10; }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-card.span-2 { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .fire-scene { width: 200px; height: 130px; }
  .dual-banners-inner { grid-template-columns: 1fr; height: auto; gap: var(--space-md); }
  .banner-column { height: 280px; }
  .dual-banners-center { order: -1; padding-bottom: var(--space-md); }
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  /* Reduce reveal-left/right offset to prevent overflow */
  .reveal-left { transform: translateX(-30px); }
  .reveal-right { transform: translateX(30px); }
}

/* Mobile */
@media(max-width:768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
    --space-lg: 1.5rem;
    --nav-h: 60px;
  }

  /* Fire scene — shrink on mobile */
  .fire-scene { width: 160px; height: 100px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu — fire themed */
  .mobile-menu {
    display: flex;
    background: rgba(26,8,0,0.97);
    backdrop-filter: blur(24px);
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md);
  }
  .mobile-menu a {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    text-align: center;
  }
  .mobile-menu a:hover,
  .mobile-menu a:active { color: var(--clr-accent-2); }
  .mobile-menu .btn.btn-primary {
    margin-top: var(--space-sm);
    width: 100%;
    justify-content: center;
    border-bottom: none;
    font-size: 1rem;
  }
  .nav-toggle span { background: var(--clr-text); }
  .nav-toggle.active span { background: #fff; }

  /* Hero */
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); padding-top: calc(var(--nav-h) + 1rem); }
  .hero-content { padding: 0 var(--space-xs); }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); margin-bottom: var(--space-sm); }
  .hero p.hero-sub { font-size: .95rem; line-height: 1.6; margin-bottom: var(--space-md); }
  .hero-badge { font-size: .75rem; padding: .4rem 1rem; margin-bottom: var(--space-md); }
  .hero-actions { gap: .75rem; margin-bottom: var(--space-lg); }
  .hero-actions .btn { padding: .75rem 1.5rem; font-size: .9rem; }

  /* Reduce glow orbs on mobile */
  .hero-bg .glow-orb-1 { width: 250px; height: 250px; }
  .hero-bg .glow-orb-2 { width: 200px; height: 200px; }
  .hero-bg .glow-orb-3 { width: 150px; height: 150px; }

  /* Hide half the embers on mobile for cleaner look */
  .ember:nth-child(n+7) { display: none; }

  /* Logo banner */
  .logo-banner { padding: var(--space-md) 0; }
  .logo-banner-track .logo-placeholder { height: 28px !important; }

  /* Service tabs — horizontal scroll on mobile */
  .services-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .5rem;
    gap: .4rem;
  }
  .services-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; padding: .6rem 1.2rem; font-size: .8rem; }

  /* Service visual */
  .service-visual { aspect-ratio: 16/10; }
  .service-info h3 { font-size: 1.2rem; }

  /* Dual banners — hide banner columns on mobile, only show center CTA */
  .dual-banners { padding: var(--space-xl) 0; }
  .banner-column { display: none; }
  .dual-banners-center { padding: var(--space-lg) var(--space-md); }
  .dual-banners-center h2 { font-size: 1.5rem; }

  /* Section headers */
  .section-header { margin-bottom: var(--space-lg); }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-header p { font-size: .9rem; }

  /* Bento */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { padding: var(--space-md); }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .stat-value { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* Portfolio — flip cards */
  .portfolio-grid { gap: var(--space-md); }
  .flip-card { height: 320px; }
  .flip-card-front { padding: var(--space-lg) var(--space-md); }
  .flip-card-front .card-icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: var(--space-sm); }
  .flip-card-front h4 { font-size: 1.1rem; }
  .flip-card-front p { font-size: .85rem; }
  .flip-card-back { padding: var(--space-lg) var(--space-md); }
  .flip-card-back h4 { font-size: 1.05rem; }
  .flip-card-back p { font-size: .8rem; line-height: 1.6; margin-bottom: var(--space-xs); }
  .flip-card-back .project-stats { gap: var(--space-sm); }
  .flip-card-back .project-stat strong { font-size: 1.2rem; }

  /* Dropping buttons */
  .dropping-zone {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    min-height: auto;
  }
  .drop-btn { padding: .6rem 1rem; font-size: .75rem; }
  .drop-btn .drop-icon { font-size: .85rem; }

  /* Testimonials */
  .testimonial-card { width: 280px; padding: var(--space-md); }
  .testimonial-card blockquote { font-size: .85rem; margin-bottom: var(--space-sm); }

  /* CEO */
  .ceo-section { padding: var(--space-xl) 0; }
  .ceo-quote { font-size: clamp(1rem, 3.5vw, 1.3rem); line-height: 1.7; }
  .ceo-avatar { width: 44px; height: 44px; font-size: .9rem; }
  .ceo-meta strong { font-size: .9rem; }
  .ceo-meta span { font-size: .75rem; }

  /* Pricing */
  .pricing-price { font-size: 2.4rem; }

  /* FAQ */
  .faq-question { padding: var(--space-sm); font-size: .9rem; }
  .faq-answer-inner { padding: 0 var(--space-sm) var(--space-sm); font-size: .85rem; }

  /* CTA */
  .cta-inner { padding: var(--space-xl) var(--space-md); border-radius: var(--radius-lg); }
  .cta-inner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-inner p { font-size: .9rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: var(--space-xl) 0 var(--space-md); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-brand p { max-width: 100%; }
  .footer-col { border-top: 1px solid var(--clr-border); padding-top: var(--space-md); }
  .footer-col h5 { margin-bottom: var(--space-sm); }
  .footer-col ul { flex-direction: row; flex-wrap: wrap; gap: .5rem var(--space-md); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* Intro overlay */
  .intro-logo-reveal .intro-h8d { font-size: clamp(2.5rem, 12vw, 4rem); }
  .intro-logo-reveal .intro-tagline { font-size: .65rem; letter-spacing: .1em; }

  /* Reveal animations — smaller offsets for mobile */
  .reveal { transform: translateY(20px); }
  .reveal-left { transform: translateX(-20px); }
  .reveal-right { transform: translateX(20px); }
  .reveal-scale { transform: scale(.95); }
}

/* Small phone */
@media(max-width:480px) {
  :root {
    --space-3xl: 3rem;
    --space-2xl: 2.5rem;
  }

  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

  .portfolio-grid { grid-template-columns: 1fr; }
  .flip-card { height: 300px; }

  .dropping-zone { grid-template-columns: 1fr 1fr; }
  .drop-btn { padding: .5rem .75rem; font-size: .7rem; }

  .testimonial-card { width: 260px; }

  .pricing-price { font-size: 2rem; }
  .pricing-card { padding: var(--space-lg) var(--space-md); }

  .mobile-menu a { font-size: 1.2rem; }
}

/* Very small phone (320px) */
@media(max-width:360px) {
  .container { padding: 0 var(--space-sm); }
  .hero h1 { font-size: 1.5rem; }
  .hero p.hero-sub { font-size: .85rem; }
  .section-header h2 { font-size: 1.3rem; }
  .tab-btn { padding: .5rem .9rem; font-size: .75rem; }
  .flip-card { height: 280px; }
  .flip-card-back p { font-size: .75rem; }
  .dropping-zone { grid-template-columns: 1fr; }
  .cta-inner { padding: var(--space-lg) var(--space-sm); }
}

/* Touch device — disable hover-dependent effects */
@media(hover: none) {
  .bento-card:hover { transform: none; }
  .bento-card:hover::before { opacity: 0; }
  .flip-card-front:active { box-shadow: var(--shadow-lg); }
  .testimonial-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-secondary:hover { transform: none; }
}

/* Reduce motion for accessibility — graceful, not nuclear */
@media(prefers-reduced-motion: reduce) {
  .hero-embers { display: none; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-rotate, .reveal-blur {
    transition-duration: .3s !important;
  }
  .reveal-blur { filter: none; }
  .hero .gradient-text { animation: none; }
  .kc-body, .kc-head-g, .kc-tail, .kc-flame-tuft, .kc-ember-glow, .cole-ember, .cole-spark, .cole-sparkle,
  .cole-flame-l1, .cole-flame-l2, .cole-flame-l3, .cole-flame-r1, .cole-flame-r2, .cole-flame-r3,
  .cole-flame-top1, .cole-flame-top2, .cole-flame-top3,
  .cole-flame-top-mid1, .cole-flame-top-mid2, .cole-flame-top-mid3,
  .cole-flame-top-inner1, .cole-flame-top-inner2, .cole-flame-top-inner3 { animation: none !important; }
  .fire-scene .fire-log, .fire-scene .fire-stick, .fire-scene .fire-stick-bar,
  .fire-scene .smoke-particle,
  .fire-scene .fire-outer, .fire-scene .fire-outer-2,
  .fire-scene .fire-mid, .fire-scene .fire-mid-2,
  .fire-scene .fire-inner, .fire-scene .fire-core,
  .fire-scene .fire-spark, .fire-scene .fire-wood-glow,
  .fire-scene .fire-base-glow { animation-duration: 0.01s !important; }
  .logo-banner-track, .testimonials-track, .banner-scroll-up, .banner-scroll-down { animation: none; }
  .cursor-dot { display: none; }
}

/* ============================================================
   CHATBOT WIDGET — Cole (Charcoal Cube)
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.chatbot.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chatbot.dismissed { display: none; }

/* ---- Toggle Button (transparent — cat IS the button) ---- */
.chatbot-toggle {
  width: 68px;
  height: 76px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform .3s ease;
}
.chatbot-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(232,101,26,0.25), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.chatbot-toggle:hover { transform: scale(1.08); }
.chatbot.open .chatbot-toggle { display: none; }

/* ---- Cole Cube SVG ---- */
.kindle-cat { position: relative; }
.kc-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(232,101,26,0.35)) drop-shadow(0 0 20px rgba(245,166,35,0.15));
}
.chatbot-toggle .kc-svg {
  filter: drop-shadow(0 3px 12px rgba(232,101,26,0.4)) drop-shadow(0 0 24px rgba(245,166,35,0.2));
}
.chatbot-toggle:hover .kc-svg {
  filter: drop-shadow(0 4px 16px rgba(232,101,26,0.5)) drop-shadow(0 0 32px rgba(245,166,35,0.3));
}
.kindle-cat-sm { width: 36px; height: 36px; }
.kindle-cat-sm .kc-svg { filter: none; }

/* ---- Cole idle breathing bob ---- */
.kc-body { animation: cole-idle-bob 3.5s ease-in-out infinite; transform-origin: 50px 60px; }
@keyframes cole-idle-bob {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-1.5px) scaleY(1.008); }
}

/* ---- Flame flicker (outer flames) ---- */
.kc-flame-tuft { animation: cole-flame-flicker 2.2s ease-in-out infinite; transform-origin: 50px 30px; }
@keyframes cole-flame-flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) skewX(0deg); opacity: 0.7; }
  20% { transform: scaleY(1.12) scaleX(0.94) skewX(4deg); opacity: 0.85; }
  40% { transform: scaleY(0.88) scaleX(1.06) skewX(-3deg); opacity: 0.65; }
  60% { transform: scaleY(1.08) scaleX(0.96) skewX(2deg); opacity: 0.8; }
  80% { transform: scaleY(0.95) scaleX(1.03) skewX(-2deg); opacity: 0.72; }
}

/* ---- Side flame sway animations ---- */
.cole-flame-l1 { animation: cole-side-flame-l 3s ease-in-out infinite; transform-origin: 22px 68px; }
.cole-flame-l2 { animation: cole-side-flame-l 2.8s ease-in-out 0.3s infinite; transform-origin: 26px 70px; }
.cole-flame-l3 { animation: cole-side-flame-l 2.5s ease-in-out 0.6s infinite; transform-origin: 29px 72px; }
.cole-flame-r1 { animation: cole-side-flame-r 3s ease-in-out 0.2s infinite; transform-origin: 78px 68px; }
.cole-flame-r2 { animation: cole-side-flame-r 2.8s ease-in-out 0.5s infinite; transform-origin: 74px 70px; }
.cole-flame-r3 { animation: cole-side-flame-r 2.5s ease-in-out 0.8s infinite; transform-origin: 71px 72px; }
@keyframes cole-side-flame-l {
  0%, 100% { transform: scaleY(1) skewX(0deg); opacity: 0.5; }
  30% { transform: scaleY(1.15) skewX(-5deg); opacity: 0.65; }
  60% { transform: scaleY(0.9) skewX(3deg); opacity: 0.45; }
}
@keyframes cole-side-flame-r {
  0%, 100% { transform: scaleY(1) skewX(0deg); opacity: 0.5; }
  30% { transform: scaleY(1.15) skewX(5deg); opacity: 0.65; }
  60% { transform: scaleY(0.9) skewX(-3deg); opacity: 0.45; }
}

/* ---- Top flame individual sway ---- */
.cole-flame-top1 { animation: cole-top-flame-sway 2.6s ease-in-out infinite; transform-origin: 40px 32px; }
.cole-flame-top2 { animation: cole-top-flame-sway 2.4s ease-in-out 0.4s infinite; transform-origin: 50px 28px; }
.cole-flame-top3 { animation: cole-top-flame-sway 2.6s ease-in-out 0.8s infinite; transform-origin: 60px 32px; }
.cole-flame-top-mid1 { animation: cole-top-flame-inner-sway 2.2s ease-in-out 0.1s infinite; transform-origin: 44px 30px; }
.cole-flame-top-mid2 { animation: cole-top-flame-inner-sway 2s ease-in-out 0.5s infinite; transform-origin: 50px 26px; }
.cole-flame-top-mid3 { animation: cole-top-flame-inner-sway 2.2s ease-in-out 0.9s infinite; transform-origin: 56px 30px; }
.cole-flame-top-inner1 { animation: cole-top-flame-core 1.8s ease-in-out 0.2s infinite; transform-origin: 47px 28px; }
.cole-flame-top-inner2 { animation: cole-top-flame-core 1.6s ease-in-out infinite; transform-origin: 50px 24px; }
.cole-flame-top-inner3 { animation: cole-top-flame-core 1.8s ease-in-out 0.4s infinite; transform-origin: 53px 28px; }
@keyframes cole-top-flame-sway {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  25% { transform: scaleY(1.1) skewX(4deg); }
  50% { transform: scaleY(0.92) skewX(-2deg); }
  75% { transform: scaleY(1.06) skewX(3deg); }
}
@keyframes cole-top-flame-inner-sway {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  30% { transform: scaleY(1.12) scaleX(0.95); }
  60% { transform: scaleY(0.9) scaleX(1.05); }
}
@keyframes cole-top-flame-core {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.85; }
  50% { transform: scaleY(1.15) translateY(-1px); opacity: 1; }
}

/* ---- Ember spot pulse ---- */
.cole-ember { animation: cole-ember-pulse 3s ease-in-out infinite; }
.cole-ember-1 { animation-delay: 0s; }
.cole-ember-2 { animation-delay: 0.7s; }
.cole-ember-3 { animation-delay: 1.4s; }
.cole-ember-4 { animation-delay: 2.1s; }
.cole-ember-5 { animation-delay: 2.8s; }
@keyframes cole-ember-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ---- Sparkle dot twinkle ---- */
.cole-sparkle { animation: cole-sparkle-twinkle 2.5s ease-in-out infinite; }
.cole-sparkle-1 { animation-delay: 0s; }
.cole-sparkle-2 { animation-delay: 0.5s; }
.cole-sparkle-3 { animation-delay: 1s; }
.cole-sparkle-4 { animation-delay: 1.5s; }
.cole-sparkle-5 { animation-delay: 2s; }
.cole-sparkle-6 { animation-delay: 0.3s; }
@keyframes cole-sparkle-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

/* ---- Under-glow pulse ---- */
.kc-ember-glow { animation: cole-glow-pulse 3.5s ease-in-out infinite; transform-origin: 50px 100px; }
@keyframes cole-glow-pulse {
  0%, 100% { opacity: 0.3; transform: scaleX(1) scaleY(1); }
  50% { opacity: 0.55; transform: scaleX(1.12) scaleY(1.2); }
}

/* ---- Spark drift upward ---- */
.cole-spark { animation: cole-spark-drift 2.8s ease-out infinite; }
.cole-spark-1 { animation-delay: 0s; }
.cole-spark-2 { animation-delay: 0.7s; }
.cole-spark-3 { animation-delay: 1.3s; }
.cole-spark-4 { animation-delay: 1.9s; }
.cole-spark-5 { animation-delay: 2.3s; }
@keyframes cole-spark-drift {
  0% { transform: translateY(0) translateX(0); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-10px) translateX(4px); opacity: 0; }
}

/* ---- Flame sway (mapped to kc-tail for JS hooks) ---- */
.kc-tail { animation: cole-flame-sway 4.5s ease-in-out infinite; transform-origin: 50px 30px; }
@keyframes cole-flame-sway {
  0%, 100% { transform: skewX(0deg) scaleY(1); }
  25% { transform: skewX(2.5deg) scaleY(1.03); }
  50% { transform: skewX(0deg) scaleY(0.97); }
  75% { transform: skewX(-2.5deg) scaleY(1.02); }
}

/* ---- Head bob (top face subtle shift) ---- */
.kc-head-g { animation: cole-head-bob 6s ease-in-out infinite; transform-origin: 50px 36px; }
@keyframes cole-head-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5px); }
}

/* ---- Blink ---- */
.kindle-cat.kc-blink .kc-eye-l,
.kindle-cat.kc-blink .kc-eye-r { transform: scaleY(0.08); }
.kindle-cat.kc-blink .kc-eye-l { transform-origin: 38px 52px; }
.kindle-cat.kc-blink .kc-eye-r { transform-origin: 62px 50px; }
.kindle-cat.kc-blink .kc-pupil-l,
.kindle-cat.kc-blink .kc-pupil-r,
.kindle-cat.kc-blink .kc-iris-l,
.kindle-cat.kc-blink .kc-iris-r { opacity: 0; }
.kc-eye-l, .kc-eye-r, .kc-pupil-l, .kc-pupil-r, .kc-iris-l, .kc-iris-r { transition: transform .1s ease, opacity .1s ease; }

/* ---- Sniff (slight forward lean) ---- */
.kindle-cat.kc-sniff .kc-body {
  animation: cole-sniff 2s ease-in-out;
  transform-origin: 50px 88px;
}
@keyframes cole-sniff {
  0%, 100% { transform: rotate(0); }
  30%, 70% { transform: rotate(3deg); }
}

/* ---- Look Around ---- */
.kindle-cat.kc-look .kc-pupil-l,
.kindle-cat.kc-look .kc-pupil-r,
.kindle-cat.kc-look .kc-iris-l,
.kindle-cat.kc-look .kc-iris-r {
  animation: kc-look-pupils 2.2s ease-in-out;
}
@keyframes kc-look-pupils {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2.5px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(2.5px); }
}

/* ---- Flame dance (mapped from tail-wag) ---- */
.kindle-cat.kc-tail-wag .kc-tail {
  animation: cole-flame-dance 2s ease-in-out !important;
  transform-origin: 50px 30px;
}
@keyframes cole-flame-dance {
  0%, 100% { transform: skewX(0) scaleY(1); }
  15% { transform: skewX(-8deg) scaleY(1.25); }
  30% { transform: skewX(10deg) scaleY(1.15); }
  45% { transform: skewX(-6deg) scaleY(1.3); }
  60% { transform: skewX(8deg) scaleY(1.2); }
  75% { transform: skewX(-4deg) scaleY(1.1); }
  90% { transform: skewX(3deg) scaleY(1.05); }
}

/* ---- Stretch (squash and stretch cube) ---- */
.kindle-cat.kc-stretch .kc-body {
  animation: cole-stretch 2.2s ease-in-out !important;
  transform-origin: 50px 88px;
}
@keyframes cole-stretch {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  30%, 50% { transform: scaleX(1.1) scaleY(0.9); }
}

/* ---- Talking (eyes bounce + mouth hint) ---- */
.kindle-cat.kc-talking .kc-eyes-g {
  animation: cole-talk .35s ease-in-out infinite alternate;
}
.kindle-cat.kc-talking .kc-mouth {
  animation: cole-mouth-talk .3s ease-in-out infinite alternate;
}
@keyframes cole-talk {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1.2px); }
}
@keyframes cole-mouth-talk {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.4); }
}

/* ---- Thinking (eyes up, tilt) ---- */
.kindle-cat.kc-thinking .kc-pupil-l,
.kindle-cat.kc-thinking .kc-pupil-r,
.kindle-cat.kc-thinking .kc-iris-l,
.kindle-cat.kc-thinking .kc-iris-r {
  transform: translateY(-2.5px);
}
.kindle-cat.kc-thinking .kc-body {
  animation: cole-think-tilt 1.2s ease-in-out infinite;
  transform-origin: 50px 60px;
}
@keyframes cole-think-tilt {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-3deg); }
}

/* ---- Warm (mapped from purr) — embers glow intensely ---- */
.kindle-cat.kc-purr .cole-ember {
  animation: cole-warm-glow 0.4s ease-in-out infinite alternate !important;
}
.kindle-cat.kc-purr .cole-sparkle {
  animation: cole-warm-sparkle 0.3s ease-in-out infinite alternate !important;
}
@keyframes cole-warm-glow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}
@keyframes cole-warm-sparkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ---- Spark (mapped from ear-twitch) — spark shoots off ---- */
.kindle-cat.kc-ear-twitch .cole-spark {
  animation: cole-spark-shoot 0.3s ease-out !important;
}
@keyframes cole-spark-shoot {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-14px) translateX(6px) scale(0); opacity: 0; }
}

/* ---- Wobble (mapped from paw-wave) — cube rocks ---- */
.kindle-cat.kc-paw-wave .kc-body {
  animation: cole-wobble 1.8s ease-in-out !important;
  transform-origin: 50px 88px;
}
@keyframes cole-wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(3deg); }
}

/* ---- Lick remapped to warm glow ---- */
.kindle-cat.kc-lick .cole-ember {
  animation: cole-warm-glow 0.5s ease-in-out infinite alternate !important;
}
.kindle-cat.kc-lick .kc-tail {
  animation: cole-flame-dance 2s ease-in-out !important;
  transform-origin: 50px 30px;
}

/* ---- Happy Eyes (crescents) ---- */
.kindle-cat.kc-happy .kc-eye-l,
.kindle-cat.kc-happy .kc-eye-r { transform: scaleY(0.12); }
.kindle-cat.kc-happy .kc-eye-l { transform-origin: 38px 52px; }
.kindle-cat.kc-happy .kc-eye-r { transform-origin: 62px 50px; }
.kindle-cat.kc-happy .kc-pupil-l,
.kindle-cat.kc-happy .kc-pupil-r,
.kindle-cat.kc-happy .kc-iris-l,
.kindle-cat.kc-happy .kc-iris-r { opacity: 0; }
.kindle-cat.kc-happy .cole-ember { animation: cole-warm-glow 0.3s ease-in-out infinite alternate !important; }

/* ---- Sad (eyes droop, flame shrinks) ---- */
.kindle-cat.kc-sad .kc-eye-l,
.kindle-cat.kc-sad .kc-eye-r { transform: scaleY(0.6) translateY(2px); }
.kindle-cat.kc-sad .kc-eye-l { transform-origin: 38px 52px; }
.kindle-cat.kc-sad .kc-eye-r { transform-origin: 62px 50px; }
.kindle-cat.kc-sad .kc-tail { transform: scaleY(0.5); transform-origin: 50px 30px; }

/* ---- Sucked into Black Hole ---- */
.kindle-cat.kc-sucked {
  animation: kc-sucked-in 1s ease-in forwards;
}
@keyframes kc-sucked-in {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  40% { transform: scale(0.6) rotate(180deg); opacity: 0.8; }
  70% { transform: scale(0.25) rotate(500deg); opacity: 0.4; }
  100% { transform: scale(0) rotate(720deg); opacity: 0; }
}

/* ---- Black Hole ---- */
.kindle-blackhole {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1;
  background: radial-gradient(circle, #000 25%, #0a0200 55%, transparent 72%);
  pointer-events: none;
  transition: transform .6s cubic-bezier(.17,.67,.29,1.2), opacity .4s ease;
  opacity: 0;
}
.kindle-blackhole::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0%, rgba(232,101,26,0.3) 15%, transparent 30%,
    rgba(245,166,35,0.2) 45%, transparent 60%,
    rgba(212,75,26,0.25) 75%, transparent 90%);
  animation: blackhole-spin .8s linear infinite;
}
.kindle-blackhole::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #000 40%, rgba(10,2,0,0.8) 70%, transparent 100%);
}
.kindle-blackhole.grow {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.kindle-blackhole.close {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .5s cubic-bezier(.55,.06,.68,.19), opacity .5s ease;
}
@keyframes blackhole-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ---- Paw Print Return Button ---- */
.kindle-paw-return {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232,101,26,0.2);
  background: rgba(26,15,5,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .4s ease, transform .4s ease, box-shadow .3s ease;
  box-shadow: 0 2px 12px rgba(232,101,26,0.15);
}
.kindle-paw-return.visible {
  opacity: 1;
  transform: scale(1);
}
.kindle-paw-return:hover {
  box-shadow: 0 2px 20px rgba(245,166,35,0.4);
  transform: scale(1.1);
}

/* ---- Greeting Bubble ---- */
.chatbot-bubble {
  position: absolute;
  bottom: 82px;
  right: 0;
  background: #1a0f05;
  color: rgba(245,166,35,0.9);
  font-family: var(--font-body);
  font-size: .82rem;
  padding: .5rem .85rem;
  border-radius: 12px 12px 4px 12px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: 1px solid rgba(232,101,26,0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.chatbot.greeting .chatbot-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Badge ---- */
.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E8651A;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

/* ---- Chat Window ---- */
.chatbot-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  height: 480px;
  background: #110a04;
  border: 1px solid rgba(232,101,26,0.15);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 30px rgba(232,101,26,0.1);
}
.chatbot.open .chatbot-window {
  display: flex;
  animation: chat-open .35s ease-out;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: #1a0f05;
  border-bottom: 1px solid rgba(232,101,26,0.12);
}
.chatbot-header-mascot { flex-shrink: 0; }
.chatbot-header-info { flex: 1; }
.chatbot-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: #F5A623;
}
.chatbot-status {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(245,166,35,0.5);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chatbot-close {
  background: none;
  border: none;
  color: rgba(245,166,35,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 .25rem;
  line-height: 1;
  transition: color .2s;
}
.chatbot-close:hover { color: #F5A623; }

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,101,26,0.2) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(232,101,26,0.2); border-radius: 2px; }

.cb-msg {
  max-width: 85%;
  padding: .6rem .85rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.5;
  animation: msg-in .3s ease-out;
}
.cb-msg-bot {
  align-self: flex-start;
  background: #1e1208;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(232,101,26,0.1);
  border-bottom-left-radius: 4px;
}
.cb-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #E8651A, #D44B1A);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Quick reply chips */
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 1rem .5rem;
}
.cb-chip {
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232,101,26,0.25);
  background: rgba(232,101,26,0.08);
  color: rgba(245,166,35,0.9);
  font-family: var(--font-body);
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s ease;
}
.cb-chip:hover {
  background: rgba(232,101,26,0.15);
  border-color: rgba(232,101,26,0.4);
}

/* Typing indicator */
.cb-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: .65rem .85rem;
}
.cb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,166,35,0.5);
  animation: typing-bounce .6s ease-in-out infinite;
}
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }

/* Input */
.chatbot-input-wrap {
  display: flex;
  gap: .5rem;
  padding: .65rem .75rem;
  border-top: 1px solid rgba(232,101,26,0.12);
  background: #1a0f05;
}
.chatbot-input {
  flex: 1;
  background: #110a04;
  border: 1px solid rgba(232,101,26,0.15);
  border-radius: 8px;
  padding: .5rem .75rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.chatbot-input::placeholder { color: rgba(245,166,35,0.3); }
.chatbot-input:focus { border-color: rgba(232,101,26,0.4); }
.chatbot-send {
  background: linear-gradient(135deg, #E8651A, #D44B1A);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s;
  flex-shrink: 0;
}
.chatbot-send:hover { opacity: 0.85; }

/* ---- Shared Animations ---- */
@keyframes chat-open {
  0% { opacity: 0; transform: translateY(16px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes msg-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ---- Chatbot Responsive ---- */
@media(max-width: 767px) {
  .chatbot { bottom: .75rem; right: .75rem; }
  .chatbot-toggle { width: 56px; height: 64px; }
  .chatbot-window {
    width: calc(100vw - 1.5rem);
    height: calc(100vh - 8rem);
    max-height: 500px;
    bottom: 0;
    right: 0;
  }
}
