/* ══════════════════════════════════════════
   Balsam Digital — Design System
   Fonts: Exo 2 (display) · DM Sans (body)
   Theme: Dark executive consulting
══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --bg:             #07090E;
  --surface:        #0C101A;
  --surface-raised: #111724;
  --surface-border: #18202E;
  --text:           #F0EDE8;
  --text-body:      #E8ECF4;
  --text-muted:     #A8B0C4;
  --text-ghost:     #1C2436;
  --primary:        #2859EE;
  --primary-mid:    #3D6CF5;
  --primary-dim:    rgba(40, 89, 238, 0.12);
  --gold:           #C4991E;
  --gold-mid:       #D4AA38;
  --gold-dim:       rgba(196, 153, 30, 0.15);
  --border:         rgba(255, 255, 255, 0.07);
  --border-subtle:  rgba(255, 255, 255, 0.04);

  --font-display:   'Exo 2', system-ui, sans-serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  --radius:         10px;
  --radius-sm:      6px;
  --max-width:      1080px;
  --nav-height:     70px;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition:     0.25s ease;
}

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

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

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ── Section label ── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Section h2 ── */
section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

/* Scroll-margin for fixed nav */
section, footer { scroll-margin-top: var(--nav-height); }

/* ════════════════════════════
   Navigation
════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-height);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
}
.site-header.scrolled .nav-inner {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555e72;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover { color: #0d1117; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(40, 89, 238, 0.35);
  border-radius: 100px;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--primary) !important;
  transition: background var(--transition), border-color var(--transition), color var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle:hover span { background: var(--text); }

/* ════════════════════════════
   Buttons
════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.825rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 0.15s, box-shadow var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(40, 89, 238, 0.3);
}
.btn-primary:hover {
  background: var(--primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(40, 89, 238, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-raised);
}
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════
   Hero
════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 5rem) 0 6rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
}
.hero-glow-blue {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(40, 89, 238, 0.13) 0%, transparent 65%);
  top: -25%;
  right: -12%;
  animation: glowDrift 14s ease-in-out infinite;
}
.hero-glow-gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 153, 30, 0.09) 0%, transparent 65%);
  bottom: -15%;
  left: -8%;
  animation: glowDrift 18s ease-in-out infinite reverse;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.25rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

/* Line-reveal for h1 */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2rem;
}
.hero-line { display: block; overflow: hidden; }
.hero-line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 1s var(--ease-out) forwards;
}
.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.05s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.2s; }

/* Second line accent color on the period */
.hero-accent { color: var(--gold-mid); }

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

.hero-sub {
  font-size: 1.44rem;
  font-weight: 400;
  color: var(--text-body);
  max-width: 660px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
  animation: fadeUp 0.7s ease 0.55s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeUp 0.7s ease 0.72s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  animation: fadeUp 0.7s ease 0.88s both;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.35rem; padding-right: 3.5rem; }
.hero-stat-divider {
  width: 1px;
  height: 52px;
  background: var(--border);
  margin-right: 3.5rem;
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  max-width: 120px;
  line-height: 1.4;
}

/* ════════════════════════════
   Data Chart
════════════════════════════ */
.data-chart {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chart-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-top: 1.25rem;
}

.chart-highlights {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 3.5rem 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chart-highlight {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-highlight-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

.highlight-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold-mid);
}

.highlight-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 240px;
}

.chart-wrap {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
}

.chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 340px !important;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  justify-content: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.legend-dot {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-dot-adopter { background: var(--primary); }
.legend-dot-laggard { background: var(--gold); }

@media (max-width: 600px) {
  .chart-highlights { flex-direction: column; }
  .chart-highlight-divider { width: auto; height: 1px; align-self: stretch; }
  .chart-highlight { padding: 1.5rem; }
  .chart-wrap canvas { height: 240px !important; }
}

/* ════════════════════════════
   Services
════════════════════════════ */
.services {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}
.section-header { margin-bottom: 3.5rem; }

.service-list { border-top: 1px solid var(--border); }
.service-row {
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.service-row::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.6s var(--ease-out);
  z-index: 1;
}
.service-row:hover::after { width: 100%; }

.service-row-inner {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 0 2rem;
  padding: 2.5rem 0;
  align-items: start;
  cursor: default;
}
.service-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-ghost);
  line-height: 1;
  padding-top: 0.15rem;
  transition: color 0.3s;
  user-select: none;
}
.service-row:hover .service-num { color: var(--primary); }

.service-title-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.service-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-body > p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
}
.service-arrow {
  font-size: 1.1rem;
  color: var(--text-ghost);
  padding-top: 0.3rem;
  transition: color 0.25s, transform 0.25s;
  user-select: none;
}
.service-row:hover .service-arrow {
  color: var(--primary);
  transform: translate(3px, -3px);
}
.service-row[data-animate] { transition-delay: calc(var(--row-index, 0) * 55ms); }

/* ════════════════════════════
   Visual Break
════════════════════════════ */
.visual-break {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Actual image (shown when images/visual-break.jpg exists) */
.vb-img-wrap {
  position: absolute;
  inset: 0;
}
.vb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CSS art fallback — visible when no image or as atmospheric base */
.vb-img-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(40, 89, 238, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 15% 40%, rgba(196, 153, 30, 0.1) 0%, transparent 55%),
    /* Subtle circuit-board-style grid lines */
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(40, 89, 238, 0.05) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(40, 89, 238, 0.05) 60px),
    var(--surface);
}

/* Dark overlay to ensure text reads clearly over any image */
.vb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 9, 14, 0.88) 0%,
    rgba(7, 9, 14, 0.65) 55%,
    rgba(7, 9, 14, 0.30) 100%
  );
  z-index: 1;
}

.vb-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
}
.vb-content { max-width: 640px; }
.vb-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.vb-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.vb-quote em {
  font-style: normal;
  color: var(--gold-mid);
  font-weight: 800;
}
.vb-cite {
  font-size: 0.985rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ════════════════════════════
   About
════════════════════════════ */
.about {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-left h2 { margin-bottom: 1.75rem; }
.about-left p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 460px;
}
.substack-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  transition: color var(--transition), border-color var(--transition);
}
.substack-link:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.link-arrow { transition: transform var(--transition); }
.substack-link:hover .link-arrow { transform: translate(3px, -3px); }

/* Portrait image slot */
.about-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  /* CSS art fallback — shows when images/about.jpg doesn't exist yet */
  background:
    radial-gradient(ellipse 70% 90% at 40% 60%, rgba(40, 89, 238, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 75% 25%, rgba(196, 153, 30, 0.14) 0%, transparent 50%),
    repeating-linear-gradient(135deg, transparent, transparent 28px, rgba(40, 89, 238, 0.03) 29px),
    var(--surface-raised);
  border: 1px solid var(--border);
}
/* Decorative corner accent */
.about-portrait::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  z-index: 2;
  opacity: 0.5;
}
.about-portrait::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  z-index: 2;
  opacity: 0.5;
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.expertise-list { border-top: 1px solid var(--border); }
.expertise-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.expertise-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.expertise-item p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Ghost number */
.about-deco {
  position: absolute;
  right: -1rem;
  bottom: -3rem;
  font-family: var(--font-display);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 800;
  color: var(--text-ghost);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════
   FAQ
════════════════════════════ */
.faq-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--text); }
.faq-question span { flex: 1; }
.faq-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-ghost);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--text-muted); }
.faq-item.open .faq-question { color: var(--text); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner {
  padding: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 720px;
}

/* ════════════════════════════
   Contact
════════════════════════════ */
.contact {
  padding: 7rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.contact-header { max-width: 560px; margin-bottom: 3.5rem; }
.contact-header h2 { margin-bottom: 1rem; }
.contact-header p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ════════════════════════════
   Footer
════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); opacity: 0.45; }
.footer-substack {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.45;
  transition: opacity var(--transition), color var(--transition);
}
.footer-substack:hover { opacity: 1; color: var(--gold); }

/* ════════════════════════════
   Scroll Animations
════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.service-row[data-animate] { transform: translateY(10px); }

/* ════════════════════════════
   Chat Widget
════════════════════════════ */
#chat-widget {
  position: fixed;
  bottom: 0;
  right: 3rem;
  z-index: 1000;
}
#chat-widget.widget--left {
  left: 3rem;
  right: auto;
}
#chat-widget.widget--left .chat-panel {
  left: 0;
  right: auto;
  transform-origin: bottom left;
}

/* ── Robot trigger ── */
.robot-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transform: translateY(170px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.robot-trigger.robot-peek {
  transform: translateY(0);
  opacity: 1;
}
.robot-trigger.robot-hide {
  transform: translateY(170px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.25s ease;
}

/* Sign */
.robot-sign-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  animation: signSway 4.5s ease-in-out infinite;
}
@keyframes signSway {
  0%, 100% { transform: rotate(-2.5deg); }
  50%       { transform: rotate(2deg); }
}
.robot-sign {
  background: #F6EDD4;
  border: 2px solid #9B7420;
  border-radius: 5px;
  padding: 7px 14px 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1407;
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
  line-height: 1;
}
.robot-sign-stick {
  width: 5px;
  height: 30px;
  background: linear-gradient(180deg, #B08030 0%, #7A5A14 100%);
  border-radius: 3px;
  box-shadow: 1px 0 3px rgba(0,0,0,0.35);
}

/* Robot face */
.robot-face {
  width: 72px;
  height: 62px;
  background: var(--surface-raised);
  border: 2px solid var(--primary);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  box-shadow: 0 0 18px rgba(40,89,238,0.28), 0 0 48px rgba(40,89,238,0.08),
              inset 0 1px 0 rgba(255,255,255,0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.robot-trigger:hover .robot-face {
  box-shadow: 0 0 30px rgba(40,89,238,0.5), 0 0 70px rgba(40,89,238,0.15),
              inset 0 1px 0 rgba(255,255,255,0.06);
  border-color: var(--primary-mid);
}

/* Antenna */
.robot-antenna {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: var(--primary);
}
.robot-antenna-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold-mid);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(196,153,30,0.9), 0 0 22px rgba(196,153,30,0.4);
  animation: antennaPulse 2.2s ease-in-out infinite;
}
@keyframes antennaPulse {
  0%, 100% { opacity: 1;    box-shadow: 0 0 10px rgba(196,153,30,0.9), 0 0 22px rgba(196,153,30,0.4); }
  50%       { opacity: 0.35; box-shadow: 0 0 4px rgba(196,153,30,0.3); }
}

/* Eyes */
.robot-eyes { display: flex; gap: 12px; }
.robot-eye {
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: robotBlink 6s ease-in-out infinite;
}
.robot-eye:nth-child(2) { animation-delay: 0.07s; }
@keyframes robotBlink {
  0%, 91%, 100% { transform: scaleY(1); }
  93%, 97%      { transform: scaleY(0.08); }
}
.robot-pupil {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(40,89,238,0.9);
  transition: background 0.2s, box-shadow 0.2s;
}
.robot-trigger:hover .robot-pupil {
  background: #7090FF;
  box-shadow: 0 0 14px rgba(40,89,238,1), 0 0 22px rgba(40,89,238,0.5);
}

/* Mouth — speaker grille */
.robot-mouth { display: flex; gap: 4px; align-items: flex-end; }
.robot-mouth-bar {
  width: 11px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.6;
}
.robot-mouth-bar:nth-child(2) { width: 7px; height: 5px; opacity: 0.4; }

.chat-panel {
  position: absolute;
  bottom: 152px;
  right: 0;
  width: 356px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-subtle);
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  transform-origin: bottom right;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-header {
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-raised);
}
.chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.chat-header-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.chat-header-subtitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.chat-close-btn:hover { color: var(--text); }
.chat-close-btn svg { width: 16px; height: 16px; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-message { max-width: 86%; font-size: 0.84rem; line-height: 1.6; animation: msgIn 0.2s ease; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }
.message-bubble { padding: 0.6rem 0.875rem; border-radius: 12px; }
.bot .message-bubble {
  background: var(--surface-raised);
  color: var(--text-body);
  border-bottom-left-radius: 3px;
  border: 1px solid var(--border);
}
.user .message-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.875rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}
.quick-replies { display: flex; flex-wrap: wrap; gap: 0.4rem; align-self: flex-start; }
.quick-reply-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.quick-reply-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  background: var(--surface);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text);
  background: var(--surface-raised);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.chat-input:focus { border-color: rgba(40, 89, 238, 0.5); }
.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.chat-send-btn:hover { background: var(--primary-mid); transform: scale(1.06); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.chat-send-btn svg { width: 14px; height: 14px; }

/* ════════════════════════════
   Responsive
════════════════════════════ */
@media (max-width: 900px) {
  .service-row-inner { grid-template-columns: 56px 1fr 28px; gap: 0 1.25rem; }
  .service-num { font-size: 2.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-deco { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(7, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    display: none;
    z-index: 150;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { border: none !important; background: none !important; padding: 0 !important; border-radius: 0 !important; }

  .hero { padding: calc(var(--nav-height) + 3rem) 0 5rem; }
  .hero-heading { font-size: clamp(2.5rem, 10vw, 3.75rem); }
  .hero-sub { font-size: 1.17rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .services, .about, .faq-section, .contact { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }

  .service-row-inner { grid-template-columns: 1fr; gap: 0.5rem; }
  .service-num { font-size: 1.25rem; }
  .service-arrow { display: none; }
  .service-title-row { flex-direction: column; gap: 0.25rem; }
  .service-row[data-animate] { transition-delay: 0ms !important; }

  .about-portrait { aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

  .vb-quote { font-size: clamp(1.5rem, 6vw, 2.25rem); }

  #chat-widget { bottom: 0; right: 1.25rem; }
  #chat-widget.widget--left { left: 1.25rem; right: auto; }
  .chat-panel { width: 320px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; row-gap: 1rem; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding-right: 0; width: 50%; }
  .chat-panel { width: calc(100vw - 2.5rem); }
}
