/* ==========================================================
   DIGITAUX MARKETING — CORE STYLESHEET
   ========================================================== */

:root {
  --bg-primary: #0a0c1b;
  --bg-secondary: #0e1124;
  --surface: #141830;
  --surface-hover: #1b2040;
  --accent: #525FE1;            /* logo blue */
  --accent-light: #8E98FF;      /* logo blue, lifted for text on dark */
  --accent-deep: #3B46B8;
  --btn-from: #4A57DE;
  --btn-to: #5967EA;
  --on-accent: #ffffff;         /* the logo's white */
  --text-primary: #f1f3ff;
  --text-secondary: #aab1cf;
  --border: rgba(82, 95, 225, 0.28);
  --font-main: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 16px;
  --shadow-glow: 0 0 48px rgba(82, 95, 225, 0.22);
  --tile-bg: #ffffff;           /* logo tiles stay white so any company logo is readable */
  color-scheme: dark;
}

[data-theme="light"] {
  --bg-primary: #f6f7fd;
  --bg-secondary: #eceefb;
  --surface: #ffffff;
  --surface-hover: #f0f2fd;
  --accent: #4452D6;
  --accent-light: #525FE1;
  --accent-deep: #3B46B8;
  --btn-from: #4452D6;
  --btn-to: #5360E6;
  --text-primary: #11142b;
  --text-secondary: #4b5173;
  --border: rgba(68, 82, 214, 0.22);
  --shadow-glow: 0 8px 40px rgba(82, 95, 225, 0.16);
  --tile-bg: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16.5px;
  line-height: 1.65;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--accent-light);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: '>'; color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
p { color: var(--text-secondary); margin: 0 0 18px; }

section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: var(--on-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(82,95,225,.45); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); background: var(--surface); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; line-height: 1; }
.logo-mark { width: 42px; height: auto; flex-shrink: 0; display: block; }
.logo-img { height: 48px; width: auto; max-width: 240px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 17px; letter-spacing: .01em; text-transform: uppercase; }
.logo-text b { color: var(--text-primary); font-weight: 800; }
.logo-text i { color: var(--accent-light); font-style: normal; font-weight: 800; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-secondary); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent-light); transition: width .25s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); transition: all .3s ease; }
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg-primary); z-index: 1100;
  display: flex; flex-direction: column; padding: 24px; transform: translateX(100%);
  transition: transform .35s ease; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-menu .close-btn { background: none; border: none; color: var(--text-primary); font-size: 28px; cursor: pointer; }

@media (max-width: 1120px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 170px 0 100px; position: relative; overflow: hidden; }
.hero-visual { max-width: 100%; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
}
.hero-glow {
  position: absolute; top: -10%; right: -10%; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,95,225,.28), transparent 70%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero .container { grid-template-columns: 1fr; } }

.hero-heading .word-rotator { color: var(--accent-light); display: inline-block; min-width: 1ch; white-space: nowrap; vertical-align: top; }
.hero-heading .word-rotator::after {
  content: ''; display: inline-block; width: 3px; height: .9em; margin-left: 3px;
  background: var(--accent-light); vertical-align: -0.1em; animation: rotator-blink .8s steps(1) infinite;
}
@keyframes rotator-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-heading .word-rotator::after { animation: none; } }
.hero-buttons { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.terminal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; font-family: var(--font-mono); font-size: 14px; box-shadow: var(--shadow-glow);
  position: relative;
}
.terminal-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.terminal-line { margin-bottom: 10px; color: var(--text-secondary); }
.terminal-line .ok { color: var(--accent-light); }
.terminal-cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent-light); animation: blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.floating-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 18px; font-family: var(--font-mono); font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee (trust bar) ---------- */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 16px; color: var(--text-secondary); letter-spacing: .05em; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Two-column content sections (Software / Marketing blocks) ---------- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Cards (services, portfolio, blog) ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.card .service-index { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-light); margin-bottom: 14px; display: block; }
.card .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(82,95,225,.12);
  display: flex; align-items: center; justify-content: center; color: var(--accent-light); margin-bottom: 18px;
}
.card ul { padding-left: 20px; margin: 14px 0; color: var(--text-secondary); font-size: 15px; }
.card-link { font-size: 15px; font-weight: 600; color: var(--accent-light); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Portfolio */
.portfolio-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.portfolio-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card .body { padding: 22px; }
.tag-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; padding: 5px 12px;
  border-radius: 100px; background: rgba(82,95,225,.14); color: var(--accent-light); margin-right: 6px;
}
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 14.5px; padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: var(--font-mono); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 700; color: var(--accent-light); }
.stat-label { font-size: 16px; color: var(--text-secondary); }

/* Timeline / process */
.process-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 980px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
.process-step { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 24px 20px; }
.process-step .num { font-family: var(--font-mono); color: var(--accent-light); font-size: 13px; }

/* Testimonials */
.testimonial-slider { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-quote { font-size: 21px; color: var(--text-primary); margin-bottom: 20px; }
.testimonial-author { font-weight: 700; }
.testimonial-role { color: var(--text-secondary); font-size: 13.5px; }
.slider-controls { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.slider-controls button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-primary); cursor: pointer;
}
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; }
.slider-dots span.active { background: var(--accent-light); }

/* Pricing */
.price-card { text-align: left; position: relative; }
.price-card.popular { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.popular-badge {
  position: absolute; top: -13px; right: 24px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 11px; padding: 5px 12px; border-radius: 100px; font-weight: 700;
}
.price-value { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; margin: 10px 0; }
.price-value span { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text-secondary); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-primary);
  padding: 22px 26px; font-size: 18px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 26px; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .25s ease; }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 15px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary); font-family: var(--font-main); font-size: 16.5px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.form-msg.success { background: rgba(82,95,225,.15); color: var(--accent-light); border: 1px solid var(--accent); }
.form-msg.error { background: rgba(220,80,80,.12); color: #e08080; border: 1px solid rgba(220,80,80,.4); }

/* Footer */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 88px 0 34px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 50px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-primary); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-secondary); font-size: 16px; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-secondary); flex-wrap: wrap; gap: 12px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.social-icons a:hover { border-color: var(--accent); color: var(--accent-light); }

/* Back to top */
#backToTop {
  position: fixed; bottom: 94px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 900;
}
#backToTop.show { opacity: 1; pointer-events: auto; }

/* Sticky mobile CTA */
.sticky-cta-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: var(--surface); border-top: 1px solid var(--border); padding: 10px 14px;
  gap: 8px;
}
@media (max-width: 700px) { .sticky-cta-mobile { display: flex; } body { padding-bottom: 66px; } }
.sticky-cta-mobile a { flex: 1; text-align: center; padding: 11px 0; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); }
.sticky-cta-mobile a.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Custom cursor (desktop only, added via JS body class) */
body.has-custom-cursor { cursor: none; }
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor-ring { width: 32px; height: 32px; border: 1px solid var(--accent-light); transition: transform .15s ease, width .2s, height .2s; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent-light); }

/* Preloader */
#preloader {
  position: fixed; inset: 0; background: var(--bg-primary); z-index: 99999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-text { font-family: var(--font-mono); font-size: 14px; color: var(--accent-light); letter-spacing: .05em; }
.preloader-bar { width: 220px; height: 3px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.preloader-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width .3s ease; }

/* Error pages */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-code { font-family: var(--font-mono); font-size: 5rem; color: var(--accent-light); font-weight: 700; }

/* Utility */
.mt-0{margin-top:0}.text-center{text-align:center}
.badge { display:inline-block; font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-secondary); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
/* ==========================================================
   v2 — logo-blue refresh, bigger hero, partners / clients / works
   ========================================================== */

/* Hero */
.hero-heading { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-heading .word-rotator { color: var(--accent-light); }
.hero-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 560px; line-height: 1.6; }
.hero-glow { background: radial-gradient(circle, rgba(82,95,225,.38), transparent 70%); width: 620px; height: 620px; right: 0; }
.hero-mark { position: absolute; right: 0; bottom: -80px; width: 420px; opacity: .07; z-index: 0; pointer-events: none; }
[data-theme="light"] .hero-mark { opacity: .08; }
.hero-buttons .btn { padding: 15px 32px; font-size: 16.5px; }
.inner-hero { padding-top: 170px; padding-bottom: 50px; }
.inner-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.inner-hero p { font-size: 18px; max-width: 680px; }

/* Preloader mark */
.preloader-mark { width: 64px; height: auto; margin-bottom: 6px; animation: floaty 2.4s ease-in-out infinite; }

/* Logo tiles (clients + partners) */
.logo-tile {
  background: var(--tile-bg); border-radius: 14px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 18px 26px;
}
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-initials {
  font-weight: 800; font-size: 26px; letter-spacing: .02em; color: var(--accent);
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1;
}

/* Partners: scrolling strip */
.partners-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; gap: 28px; width: max-content; animation: partners-scroll 40s linear infinite; }
.partners-wrap:hover .partners-track { animation-play-state: paused; }
.partner-item { flex: 0 0 auto; width: 240px; height: 110px; transition: transform .25s ease, border-color .25s ease; }
.partner-item:hover { transform: translateY(-4px); border-color: var(--accent); }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 14px)); } }
.partners-static { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }

/* Clients: logo grid with name */
.client-slider { position: relative; }
.client-grid {
  --cs-gap: 28px; --cs-per: 4;
  display: flex; gap: var(--cs-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
  padding: 10px 4px 22px; margin: -10px -4px -22px; overscroll-behavior-x: contain;
}
.client-grid::-webkit-scrollbar { display: none; }
.client-grid > .client-card { flex: 0 0 calc((100% - (var(--cs-per) - 1) * var(--cs-gap)) / var(--cs-per)); scroll-snap-align: start; }
@media (max-width: 1100px) { .client-grid { --cs-per: 3; } }
@media (max-width: 760px) { .client-grid { --cs-per: 2; --cs-gap: 18px; } }
@media (max-width: 440px) { .client-grid { --cs-per: 1; } }
.cs-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); font-size: 26px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-glow); transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.cs-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cs-prev { left: -22px; } .cs-next { right: -22px; }
.client-slider.no-scroll .cs-btn, .client-slider.no-scroll + .cs-dots { display: none; }
@media (max-width: 1280px) { .cs-prev { left: -8px; } .cs-next { right: -8px; } }
.cs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.cs-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s ease, width .2s ease; }
.cs-dots span.active { background: var(--accent-light); width: 22px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .client-grid { scroll-behavior: auto; } }
.client-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; color: inherit; }
.client-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.client-card .logo-tile { height: 130px; }
.client-card h3 { font-size: 19px; margin: 0; }
.client-card .badge { font-size: 12.5px; }
.client-card p { font-size: 15.5px; margin: 0; }

/* Works */
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.work-meta p { margin: 0; font-size: 15px; }
.portfolio-card .body h3 { font-size: 21px; margin: 12px 0 6px; }
.portfolio-card { display: block; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.portfolio-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-glow); }

/* Keep scrolling strips readable (not frozen mid-way) when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .partners-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .partners-wrap { mask-image: none; -webkit-mask-image: none; }
  .partners-track .dup { display: none; }
}

/* Keyboard focus */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  section { padding: 84px 0; }
  .hero { padding: 150px 0 90px; }
  .container { padding: 0 22px; }
  .partner-item { width: 190px; height: 92px; }
  .logo-text { font-size: 16px; }
  .logo-mark { width: 40px; }
}
.hero-content .eyebrow { margin-bottom: 18px; }

/* Tech & marketing logo grids (home page) */
.tech-group + .tech-group { margin-top: 72px; }
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 20px; }
.tech-item { width: 112px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: inherit; text-align: center; }
.tech-item .logo-tile { width: 92px; height: 92px; padding: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tech-item .logo-tile img { width: 48px; height: 48px; }
.tech-item .logo-initials { font-size: 22px; }
.tech-item:hover .logo-tile { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.tech-name { font-family: var(--font-mono); font-size: 13px; line-height: 1.25; color: var(--text-secondary); }
@media (max-width: 700px) {
  .tech-grid { gap: 18px 12px; }
  .tech-item { width: 92px; }
  .tech-item .logo-tile { width: 76px; height: 76px; padding: 13px; }
  .tech-item .logo-tile img { width: 40px; height: 40px; }
  .tech-group + .tech-group { margin-top: 56px; }
}


/* ---------- Infinite auto-scroll strips (Clients, Partners, Tech/Marketing logos) ---------- */
.mq { --mq-gap: 28px; overflow: hidden; padding: 16px 0; margin: -16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq + .mq { margin-top: 6px; }
.mq-track { display: flex; width: max-content; animation: mq-scroll var(--mq-dur, 40s) linear infinite; will-change: transform; }
.mq-rev .mq-track { animation-direction: reverse; }
.mq-set { display: flex; flex: 0 0 auto; gap: var(--mq-gap); padding-right: var(--mq-gap); align-items: stretch; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mq-clients .client-card { flex: 0 0 300px; width: 300px; }
.mq-partners .partner-item { flex: 0 0 auto; }
.mq-tech { --mq-gap: 20px; }
.mq-tech .tech-item { flex: 0 0 auto; }

@media (max-width: 700px) {
  .mq { --mq-gap: 18px; }
  .mq-clients .client-card { flex-basis: 250px; width: 250px; }
  .mq-tech { --mq-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .mq-track { animation: none !important; }
  .mq-set[aria-hidden="true"] { display: none; }
}

/* ---------- AI chat widget (logo-only launcher, bottom-left) ---------- */
#dxChat { position: fixed; left: 22px; bottom: 22px; z-index: 950; font-family: var(--font-main); }
.dx-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--border);
  background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0;
  box-shadow: 0 10px 30px rgba(82,95,225,.38); transition: transform .25s ease, box-shadow .25s ease;
}
.dx-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 36px rgba(82,95,225,.5); }
.dx-fab-logo { width: 32px; height: auto; display: block; transition: opacity .2s ease, transform .3s ease; }
.dx-fab-x { position: absolute; color: var(--accent); opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .2s ease, transform .3s ease; }
.dx-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: dx-pulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes dx-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
#dxChat.open .dx-ring { animation: none; }
#dxChat.open .dx-fab-logo { opacity: 0; transform: rotate(90deg) scale(.6); }
#dxChat.open .dx-fab-x { opacity: 1; transform: none; }

.dx-panel {
  position: absolute; left: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px);
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom left; pointer-events: none; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
#dxChat.open .dx-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.dx-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; }
.dx-head-logo { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.dx-head-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.dx-head-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-head-t span { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.dx-head-t i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.dx-close { background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.dx-close:hover { opacity: 1; }

.dx-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-primary); overscroll-behavior: contain; }
.dx-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.dx-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.dx-bot a { color: var(--accent-light); text-decoration: underline; }
.dx-me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.dx-typing { display: flex; gap: 5px; padding: 14px 16px; }
.dx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-secondary); animation: dx-dot 1.2s infinite ease-in-out; }
.dx-typing i:nth-child(2) { animation-delay: .15s; } .dx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dx-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--bg-primary); }
.dx-chips button { font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); cursor: pointer; transition: background .2s, color .2s; }
.dx-chips button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dx-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.dx-input { flex: 1; resize: none; font: inherit; font-size: 14.5px; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; max-height: 96px; outline: none; }
.dx-input:focus { border-color: var(--accent); }
.dx-send { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.dx-send:hover { background: var(--accent-deep); } .dx-send:disabled { opacity: .5; cursor: default; }
.dx-wa { display: block; text-align: center; font-size: 12.5px; padding: 9px; color: var(--text-secondary); background: var(--surface); border-top: 1px solid var(--border); }
.dx-wa:hover { color: var(--accent-light); }

@media (max-width: 700px) {
  #dxChat { left: 14px; bottom: 82px; }               /* sit above the sticky mobile CTA bar */
  .dx-fab { width: 56px; height: 56px; } .dx-fab-logo { width: 29px; }
  .dx-panel { position: fixed; left: 10px; right: 10px; bottom: 150px; width: auto; max-width: none; height: min(520px, calc(100vh - 170px)); height: min(520px, calc(100dvh - 170px)); }
}
@media (prefers-reduced-motion: reduce) { .dx-ring { animation: none; } .dx-typing i { animation: none; opacity: .7; } }

/* ---------- Floating contact menu (right side) ---------- */
.dx-contact { position: fixed; right: 22px; bottom: 22px; z-index: 940; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dx-ctoggle {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(82,95,225,.45); transition: transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.dx-ctoggle:hover { transform: translateY(-3px) scale(1.05); }
.dx-ti { position: absolute; transition: opacity .2s ease, transform .3s ease; }
.dx-ti-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.dx-plus { position: absolute; top: 9px; right: 10px; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--accent);
  font: 700 14px/16px var(--font-main); text-align: center; transition: opacity .2s ease; }
.dx-ring2 { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: dx-pulse 2.8s ease-out infinite; pointer-events: none; }
.dx-contact.open .dx-ring2 { animation: none; }
.dx-contact.open .dx-ti-open, .dx-contact.open .dx-plus { opacity: 0; transform: rotate(90deg) scale(.6); }
.dx-contact.open .dx-ti-x { opacity: 1; transform: none; }

.dx-clist { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.dx-contact.open .dx-clist { pointer-events: auto; }
.dx-citem { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(18px) scale(.7); transform-origin: bottom right;
  visibility: hidden; transition: opacity .22s ease, transform .25s ease, visibility .25s; transition-delay: 0s; }
.dx-contact.open .dx-citem { opacity: 1; transform: none; visibility: visible; transition-delay: calc(var(--i) * 55ms); }
.dx-clabel { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); white-space: nowrap; }
.dx-cbtn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.dx-c-wa { background: #25D366; } .dx-c-call { background: var(--accent); } .dx-c-mail { background: #ea4b6b; }
.dx-citem:hover .dx-cbtn { transform: scale(1.08); } .dx-cbtn { transition: transform .2s ease; }

/* back-to-top sits just above the contact button; hidden while the menu is open */
body.dx-contact-open #backToTop { opacity: 0 !important; pointer-events: none !important; }

/* ---------- Mobile stability ---------- */
@media (max-width: 700px) {
  .hero { padding-top: 130px; padding-bottom: 70px; }
  .hero-heading { font-size: clamp(2.1rem, 9.4vw, 2.8rem); overflow-wrap: break-word; }
  .dx-contact { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .dx-ctoggle { width: 54px; height: 54px; }
  .dx-cbtn { width: 46px; height: 46px; }
  #backToTop { right: 20px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
  .sticky-cta-mobile { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta-mobile a { padding: 13px 0; font-size: 14px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  #dxChat { bottom: 82px; }
}

/* FIX: the floating contact box (z-index 940) was an invisible layer over the back-to-top button and ate its clicks. */
.dx-contact { pointer-events: none; }
.dx-ctoggle, .dx-contact.open .dx-citem { pointer-events: auto; }
#backToTop { z-index: 960; }

/* ---------- Services: mobile-friendly layout ---------- */
.grid > .card, .service-row > div { min-width: 0; }
.card h3, .card p, .card li { overflow-wrap: anywhere; }
.service-row { margin-bottom: 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; scroll-margin-top: 100px; }
.service-features { columns: 2; column-gap: 28px; }
.service-features li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  #services .grid { gap: 18px; }
  .card { padding: 22px 20px; }
  .card:hover { transform: none; }
  .card h3 { font-size: 20px !important; line-height: 1.3; }
  .service-row { scroll-margin-top: 80px; margin-bottom: 18px; }
  .service-features { columns: 1; }
  .service-row .btn, #services .card-link { min-height: 44px; display: inline-flex; align-items: center; }
  .service-row .btn { width: 100%; justify-content: center; }
}


/* ---------- Our Team: light background + square-photo slider ---------- */
.team-section {
  --t-ink: #12163a; --t-muted: #505779; --t-line: rgba(82, 95, 225, .18);
  position: relative; overflow: hidden; padding: 110px 0 100px; color: var(--t-ink);
  background: linear-gradient(135deg, #f8f9ff 0%, #eceeff 48%, #fff1f7 100%);
}
.team-bg { position: absolute; inset: 0; pointer-events: none; }
.team-bg .tb-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(82, 95, 225, .26) 1.4px, transparent 1.7px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 74%); mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 74%);
}
.team-bg .tb-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; }
.team-bg .b1 { width: 440px; height: 440px; background: #b9c0ff; top: -140px; left: -120px; }
.team-bg .b2 { width: 400px; height: 400px; background: #ffd0e2; bottom: -160px; right: -100px; }
.team-bg .tb-sq { position: absolute; border-radius: 26px; }
.team-bg .s1 { width: 170px; height: 170px; border: 2px solid rgba(82, 95, 225, .28); top: 84px; right: 7%; transform: rotate(14deg); }
.team-bg .s2 { width: 105px; height: 105px; background: rgba(82, 95, 225, .12); bottom: 64px; left: 5%; transform: rotate(-12deg); }
.team-section .container { position: relative; z-index: 1; }
.team-section .eyebrow { color: #4452D6; }
.team-section .eyebrow::before { color: #525FE1; }
.team-section h2 { color: var(--t-ink); }
.team-section .section-head p { color: var(--t-muted); }

.team-slider { position: relative; --ts-gap: 30px; --ts-per: 4; }
.team-track {
  display: flex; gap: var(--ts-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; outline: none;
  padding: 26px 34px 70px; margin: -26px -34px -70px; scroll-padding-left: 34px;
}
.team-track::-webkit-scrollbar { display: none; }
.team-slider.no-scroll .team-track { justify-content: center; }

.team-card {
  flex: 0 0 calc((100% - (var(--ts-per) - 1) * var(--ts-gap)) / var(--ts-per)); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--t-line); border-radius: 26px; padding: 14px 14px 26px; text-align: center;
  box-shadow: 0 14px 34px rgba(60, 72, 190, .10); transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(60, 72, 190, .22); }

/* the square photo, with a colour block peeking out behind it */
.team-photo { position: relative; aspect-ratio: 1 / 1; margin-bottom: 26px; isolation: isolate; }
.team-photo::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: -1;
  background: linear-gradient(135deg, #525FE1, #8E98FF); transform: translate(11px, 11px); transition: transform .3s ease;
}
.team-card:hover .team-photo::before { transform: translate(5px, 5px); }
.team-photo img, .team-initials { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.team-initials {
  display: flex; align-items: center; justify-content: center; font-size: 60px; font-weight: 800; letter-spacing: .02em;
  color: #4452D6; background: linear-gradient(135deg, #e7eaff, #cdd3ff);
}
.team-social {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease;
}
.team-card:hover .team-social, .team-card:focus-within .team-social { opacity: 1; transform: none; }
.team-social a {
  width: 38px; height: 38px; border-radius: 11px; background: #fff; color: #3B46B8; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(20, 24, 70, .22); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.team-social a:hover { background: #525FE1; color: #fff; transform: translateY(-3px); }
.team-social svg { width: 18px; height: 18px; }
@media (hover: none) { .team-social { opacity: 1; transform: none; } }

.team-card h3 { font-size: 20px; margin: 0 0 8px; color: var(--t-ink); }
.team-role {
  display: inline-block; padding: 5px 14px; border-radius: 999px; background: #eef0ff; color: #3B46B8;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
}
.team-card p {
  margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--t-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.team-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 50px; height: 50px; border-radius: 14px;
  border: 1px solid var(--t-line); background: #fff; color: #3B46B8; font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(60, 72, 190, .2); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.team-btn:hover { background: #525FE1; border-color: #525FE1; color: #fff; }
.team-prev { left: -26px; } .team-next { right: -26px; }
.team-slider.no-scroll .team-btn, .team-slider.no-scroll + .team-dots { display: none; }
.team-dots { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.team-dots span { width: 10px; height: 10px; border-radius: 3px; background: rgba(82, 95, 225, .28); cursor: pointer; transition: background .2s ease, width .2s ease; }
.team-dots span.active { background: #525FE1; width: 30px; }

@media (max-width: 1320px) { .team-prev { left: -8px; } .team-next { right: -8px; } }
@media (max-width: 1100px) { .team-slider { --ts-per: 3; } }
@media (max-width: 760px) {
  .team-section { padding: 80px 0 76px; }
  .team-slider { --ts-per: 2; --ts-gap: 18px; }
  .team-card { padding: 10px 10px 20px; border-radius: 22px; }
  .team-photo { margin-bottom: 20px; }
  .team-photo::before { transform: translate(8px, 8px); }
  .team-card h3 { font-size: 17px; }
  .team-card p { display: none; }
  .team-btn { width: 42px; height: 42px; font-size: 24px; }
}
@media (max-width: 460px) { .team-slider { --ts-per: 1; } .team-card p { display: -webkit-box; } }
@media (max-width: 760px) { .team-bg .s1 { width: 90px; height: 90px; top: 14px; right: -26px; } .team-bg .s2 { width: 80px; height: 80px; bottom: 30px; left: -20px; } }
@media (prefers-reduced-motion: reduce) { .team-track { scroll-behavior: auto; } .team-card, .team-photo::before { transition: none; } }


/* ---------- Video testimonials: thumbnail slider + popup player ---------- */
.vt-section { background: var(--bg-secondary); }
.vt-slider { position: relative; --vt-gap: 28px; --vt-per: 3; }
.vt-track {
  display: flex; gap: var(--vt-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; outline: none;
  padding: 26px 30px 56px; margin: -26px -30px -56px; scroll-padding-left: 30px;
}
.vt-track::-webkit-scrollbar { display: none; }
.vt-slider.no-scroll .vt-track { justify-content: center; }
.vt-card {
  flex: 0 0 calc((100% - (var(--vt-per) - 1) * var(--vt-gap)) / var(--vt-per)); scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 12px 12px 22px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.vt-card:hover, .vt-card:focus-visible { transform: translateY(-7px); border-color: var(--accent); box-shadow: var(--shadow-glow); outline: none; }
.vt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0d1e; }
.vt-thumb img, .vt-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; pointer-events: none; -webkit-user-drag: none; }
.vt-card:hover .vt-thumb img, .vt-card:hover .vt-thumb video { transform: scale(1.06); }
.vt-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 27, 0) 45%, rgba(10, 12, 27, .55)); }
.vt-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px rgba(82, 95, 225, .55); transition: transform .25s ease;
}
.vt-play::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: vt-ring 2.2s ease-out infinite; }
.vt-play svg { width: 28px; height: 28px; margin-left: 3px; position: relative; }
.vt-card:hover .vt-play { transform: scale(1.1); }
@keyframes vt-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.vt-info { display: flex; flex-direction: column; gap: 4px; padding: 16px 8px 0; }
.vt-info strong { font-size: 18px; color: var(--text-primary); line-height: 1.25; }
.vt-info em { font-style: normal; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; color: var(--accent-light); text-transform: uppercase; }
.vt-quote { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.vt-btn {
  position: absolute; top: 36%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-glow); transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.vt-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.vt-prev { left: -24px; } .vt-next { right: -24px; }
.vt-slider.no-scroll .vt-btn, .vt-slider.no-scroll + .vt-dots { display: none; }
.vt-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.vt-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s ease, width .2s ease; }
.vt-dots span.active { background: var(--accent-light); width: 24px; border-radius: 8px; }

.vt-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 8, 20, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .25s ease; }
.vt-modal[hidden] { display: none; }
.vt-modal-box { position: relative; width: min(960px, 100%); }
.vt-stage { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.vt-stage iframe, .vt-stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vt-close {
  position: absolute; right: 0; top: -52px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.vt-close:hover { background: var(--accent); border-color: var(--accent); }
body.vt-open { overflow: hidden; }

@media (max-width: 1320px) { .vt-prev { left: -8px; } .vt-next { right: -8px; } }
@media (max-width: 1000px) { .vt-slider { --vt-per: 2; } }
@media (max-width: 640px) {
  .vt-slider { --vt-per: 1; --vt-gap: 18px; }
  .vt-track { padding-left: 22px; padding-right: 22px; margin-left: -22px; margin-right: -22px; scroll-padding-left: 22px; }
  .vt-btn { width: 40px; height: 40px; font-size: 22px; }
  .vt-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .vt-modal { padding: 14px; }
  .vt-close { top: -50px; }
}
@media (prefers-reduced-motion: reduce) { .vt-track { scroll-behavior: auto; } .vt-play::before { animation: none; } .vt-card, .vt-thumb img, .vt-thumb video { transition: none; } }
