/* Satvam Softwares sitepackage - design system adapted from satvamsoftware.com/ai/ */

:root {
  --bg: #060714;
  --bg-soft: #0a0c1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0fb;
  --text-dim: #a3a8c3;
  --text-faint: #6b7094;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 40%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.18));
  --radius: 20px;
  --maxw: 1200px;
}

/* TYPO3 standard Appearance fields: frame_class / space_before_class / space_after_class.
   Applied uniformly to every top-level section and every content block inside it,
   so gaps stay consistent regardless of content/container type. */
.frame-space-before-extra-small { margin-top: 16px; }
.frame-space-before-small       { margin-top: 32px; }
.frame-space-before-medium      { margin-top: 56px; }
.frame-space-before-large       { margin-top: 96px; }
.frame-space-before-extra-large { margin-top: 150px; }

.frame-space-after-extra-small { margin-bottom: 16px; }
.frame-space-after-small       { margin-bottom: 32px; }
.frame-space-after-medium      { margin-bottom: 56px; }
.frame-space-after-large       { margin-bottom: 96px; }
.frame-space-after-extra-large { margin-bottom: 150px; }

.frame-ruler-before { border-top: 1px solid var(--border); padding-top: 56px; }
.frame-ruler-after  { border-bottom: 1px solid var(--border); padding-bottom: 56px; }
.frame-indent       { max-width: 800px; margin-left: auto; margin-right: auto; }
.frame-indent-left  { max-width: 800px; margin-right: auto; }
.frame-indent-right { max-width: 800px; margin-left: auto; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .foot-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; font-weight: 600; color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
main { display: block; }

/* PRELOADER */
html.is-preloading, html.is-preloading body { overflow: hidden; height: 100%; }

.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg);
  transition: opacity .6s ease, transform .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; transform: translateY(-28px); visibility: hidden; pointer-events: none; }

.preloader-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.12) 55%, transparent 75%);
  filter: blur(12px);
  animation: preloader-pulse 2.4s ease-in-out infinite;
}

.preloader-mark { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }

.preloader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--violet);
  border-right-color: var(--cyan);
  animation: preloader-spin 1.1s linear infinite;
}

.preloader-logo {
  position: relative; width: 104px; height: auto;
  opacity: 0; transform: scale(0.8);
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.45));
  animation: preloader-logo-in .8s cubic-bezier(.16, 1, .3, 1) .15s forwards;
}
.preloader.is-ready .preloader-logo { animation: preloader-logo-out .5s ease forwards; }

.preloader-bar { position: relative; width: 140px; height: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); overflow: hidden; opacity: 0; animation: preloader-bar-in .5s ease .35s forwards; }
.preloader-bar span { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 40%; border-radius: 10px; background: var(--grad); animation: preloader-bar-slide 1.3s ease-in-out infinite; }

@keyframes preloader-logo-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes preloader-logo-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.15); } }
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes preloader-bar-in { to { opacity: 1; } }
@keyframes preloader-bar-slide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(150%); }
  100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-glow, .preloader-ring, .preloader-bar span { animation: none; }
  .preloader-logo { animation: preloader-logo-in .3s ease forwards; }
  .preloader.is-ready .preloader-logo { animation: preloader-logo-out .3s ease forwards; }
}

/* background ambience */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; z-index: 0; }
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  display: none;
}

/* NAV */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 7, 20, 0.65);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
nav.site-nav {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 32px; display: flex; align-items: center; justify-content: space-between;
  transition: padding .3s ease;
}
.logo { display: flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.logo img { height: 64px; width: auto; transition: height .3s ease; }
header.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
header.site-header.is-scrolled { background: rgba(6, 7, 20, 0.9); }
header.site-header.is-scrolled nav.site-nav { padding: 14px 32px; }
header.site-header.is-scrolled .logo img { height: 36px; }
.logo span { font-weight: 500; font-size: 12px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--text-dim); }
.navlinks > a, .navlinks > .nav-dropdown > .nav-dropdown-toggle { position: relative; padding: 6px 0; transition: color .2s; cursor: pointer; background: none; border: none; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.navlinks a:hover, .navlinks .nav-dropdown-toggle:hover { color: #fff; }
.navlinks .active { color: #fff; }
.navlinks .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: -16px; min-width: 240px;
  background: #0c0e22; border: 1px solid var(--border); border-radius: 14px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu.wide { min-width: 460px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-dim); }
.nav-dropdown-menu a:hover { background: var(--surface); color: #fff; }
.nav-cta {
  padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 600;
  background: var(--grad); color: #08050f; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 24px -8px rgba(139,92,246,0.6);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 28px -6px rgba(139,92,246,0.75); }
.burger { display: none; width: 22px; height: 16px; position: relative; cursor: pointer; background: none; border: none; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 7px; } .burger span:nth-child(3) { top: 14px; }

/* HERO */
.hero { padding: 172px 0 110px; position: relative; overflow: hidden; }
.hero.hero--compact { padding: 152px 0 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.08; max-width: 900px; margin-bottom: 24px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 640px; margin-bottom: 36px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.btn-primary {
  display: inline-block; padding: 15px 30px; border-radius: 100px; background: var(--grad); color: #08050f;
  font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px -8px rgba(139,92,246,0.55);
  transition: transform .2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); color: #08050f; }
.btn-ghost {
  display: inline-block; padding: 15px 30px; border-radius: 100px; border: 1px solid var(--border); color: #fff;
  font-weight: 600; font-size: 15px; background: var(--surface); transition: background .2s, transform .2s;
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.stats-row { display: flex; gap: 56px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); }
.stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 32px; color: #fff; }
.stat span { font-size: 13.5px; color: var(--text-faint); }

/* TECH LOGO STRIP */
.logo-strip .row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: 0.85; }
.logo-strip img { height: 30px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.7; transition: opacity .25s, filter .25s; }
.logo-strip img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
.logo-strip .label { text-align: center; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }

/* SECTION HEADERS */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.section-head--left { margin: 0 0 40px; text-align: left; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* SERVICES / CARD GRID */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid > .grid-item { display: flex; min-width: 0; }
.grid > .grid-item > * { width: 100%; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s, background .3s;
  height: 100%; color: inherit; text-decoration: none;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); opacity: 0;
  background: var(--grad-soft); transition: opacity .3s; z-index: 0;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); background: rgba(255,255,255,0.055); }
.card:hover::before { opacity: 1; }
.card-inner { position: relative; z-index: 1; }
.card a.card-link { display: block; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(139,92,246,0.22), rgba(34,211,238,0.16));
  border: 1px solid rgba(255,255,255,0.1); margin-bottom: 22px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--cyan); }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p.card-text { font-size: 14.5px; color: var(--text-dim); margin-bottom: 14px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.card li { font-size: 14.3px; color: var(--text-dim); padding-left: 20px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.tag-num { position: absolute; top: 26px; right: 28px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--text-faint); letter-spacing: 0.05em; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cyan); margin-top: 6px; }

/* WHY / FEATURE LIST */
.feature-list { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
.feature { padding: 8px 0; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-dim); }

/* PROCESS */
.process { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.05), transparent); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps.steps-6 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px 24px; }
.step .num {
  font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* FLOW STEPS (arrow chain, e.g. migration process) */
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.flow-step {
  padding: 12px 20px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 600; color: #fff;
}
.flow-arrow { color: var(--text-faint); font-size: 18px; }

/* PANEL (agency / modernization / industry) */
.panel {
  border-radius: 24px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139,92,246,0.09), rgba(34,211,238,0.06));
  padding: 48px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.panel .txt { flex: 1; min-width: 280px; }
.panel h2 { font-size: 26px; margin-bottom: 14px; }
.panel p { color: var(--text-dim); font-size: 15.5px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 280px; }
.chip { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); font-size: 13.5px; color: var(--text-dim); }

/* CTA BANNER */
.cta-panel {
  border-radius: 28px; padding: 60px 56px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(139,92,246,0.35), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(34,211,238,0.28), transparent 60%),
              #0c0e22;
  border: 1px solid var(--border);
}
.cta-panel h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.cta-panel p { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; max-width: 540px; margin-inline: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; height: 100%; }
.testimonial-card .stars { color: var(--cyan); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--text-dim); margin-bottom: 18px; }
.testimonial-card .author b { display: block; color: #fff; font-size: 14.5px; }
.testimonial-card .author span { font-size: 13px; color: var(--text-faint); }

/* CONTENT CAROUSEL (Bootstrap carousel, restyled) */
.content-carousel .carousel-item { transition-duration: .6s; }
.content-carousel .carousel-dots {
  position: static; display: flex; justify-content: center; gap: 10px; margin: 32px 0 0;
}
.content-carousel .carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); padding: 0; margin: 0; opacity: 1; text-indent: 0;
  transition: background .2s, transform .2s, border-color .2s;
}
.content-carousel .carousel-dots button:hover { border-color: rgba(139,92,246,0.5); transform: scale(1.15); }
.content-carousel .carousel-dots button.active { background: var(--grad); border-color: transparent; }

/* STATS BAND */
.stats-band { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats-band .grid { grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats-band .stat b { font-size: 40px; }

/* BREADCRUMB */
.breadcrumb-bar { padding: 150px 0 0; }
.breadcrumb-bar nav { font-size: 13.5px; color: var(--text-faint); }
.breadcrumb-bar nav a:hover { color: #fff; }

/* CASE STUDIES */
.case-study-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.case-study-card.has-thumb { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.case-study-card .thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.case-study-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-study-card .body { min-width: 0; }
.project-card .thumb { border-radius: 14px 14px 0 0; overflow: hidden; margin: -32px -28px 20px; aspect-ratio: 16/10; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-study-card .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.case-study-card h2 { font-size: 22px; margin-bottom: 14px; }
.case-study-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 18px 0; }
.case-study-card dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.case-study-card dd { font-size: 14.5px; color: var(--text-dim); }
.case-study-card .todo-note { font-size: 13px; color: var(--pink); border: 1px dashed rgba(236,72,153,0.4); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }

/* CONTACT ROWS */
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; color: #eef0fb;}
.contact-row .icon-sm {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(139,92,246,0.22), rgba(34,211,238,0.16));
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-row .icon-sm svg { width: 16px; height: 16px; stroke: var(--cyan); }
.contact-row a, .contact-row span.text { color: var(--text-dim); font-size: 14.5px; padding-top: 7px; }
.contact-row a:hover { color: #fff; }
.contact-row.contact-row--sm { gap: 10px; }
.contact-row.contact-row--sm .icon-sm { width: 26px; height: 26px; border-radius: 8px; }
.contact-row.contact-row--sm .icon-sm svg { width: 13px; height: 13px; }
.contact-row.contact-row--sm a { padding-top: 4px; font-size: 14.5px; margin-bottom: 0; }

/* FORM */
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-panel label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.form-panel .form-group { margin-bottom: 20px; }
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel select,
.form-panel textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: #fff; font-family: inherit; font-size: 14.5px;
}
.form-panel textarea { min-height: 120px; resize: vertical; }
.form-panel input::placeholder, .form-panel textarea::placeholder { color: var(--text-faint); }
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { outline: none; border-color: var(--violet); }
.form-panel fieldset { border: none; padding: 0; margin: 0 0 22px; }
.form-panel legend { font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; padding: 0; }
.form-panel .radio-row, .form-panel .checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-panel .radio-row label, .form-panel .checkbox-row label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; cursor: pointer;
}
.form-panel button[type="submit"] {
  padding: 15px 30px; border-radius: 100px; background: var(--grad); color: #08050f;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(139,92,246,0.55);
}
/* EXT:form (Bootstrap-flavoured) default markup, scoped to our dark panel */
.form-panel .form-group { margin-bottom: 20px; }
.form-panel .form-label,
.form-panel label { color: var(--text-dim); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form-panel .form-control,
.form-panel .form-select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: #fff; font-family: inherit; font-size: 14.5px;
}
.form-panel .form-control:focus,
.form-panel .form-select:focus { outline: none; border-color: var(--violet); box-shadow: none; background: rgba(255,255,255,0.05); color: #fff; }
.form-panel .form-select option { background: #0c0e22; color: #fff; }
.form-panel button,
.form-panel input[type="submit"] {
  padding: 15px 30px; border-radius: 100px; background: var(--grad); color: #08050f;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(139,92,246,0.55);
}
.form-panel .error { color: var(--pink); font-size: 13px; margin-top: 6px; display: block; }
.form-panel ul.error { list-style: none; margin: 6px 0 0; padding: 0; }

/* TEAM PHOTO */
.team-photo-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-width: 420px; margin: 0 auto 8px; }
.team-photo-wrap img { width: 100%; display: block; }

/* GENERIC CONTENT (WYSIWYG page fallback) */
.content-page { padding: 160px 0 100px; }
.content-page .prose { max-width: 780px; }
.content-page .prose h2 { margin: 40px 0 16px; font-size: 26px; }
.content-page .prose h3 { margin: 28px 0 12px; font-size: 20px; }
.content-page .prose p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }
.content-page .prose ul, .content-page .prose ol { color: var(--text-dim); margin: 0 0 16px 20px; }
.content-page .prose a { color: var(--cyan); text-decoration: underline; }

/* FOOTER */
footer.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; background: var(--bg-soft); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-col .foot-title { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.foot-col p, .foot-col a { display: block; font-size: 14.5px; color: var(--text-dim); margin-bottom: 10px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }

/* REVEAL ANIM */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.steps-6 { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .navlinks {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: rgba(6,7,20,0.97); flex-direction: column;
    align-items: flex-start; padding: 24px 32px; gap: 6px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s;
  }
  .navlinks.open { transform: translateY(0); }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: none; border: none; box-shadow: none; padding-left: 10px; }
  .nav-dropdown-menu.wide { grid-template-columns: 1fr; min-width: 0; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .grid, .grid.grid-2, .grid.grid-4 { grid-template-columns: 1fr; }
  .steps, .steps.steps-6 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
  .stats-band .grid { grid-template-columns: 1fr; gap: 32px; }
  .panel { padding: 32px 24px; }
  .cta-panel { padding: 44px 24px; }
  .wrap { padding: 0 20px; }
  .case-study-card dl { grid-template-columns: 1fr; }
  .case-study-card.has-thumb { grid-template-columns: 1fr; }
  .form-panel { padding: 24px; }
}

/* AJAX form submit loader */
form.is-submitting { opacity: .65; pointer-events: none; transition: opacity .2s ease; }
form.is-submitting button.is-loading { opacity: 1; cursor: progress; }
.btn-spinner {
  display: inline-block; width: 1em; height: 1em; margin-right: 8px; vertical-align: -0.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: preloader-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation-duration: 1.6s; } }

/* Hero with image */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-split .hero-copy .btn-row { margin-bottom: 0; }
.hero-split .hero-copy .stats-row { margin-top: 48px; }
.hero-visual img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(99, 102, 241, .25)); }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
}
.hero-split h1 { font-size: clamp(32px, 4vw, 52px); }

/* Two-column section (container) */
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* Responsive hardening */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }
.grid > *, .feature-list > *, .steps > *, .testimonial-grid > *, .foot-grid > *, .two-col > *, .hero-copy { min-width: 0; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .two-col { gap: 32px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .two-col, .feature-list, .hero-split { grid-template-columns: minmax(0, 1fr); }
  nav.site-nav, header.site-header.is-scrolled nav.site-nav { padding: 12px 20px; }
  .logo img { height: 44px; }
  header.site-header.is-scrolled .logo img { height: 34px; }
  .navlinks { top: 69px; padding: 20px; }
  .navlinks > a, .nav-dropdown-toggle { font-size: 17px; padding: 10px 0; width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu a { padding: 10px 6px; font-size: 15px; }
  .hero { padding: 120px 0 64px; }
  .hero.hero--compact { padding: 112px 0 10px 0; }
  .hero p.lead { font-size: 16px; }
  .btn-row { margin-bottom: 36px; }
  .btn-row > a { flex: 1 1 100%; text-align: center; justify-content: center; }
  .stats-row { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .navlinks { background: #060714; }
  .navlinks .active::after { display: none; }
  .navlinks > a.active, .navlinks .nav-dropdown-toggle.active { color: var(--cyan); }
}
@media (max-width: 720px) {
  .stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stats-row .stat b { font-size: 28px; }
}
@media (max-width: 420px) { .stats-row { grid-template-columns: minmax(0, 1fr); } }

/* Testimonial slider: scroll-snap track (touch swipe + mouse drag), 3 / 2 / 1 cards per view */
.t-slider { --gap: 22px; --per: 3; }
.t-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; touch-action: pan-x pan-y;
}
.t-track::-webkit-scrollbar { display: none; }
.t-track.no-snap { scroll-snap-type: none; }
.t-track.is-dragging { cursor: grabbing; user-select: none; }
.t-track > .testimonial-card { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; height: auto; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.t-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  padding: 0; transition: background .2s, transform .2s, border-color .2s; cursor: pointer;
}
.t-dots button:hover { border-color: rgba(139,92,246,.5); transform: scale(1.15); }
.t-dots button.active { background: var(--grad); border-color: transparent; }
@media (max-width: 980px) { .t-slider { --per: 2; } }
@media (max-width: 640px) { .t-slider { --per: 1; --gap: 16px; } }

/* Hero image: always visible (no scroll-reveal), reserved space on every screen size */
.hero-visual { display: block; width: 100%; opacity: 1; transform: none; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 560; }
@media (max-width: 900px) {
  .hero-visual { max-width: 520px; margin: 8px auto 0; }
}
@media (max-width: 480px) {
  .hero-visual { max-width: none; margin: 0 -6px; }
}

/* Hero on screens up to 900px: image first, text below */
@media (max-width: 900px) {
  .hero-split .hero-visual { order: -1; max-width: 420px; margin: 0 auto 8px; }
  .hero-split .hero-copy { order: 1; }
}
@media (max-width: 480px) {
  .hero-split .hero-visual { max-width: 340px; margin: 0 auto 4px; }
}

/* Mobile / tablet navigation up to 991px */
@media (max-width: 991px) {
  nav.site-nav, header.site-header.is-scrolled nav.site-nav { padding: 12px 20px; }
  .navlinks {
    position: fixed; top: 69px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: #060714; flex-direction: column;
    align-items: flex-start; padding: 20px 28px; gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s; z-index: 99;
  }
  .navlinks.open { transform: translateY(0); }
  .navlinks > a, .nav-dropdown-toggle { font-size: 17px; padding: 10px 0; width: 100%; }
  .navlinks .active::after { display: none; }
  .navlinks > a.active, .navlinks .nav-dropdown-toggle.active { color: var(--cyan); }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; }
  .nav-dropdown-toggle svg { width: 18px; height: 18px; transition: transform .2s; flex: none; }
  .nav-dropdown.open > .nav-dropdown-toggle svg { transform: rotate(180deg); }
  /* submenus: closed by default, shown only when the parent has .open (active section starts open) */
  .nav-dropdown .nav-dropdown-menu, .nav-dropdown .nav-dropdown-menu.wide {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0;
    background: none; border: none; box-shadow: none; padding: 0 0 6px 12px; grid-template-columns: 1fr;
  }
  .nav-dropdown:hover:not(.open) .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu.wide { display: block; }
  .nav-dropdown-menu a { padding: 10px 6px; font-size: 15px; }
  .burger { display: block; }
  .nav-cta { display: none; }
}

/* Map embed: dark-themed to match the site */
.map-embed { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0;
  filter: invert(92%) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.95); }
.map-embed:hover iframe { filter: none; transition: filter .3s ease; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 1 / 1; } }

/* Mobile drawer anchored directly under the header (any header height), compact logo up to 991px */
@media (max-width: 991px) {
  .navlinks { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; height: calc(100vh - 100%); height: calc(100dvh - 100%); }
  .logo img { height: 44px; }
  header.site-header.is-scrolled .logo img { height: 34px; }
}
@media (max-width: 991px) {
  .navlinks > .nav-dropdown > .nav-dropdown-toggle { font-size: 17px; padding: 10px 0; }
}

/* Hero stats: stacked and centred on small phones */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: center; justify-items: center; }
  .stats-row .stat { text-align: center; }
  .stats-row .stat b, .stats-row .stat span { display: block; }
}

/* FAQ accordion (native <details>, no JS) */
.faq-block .section-head { margin-bottom: 36px; }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: rgba(139, 92, 246, .45); background: var(--surface-hover); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--cyan); transition: transform .25s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 16px; }
.faq-answer { padding: 0 22px 20px; color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer ul { margin: 6px 0 0; padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }
@media (max-width: 640px) { .faq-item summary { padding: 16px 18px; font-size: 16px; } .faq-answer { padding: 0 18px 18px; } }
