/* ==========================================================================
   Your Digital Gurus — Design System
   Primary Orange #F37632 · Secondary Deep Purple #4F338F · Tertiary Red-Orange #F5422A
   ========================================================================== */

:root {
  /* Brand colors */
  --c-primary: #F37632;
  --c-primary-dark: #D9601F;
  --c-secondary: #4F338F;
  --c-secondary-dark: #3D2770;
  --c-secondary-light: #F1EDF9;
  --c-tertiary: #F5422A;
  --c-bg: #FFFFFF;
  --c-bg-section: #F8F9FC;
  --c-text: #1E293B;
  --c-text-light: #64748B;
  --c-border: #E5E7EB;
  --c-white: #FFFFFF;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #F37632 0%, #F5422A 100%);
  --grad-primary-hover: linear-gradient(135deg, #F5422A 0%, #D9351A 100%);
  --grad-hero-glow: radial-gradient(circle at 30% 20%, rgba(243,118,50,0.16), transparent 60%),
                     radial-gradient(circle at 75% 75%, rgba(79,51,143,0.12), transparent 55%);
  --grad-footer-glow: radial-gradient(circle at 85% 20%, rgba(243,118,50,0.25), transparent 55%);

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows — purple-tinted, soft */
  --shadow-sm: 0 2px 8px rgba(79, 51, 143, 0.06);
  --shadow-md: 0 8px 24px rgba(79, 51, 143, 0.10);
  --shadow-lg: 0 20px 48px -12px rgba(79, 51, 143, 0.20);
  --shadow-glow: 0 12px 32px -8px rgba(243, 118, 50, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;

  --container: 1200px;

  /* Z-index scale */
  --z-topbar: 999;
  --z-navbar: 1000;
  --z-dropdown: 1100;
  --z-fab: 1500;
  --z-skip: 2000;

  /* Fixed header-stack heights — overwritten by JS (measured) on load/resize.
     Fallbacks below match the topbar+navbar's natural unscrolled height so
     layout is correct even if JS hasn't run yet (or is disabled). */
  --topbar-h: 44px;
  --header-stack-h: 128px;

  /* Extra vertical breathing room (beyond the header's own height) before
     the hero copy/visual content starts, purely for aesthetic spacing —
     the animated background layers (.hero-bg / .hero-particles) fill the
     hero from y:0 regardless and sit behind the header via z-index. */
  --hero-header-gap: 32px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-secondary);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
p { margin: 0; }

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

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
section[id] { scroll-margin-top: calc(var(--header-stack-h, 118px) + 16px); }
.section--sm { padding: 64px 0; }
.section--alt { background: var(--c-bg-section); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--sm { padding: 48px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--c-text-light); font-size: 1.0625rem; }

.text-light { color: var(--c-text-light); }
.text-white { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(245, 66, 42, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--c-secondary);
  color: var(--c-secondary);
  padding: 13px 28px;
}
.btn-secondary:hover {
  border-color: var(--c-tertiary);
  background: var(--c-secondary-light);
  color: var(--c-secondary-dark);
  transform: translateY(-2px);
}
.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 13px 28px;
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: var(--topbar-h, 44px); left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: 12px 0;
  transition: padding var(--t-med) var(--ease);
}
/* The blurred/tinted background lives on a pseudo-element rather than on
   .navbar itself. backdrop-filter (like transform/filter) creates a new
   containing block for position:fixed descendants — with it on .navbar
   directly, the fixed-position mega menu below resolves its `top` against
   the navbar's box instead of the viewport, opening tens of px too low and
   leaving a dead zone that breaks hover. Keeping .navbar filter-free avoids
   that entirely. */
/* Solid premium white header at all times — no transparent, glass or dark
   state. Kept on a pseudo-element (not .navbar itself) purely because
   backdrop-filter would create a containing block that breaks the fixed-
   position mega menu's positioning; see above. */
.navbar::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: #fff;
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease);
}
.navbar.is-scrolled {
  padding: 8px 0;
}
.navbar.is-scrolled::before {
  background: #fff;
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-md);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-secondary); }

/* ---------- Logo tile — premium white card that houses the logo everywhere
   (header, sticky header, footer, mobile menu, hero, contact, career, blog,
   case studies). Never crops/stretches the source image; only the tile size
   changes between compact chrome and larger spotlight placements. ---------- */
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-tile picture { display: contents; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
/* Nav logo: no white tile — the original transparent-background logo sits
   directly on the white header, sized up for prominence instead of being
   boxed in a card. */
.logo-tile--nav {
  width: 230px; height: 80px; padding: 0;
  background: transparent; box-shadow: none; border-radius: 0;
}
@media (max-width: 900px) {
  .logo-tile--nav { width: 202px; height: 70px; }
}
@media (max-width: 640px) {
  .logo-tile--nav { width: 80px; height: 70px; }
}
.logo-tile--spotlight {
  width: 108px; height: 108px; padding: 16px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .logo-tile--spotlight { width: 80px; height: 80px; padding: 12px; }
}
/* Footer logo: transparent like the nav treatment (no white card), sized up
   to match the header. The footer sits on a solid purple (--c-secondary)
   background that's close to the purple half of the logo mark/wordmark, so a
   single soft, edgeless radial glow (not a border/box) sits behind it purely
   to keep that half legible — same "glow allowed, no box" approach used on
   the hero copy. */
.logo-tile--footer {
  position: relative;
  width: 230px; height: 80px; padding: 0;
  background: transparent; box-shadow: none; border-radius: 0;
}
.logo-tile--footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
  z-index: 0;
}
.logo-tile--footer img { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .logo-tile--footer { width: 200px; height: 70px; }
}
@media (max-width: 640px) {
  .logo-tile--footer { width: 170px; height: 60px; }
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  padding: 9px 11px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--c-text);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:not(.btn):hover { color: var(--c-secondary); background: var(--c-secondary-light); }
.nav-links a.active { color: var(--c-secondary); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-call {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c-secondary);
  color: var(--c-secondary);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav-call svg { width: 18px; height: 18px; }
.nav-call:hover { background: var(--c-secondary-light); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--c-secondary); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-cta { display: none; }

/* ---------- Nav dropdowns (desktop hover / mobile accordion) ---------- */
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 10px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.875rem; color: var(--c-text);
  background: none; border: none;
  white-space: nowrap;
  font-family: inherit;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-drop-toggle:hover,
.nav-dropdown.is-open .nav-drop-toggle,
.nav-drop-toggle.active { color: var(--c-secondary); background: var(--c-secondary-light); }
.nav-drop-toggle .chevron { width: 12px; height: 12px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.nav-dropdown.is-open .nav-drop-toggle .chevron { transform: rotate(180deg); }
@media (min-width: 1101px) {
  .nav-dropdown:hover .nav-drop-toggle .chevron { transform: rotate(180deg); }
}

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  padding-top: 12px; /* bridges the gap so hover doesn't drop */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), visibility var(--t-fast);
  z-index: var(--z-dropdown);
}
.nav-dropdown-menu-inner {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 32px -14px rgba(15, 12, 41, 0.16), 0 4px 10px -4px rgba(15, 12, 41, 0.06);
  padding: 8px;
  display: flex; flex-direction: column; gap: 1px;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: transform var(--t-fast) var(--ease);
}
@media (min-width: 1101px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-dropdown:hover .nav-dropdown-menu-inner,
  .nav-dropdown.is-open .nav-dropdown-menu-inner { transform: translateY(0) scale(1); }
}
.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.87rem; font-weight: 500; color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--c-secondary-light); color: var(--c-secondary); }

/* ---------- Mega menu (Services) — full-width, 5 columns, glass panel ---------- */
@media (min-width: 1101px) {
  .nav-dropdown.mega .nav-dropdown-menu {
    position: fixed;
    top: var(--header-stack-h, 118px); left: 0; right: 0;
    transform: none;
    width: 100%; min-width: 0;
    padding-top: 0;
  }
  .nav-dropdown.mega .nav-dropdown-menu-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 24px 48px -18px rgba(15, 12, 41, 0.18), 0 6px 16px -6px rgba(15, 12, 41, 0.08);
    padding: 22px 32px 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px 22px;
    flex-direction: unset;
    max-height: calc(100vh - var(--header-stack-h, 118px) - 20px);
    overflow-y: auto;
  }
  .nav-dropdown.mega .nav-dropdown-menu-inner::before {
    content: '';
    position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
    background: var(--grad-primary);
    border-radius: 0 0 3px 3px;
  }
}
.mega-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.mega-col-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-secondary-light); color: var(--c-secondary);
  margin-bottom: 7px;
}
.mega-col-icon svg { width: 16px; height: 16px; }
.mega-col-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: -0.01em; color: var(--c-secondary); margin: 0 0 2px; }
.mega-col-desc { font-size: 0.71rem; color: var(--c-text-light); margin: 0 0 6px; line-height: 1.4; }
.nav-links .mega-panel a:not(.btn) { white-space: normal; padding: 5px 8px; margin-left: -8px; font-size: 0.77rem; line-height: 1.3; transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast) var(--ease); }
.mega-panel a:hover { padding-left: 11px; }

@media (max-width: 1100px) {
  .nav-links { position: fixed; top: calc(var(--header-stack-h, 118px) + 4px); left: 16px; right: 16px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); max-height: calc(100vh - var(--header-stack-h, 118px) - 28px); overflow-y: auto; }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 13px 16px; }
  .nav-links-cta { display: block; margin: 6px 4px 2px; text-align: center; }
  .nav-call { display: none; }
  .nav-toggle { display: flex; }

  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 13px 16px; }
  .nav-dropdown-menu {
    position: static; transform: none; padding-top: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: 0; overflow: hidden;
    transition: max-height var(--t-med) var(--ease);
  }
  .nav-dropdown-menu-inner {
    transform: none; border: none; box-shadow: none; padding: 2px 0 6px 10px;
    background: var(--c-bg-section); border-radius: var(--r-sm); margin-top: 2px;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { max-height: 900px; }
}

@media (max-width: 560px) {
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-stack-h, 118px));
  padding: calc(var(--header-stack-h, 118px) + var(--hero-header-gap, 32px) + 56px) 0 80px;
  background: var(--grad-hero-glow), linear-gradient(135deg, #241a3d 0%, #3D2770 55%, #4a2f7a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy {
  position: relative;
}
.hero-copy .eyebrow {
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 6.2vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero-copy h1 .line { display: block; }
.hero-copy h1 .accent-gradient {
  background: linear-gradient(180deg, #FF6B35 0%, #FF8A3D 50%, #FFC857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy h1 .accent-solid {
  color: #FFFFFF;
}
.hero-copy h1 .tail {
  display: block;
  font-size: 0.6em;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.375rem);
  font-weight: 500;
  color: #D7D9E3;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
  letter-spacing: 0.01em;
  max-width: 46ch;
}
.hero-tagline .tag-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

/* Animated background: the hero's main visual layer, kept fully unobscured —
   no glass panel over the copy. Readability instead comes from a soft scrim
   gradient washing the text column (left side) plus a light text-shadow on
   the copy itself. A pointer-driven parallax drift (see main.js,
   --hero-px/--hero-py) adds a bit of "alive" without moving enough to
   distract. */
/* Fills the hero from y:0 (behind the header) instead of starting below it —
   the fixed topbar+navbar stack has its own opaque background and a much
   higher z-index (see --z-navbar/--z-topbar), so it still paints on top and
   stays fully legible without needing a blank offset that showed as a plain
   gap above the animation. */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0; right: 0; bottom: 0;
  z-index: 0; overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.1);
  transform: translate3d(var(--hero-px, 0px), var(--hero-py, 0px), 0) scale(1.04);
  transition: opacity 1.2s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.hero-bg-video.is-playing { opacity: 1; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(18,12,36,.68) 0%, rgba(18,12,36,.42) 30%, rgba(18,12,36,.16) 55%, transparent 75%),
    radial-gradient(circle at 15% 20%, rgba(243,118,50,.16), transparent 55%),
    radial-gradient(circle at 85% 82%, rgba(79,51,143,.2), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 22%, transparent 78%, rgba(0,0,0,.2) 100%);
}
@media (max-width: 960px) {
  .hero-bg-overlay {
    background:
      radial-gradient(ellipse at 50% 28%, rgba(18,12,36,.6), transparent 65%),
      linear-gradient(180deg, rgba(18,12,36,.55) 0%, rgba(18,12,36,.28) 40%, rgba(18,12,36,.38) 100%),
      radial-gradient(circle at 15% 20%, rgba(243,118,50,.16), transparent 55%),
      radial-gradient(circle at 85% 82%, rgba(79,51,143,.2), transparent 58%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

.hero-visual {
  transform: translate3d(var(--hero-vx, 0px), var(--hero-vy, 0px), 0);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin: 0 auto; }
  .hero-copy { text-align: center; }
}

/* ---------- Signature element: the Guru Orbit ---------- */
.orbit {
  position: relative;
  width: min(460px, 90vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-glow {
  position: absolute; top: 50%; left: 50%;
  width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,118,50,.4) 0%, rgba(79,51,143,.28) 45%, transparent 72%);
  filter: blur(32px);
  z-index: 1;
  animation: orbit-glow-pulse 6s ease-in-out infinite;
}
@keyframes orbit-glow-pulse {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  width: 128px; height: 128px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 0 10px rgba(243,118,50,0.08), 0 0 60px rgba(243,118,50,0.4), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 3;
  animation: core-pulse 4s ease-in-out infinite;
}
.orbit-core img { width: 100%; height: 100%; object-fit: contain; }
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(243,118,50,0.08), 0 0 60px rgba(243,118,50,0.4), inset 0 1px 0 rgba(255,255,255,0.8); }
  50% { box-shadow: 0 0 0 14px rgba(243,118,50,0.12), 0 0 80px rgba(243,118,50,0.55), inset 0 1px 0 rgba(255,255,255,0.8); }
}
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
/* The gradient-stroke ring lives on ::before (its own mask/composite only
   affects itself), so the node cards — real DOM children — never get
   caught in the ring's mask and stay fully visible on top. */
.orbit-ring::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(rgba(243,118,50,.55), rgba(79,51,143,.5), rgba(243,118,50,.15), rgba(79,51,143,.5), rgba(243,118,50,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(79,51,143,.25));
}
.orbit-ring--inner { width: 68%; height: 68%; animation: spin 26s linear infinite; }
.orbit-ring--inner::before { animation: ring-pulse 3.6s ease-in-out infinite; }
.orbit-ring--outer { width: 100%; height: 100%; animation: spin-rev 40s linear infinite; }
.orbit-ring--outer::before { animation: ring-pulse 4.4s ease-in-out infinite; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-rev { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-ring--inner, .orbit-ring--outer, .orbit-ring--inner::before, .orbit-ring--outer::before, .orbit-glow, .orbit-core { animation: none; }
}

.orbit-node {
  position: absolute;
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-secondary);
  animation: counter-spin-inner 26s linear infinite;
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.orbit-node svg { width: 24px; height: 24px; }
.orbit-ring--inner .orbit-node { animation: counter-spin-inner 26s linear infinite; }
.orbit-ring--outer .orbit-node { animation: counter-spin-outer 40s linear infinite; }
@keyframes counter-spin-inner { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes counter-spin-outer { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@media (hover: hover) and (pointer: fine) {
  .orbit-node:hover {
    background: #fff;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(243,118,50,.25);
  }
  .orbit-node:hover svg { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-node { animation: none; }
}

.orbit-node:nth-child(1) { top: -29px; left: 50%; margin-left: -29px; }
.orbit-node:nth-child(2) { top: 50%; right: -29px; margin-top: -29px; }
.orbit-node:nth-child(3) { bottom: -29px; left: 50%; margin-left: -29px; }
.orbit-node:nth-child(4) { top: 50%; left: -29px; margin-top: -29px; }

.orbit-ring--outer .orbit-node:nth-child(1) { top: -29px; left: 50%; margin-left: -29px; }
.orbit-ring--outer .orbit-node:nth-child(2) { top: 22%; right: -10px; }
.orbit-ring--outer .orbit-node:nth-child(3) { bottom: -29px; left: 50%; margin-left: -29px; }
.orbit-ring--outer .orbit-node:nth-child(4) { top: 22%; left: -10px; }

.orbit-caption {
  position: absolute; bottom: -46px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-text-light);
  white-space: nowrap; letter-spacing: 0.04em;
}

/* Small orbit avatar (used on Services / About) */
.mini-orbit { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.mini-orbit-ring { position: absolute; inset: -8px; border: 1.5px dashed rgba(243,118,50,0.35); border-radius: 50%; }
.mini-orbit-icon {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--c-secondary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-secondary);
}
.mini-orbit-icon svg { width: 28px; height: 28px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(243,118,50,0.25); }

.service-card h3 { font-size: 1.25rem; margin: 20px 0 10px; }
.service-card p { color: var(--c-text-light); font-size: 0.95rem; margin-bottom: 18px; }
.service-card .link { color: var(--c-primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card .link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.service-card:hover .link svg { transform: translateX(4px); }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.alt { background: var(--c-secondary-light); color: var(--c-secondary); }

/* Bento layout for services teaser */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento .card:first-child { grid-column: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card:first-child { grid-column: span 1; }
}

/* ---------- What We Do: image-led service grid ---------- */
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.wwd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.wwd-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  padding: 2px;
  background: var(--grad-primary);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: 2;
}
.wwd-card:hover, .wwd-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.wwd-card:hover::before, .wwd-card:focus-visible::before { opacity: 1; }
.wwd-card-img { aspect-ratio: 16/10; flex-shrink: 0; overflow: hidden; }
.wwd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.wwd-card:hover .wwd-card-img img, .wwd-card:focus-visible .wwd-card-img img { transform: scale(1.08); }
.wwd-card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.wwd-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.wwd-card-body p { color: var(--c-text-light); font-size: 0.9rem; line-height: 1.55; flex: 1; margin-bottom: 16px; }
.wwd-card-body .link { color: var(--c-primary); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 6px; }
.wwd-card-body .link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.wwd-card:hover .link svg { transform: translateX(4px); }

@media (max-width: 960px) {
  .wwd-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wwd-grid { grid-template-columns: 1fr; }
}

/* Process steps */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--c-primary); display: block; margin-bottom: 14px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--c-text-light); font-size: 0.925rem; }
.process-line { position: absolute; top: 0; left: -14px; width: 1px; height: 100%; background: var(--c-border); }
.process-step:first-child .process-line { display: none; }
@media (max-width: 900px) { .process-line { display: none !important; } }

/* ---------- Workflow timeline (How We Work / process sections) ---------- */
.wt-timeline {
  --wt-count: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--wt-count), 1fr);
  gap: 28px;
  padding-top: 4px;
}
.wt-line {
  position: absolute;
  top: 44px;
  left: calc(50% / var(--wt-count));
  right: calc(50% / var(--wt-count));
  height: 2px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-primary));
  border-radius: var(--r-pill);
  opacity: 0.4;
  z-index: 0;
  transition: opacity var(--t-med) var(--ease);
}
.wt-timeline:hover .wt-line { opacity: 0.7; }
.wt-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  outline: none;
}
.wt-icon {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-primary));
  border: 3px solid #fff;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(79, 51, 143, 0.07);
  color: #fff;
  margin-bottom: 22px;
  animation: wtFloat 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.wt-icon svg { width: 32px; height: 32px; stroke-width: 1.75; }
.wt-step:hover .wt-icon, .wt-step:focus-visible .wt-icon, .wt-step:focus-within .wt-icon {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(243, 118, 50, 0.14);
}
.wt-step.is-current .wt-icon {
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(243, 118, 50, 0.18);
}
.wt-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 26px 20px;
  width: 100%;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.wt-step:hover .wt-card, .wt-step:focus-visible .wt-card, .wt-step:focus-within .wt-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(243, 118, 50, 0.25);
}
.wt-num {
  display: block;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: 10px;
}
.wt-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.wt-step p { color: var(--c-text-light); font-size: 0.9rem; line-height: 1.6; }

@keyframes wtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .wt-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .wt-line { display: none; }
}
@media (max-width: 640px) {
  .wt-timeline { display: flex; flex-direction: column; gap: 0; }
  .wt-line { display: block; top: 34px; bottom: 34px; left: 33px; right: auto; width: 2px; height: auto; }
  .wt-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding-bottom: 28px; }
  .wt-step:last-child { padding-bottom: 0; }
  .wt-icon { width: 68px; height: 68px; margin-bottom: 0; }
  .wt-icon svg { width: 26px; height: 26px; }
  .wt-card { padding: 18px 20px; }
}

/* Portfolio */
.portfolio-card { overflow: hidden; padding: 0; }
.portfolio-thumb {
  height: 200px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.portfolio-card:hover .portfolio-thumb,
.blog-card:hover .blog-thumb { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .portfolio-thumb, .blog-thumb { transition: none; }
}
.portfolio-thumb .tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
}
.portfolio-body { padding: 26px 28px 30px; }
.portfolio-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--c-text-light); font-size: 0.925rem; margin-bottom: 18px; }
.portfolio-metrics { display: flex; gap: 20px; border-top: 1px solid var(--c-border); padding-top: 16px; }
.portfolio-metrics div strong { display: block; font-family: var(--font-display); color: var(--c-secondary); font-size: 1.15rem; }
.portfolio-metrics div span { font-size: 0.78rem; color: var(--c-text-light); }

.thumb-grad-1 { background: linear-gradient(135deg, #4F338F, #F5422A); }
.thumb-grad-2 { background: linear-gradient(135deg, #F37632, #4F338F); }
.thumb-grad-3 { background: linear-gradient(135deg, #F5422A, #F37632); }
.thumb-grad-4 { background: linear-gradient(135deg, #3D2770, #F37632); }
.thumb-grad-5 { background: linear-gradient(135deg, #F37632, #F5422A, #4F338F); }
.thumb-grad-6 { background: linear-gradient(135deg, #4F338F, #F37632); }

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; gap: 20px; }
.testimonial-card .quote { font-size: 1.05rem; color: var(--c-text); }
.testimonial-card .quote::before { content: '\201C'; color: var(--c-primary); font-size: 2rem; font-family: var(--font-display); line-height: 0; vertical-align: -8px; margin-right: 2px; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 0.9rem;
  flex-shrink: 0;
}
.person .name { font-weight: 600; color: var(--c-secondary); font-size: 0.95rem; }
.person .role { font-size: 0.82rem; color: var(--c-text-light); }

/* ---------- Testimonials — premium infinite marquee ---------- */
.testimonials-premium { overflow: hidden; }
.t-marquee {
  position: relative;
  margin-top: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.t-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; }
.t-viewport.is-dragging { cursor: grabbing; }
.t-track { display: flex; width: max-content; }
.t-card {
  --t-card-w: 380px;
  width: var(--t-card-w); flex: 0 0 var(--t-card-w);
  margin-right: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(243, 118, 50, 0.25); }
.t-stars { color: var(--c-primary); font-size: 0.95rem; letter-spacing: 2px; }
.t-quote { color: var(--c-text); font-size: 0.98rem; line-height: 1.62; flex-grow: 1; }
.t-quote::before { content: '\201C'; color: var(--c-primary); font-size: 1.8rem; font-family: var(--font-display); line-height: 0; vertical-align: -6px; margin-right: 2px; }
.t-foot { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.t-avatar { width: 52px; height: 52px; box-sizing: border-box; border-radius: 50%; padding: 2px; background: var(--grad-primary); flex-shrink: 0; }
.t-who .t-name { font-weight: 600; color: var(--c-secondary); font-size: 0.95rem; font-family: var(--font-display); }
.t-who .t-role { font-size: 0.82rem; color: var(--c-text-light); }
.t-who .t-meta { font-size: 0.78rem; color: var(--c-text-light); opacity: 0.85; }
.t-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.t-tag, .t-result { font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); }
.t-tag { background: var(--c-secondary-light); color: var(--c-secondary); }
.t-result { background: rgba(243, 118, 50, 0.12); color: var(--c-primary-dark); }
.t-cta { text-align: center; margin-top: 48px; }
.t-cta h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 20px; color: var(--c-secondary); }
@media (max-width: 900px) {
  .t-card { --t-card-w: 320px; padding: 26px 24px 22px; }
}
@media (max-width: 640px) {
  .t-card { --t-card-w: 86vw; }
  .t-marquee { margin-top: 32px; }
  .t-cta { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-card { transition: none; }
  .t-card:hover { transform: none; }
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.pricing-card { text-align: left; position: relative; }
.pricing-card.featured {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  background: linear-gradient(180deg, #FFF9F5 0%, #ffffff 18%);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--grad-primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-glow);
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pricing-card .plan-desc { color: var(--c-text-light); font-size: 0.9rem; margin-bottom: 22px; }
.pricing-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.pricing-card .price .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--c-secondary); }
.pricing-card .price .period { color: var(--c-text-light); font-size: 0.9rem; }
.pricing-card .price-note { font-size: 0.8rem; color: var(--c-text-light); margin-bottom: 26px; }
.pricing-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.pricing-features svg { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--c-secondary);
}
.faq-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--c-primary); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; }
.faq-item.is-open .faq-q .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--c-text-light); font-size: 0.95rem; max-width: 680px; }
.faq-item.is-open .faq-a { max-height: 320px; }

/* ---------- FAQ — premium accordion cards ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list .faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.faq-list .faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-list .faq-item:hover { box-shadow: var(--shadow-md); border-color: rgba(243, 118, 50, 0.25); transform: translateY(-2px); }
.faq-list .faq-item.is-open { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.faq-list .faq-q { padding: 22px 24px; }
.faq-list .faq-a { opacity: 0; transition: max-height var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.faq-list .faq-item.is-open .faq-a { max-height: 480px; opacity: 1; }
.faq-list .faq-a p { padding: 0 24px 26px; max-width: none; }
.faq-list .faq-q:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: var(--r-sm); }
@media (max-width: 640px) {
  .faq-list .faq-q { padding: 18px 18px; font-size: 0.96rem; }
  .faq-list .faq-a p { padding: 0 18px 20px; }
}

/* Blog */
.blog-card { padding: 0; overflow: hidden; }
.blog-thumb { height: 170px; position: relative; overflow: hidden; transition: transform 0.6s var(--ease); }
.blog-cat {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.9); color: var(--c-secondary);
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-body { padding: 24px 26px 28px; }
.blog-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--c-text-light); margin-bottom: 10px; font-family: var(--font-mono); }
.blog-body h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.blog-body p { color: var(--c-text-light); font-size: 0.9rem; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-stack-h, 118px) + 40px) 0 72px; background: var(--grad-hero-glow), var(--c-bg-section); text-align: center; }
.page-hero .container { position: relative; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: var(--c-text-light); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--c-text-light); margin-bottom: 18px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--c-primary); }

/* Page hero with photo background */
.page-hero.has-photo { background: #1a1030; }
.page-hero.has-photo .float-deco { display: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,9,32,0.90) 0%, rgba(79,51,143,0.74) 55%, rgba(243,118,50,0.32) 100%);
}
.page-hero.has-photo .container { position: relative; z-index: 1; }
.page-hero.has-photo .breadcrumb { color: rgba(255,255,255,0.7); }
.page-hero.has-photo .breadcrumb a { color: rgba(255,255,255,0.94); }
.page-hero.has-photo .eyebrow { color: #ffd2ab; }
.page-hero.has-photo .eyebrow::before { background: linear-gradient(90deg, #ffd2ab, #fff); }
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo p { color: rgba(255,255,255,0.86); }
.page-hero.has-photo .btn-secondary { border-color: rgba(255,255,255,0.75); color: #fff; }
.page-hero.has-photo .btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: #fff; color: #fff; }

/* Values / list rows */
.value-row { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--c-border); }
.value-row:first-child { border-top: 1px solid var(--c-border); }
.value-row .icon-tile { flex-shrink: 0; }
.value-row h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value-row p { color: var(--c-text-light); font-size: 0.925rem; }

/* Team */
.team-card { text-align: center; }
.team-card .avatar { width: 84px; height: 84px; font-size: 1.3rem; margin: 0 auto 18px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { color: var(--c-primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { color: var(--c-text-light); font-size: 0.875rem; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--c-secondary);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-footer-glow); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 32px; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 48px 24px; } }

/* ---------- Contact / Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--c-secondary); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm); color: var(--c-text); background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(243,118,50,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--c-text-light); margin-top: 8px; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--r-sm); font-size: 0.9rem; margin-top: 18px; }
.form-status.show { display: block; }
.form-status.success { background: #F1EDF9; color: var(--c-secondary-dark); border: 1px solid rgba(79,51,143,0.2); }

.contact-info-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { color: var(--c-text-light); font-size: 0.9rem; }
.contact-info-card a:hover { color: var(--c-primary); }
.map-block {
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-secondary), var(--c-secondary-dark));
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-block::before { content: ''; position: absolute; inset: 0; background: var(--grad-footer-glow); }
.map-block .pin { position: relative; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.map-block .pin svg { width: 34px; height: 34px; color: var(--c-primary); }
.map-block .pin span { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-secondary); color: rgba(255,255,255,0.75); position: relative; overflow: hidden; padding: 80px 0 0; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: var(--grad-footer-glow); pointer-events: none; }
.site-footer .container { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 18px 0 22px; max-width: 300px; font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--c-primary); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-primary); }
.footer-newsletter form { display: flex; gap: 8px; margin-top: 4px; }
.footer-newsletter input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter button {
  width: 44px; flex-shrink: 0; border-radius: var(--r-sm); border: none;
  background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center;
}
.footer-newsletter button svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; gap: 16px; flex-wrap: wrap; font-size: 0.83rem; }
.footer-bottom .legal-links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

/* Service detail rows (used on individual service pages) */
.svc-row { display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; padding:72px 0; border-bottom:1px solid var(--c-border); }
.svc-row:last-of-type { border-bottom:none; }
.svc-row.reverse .svc-copy { order:2; }
.svc-copy h2 { font-size:1.9rem; margin:18px 0 16px; }
.svc-features { display:flex; flex-direction:column; gap:12px; margin-top:22px; }
.svc-features li { display:flex; gap:10px; align-items:flex-start; font-size:0.95rem; color:var(--c-text); }
.svc-features svg { width:18px; height:18px; color:var(--c-primary); flex-shrink:0; margin-top:2px; }
.svc-panel { border-radius: var(--r-xl); padding: 44px; display:flex; align-items:center; justify-content:center; min-height:280px; }
.svc-panel svg { width:120px; height:120px; color:#fff; opacity:0.95; }
@media (max-width: 860px) { .svc-row, .svc-row.reverse .svc-copy { grid-template-columns:1fr; order:0; } .svc-row { grid-template-columns:1fr; } }

/* Photo variant of .svc-panel — real photography instead of a centered icon,
   filling the panel edge-to-edge with a brand-tinted wash so it still reads
   as "on brand" rather than generic stock. */
.svc-panel-photo { padding: 0; overflow: hidden; position: relative; min-height: 320px; }
.svc-panel-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.svc-panel-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(79,51,143,0.32) 0%, rgba(243,118,50,0.14) 55%, transparent 85%);
  pointer-events: none;
}
@media (max-width: 860px) { .svc-panel-photo, .svc-panel-photo img { min-height: 240px; } }

/* Badge row (tech stacks, tags) */
.badge-row { display:flex; flex-wrap:wrap; gap:10px; }

/* Filter bar (Portfolio) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter-bar button {
  padding: 10px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--c-border);
  background: #fff; color: var(--c-text-light); font-weight: 600; font-size: 0.875rem;
  transition: all var(--t-fast) var(--ease);
}
.filter-bar button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-bar button.active { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }

/* ---------- Scroll reveal ---------- */
/* Hidden only once main.js confirms it's running (html.js) — content
   stays visible by default so a blocked/failed script never hides it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-secondary-light); color: var(--c-secondary);
  font-size: 0.78rem; font-weight: 600; padding: 5px 13px; border-radius: var(--r-pill);
}
hr.divider { border: none; border-top: 1px solid var(--c-border); margin: 0; }

/* ==========================================================================
   Premium components — top bar, floating CTA, marquee, carousel, tech grid,
   deliverables, related services, scroll progress, and motion utilities.
   ========================================================================== */

/* ---------- Progressive cross-page view transitions ---------- */
/* No-op on browsers that don't support it — purely additive. */
@view-transition {
  navigation: auto;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad-primary);
  z-index: calc(var(--z-topbar) + 1);
  transition: width 0.12s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- Top utility bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-topbar);
  background: var(--c-secondary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  max-width: 1440px;
}
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.85); transition: color var(--t-fast); white-space: nowrap; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--c-primary); }
a.topbar-item:hover { color: #fff; }
.topbar-locations { display: flex; align-items: center; gap: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,0.18); flex-wrap: wrap; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a { display: flex; color: rgba(255,255,255,0.7); transition: color var(--t-fast), transform var(--t-fast); }
.topbar-social a:hover { color: var(--c-primary); transform: translateY(-1px); }
.topbar-social svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .topbar-locations { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 8px 20px; }
  .topbar-item span.topbar-label { display: none; }
  .topbar-info { gap: 14px; }
  .topbar-social { display: none; }
}

/* ---------- Floating contact buttons (Call + WhatsApp) ---------- */
.contact-fab {
  position: fixed; right: 24px; bottom: 24px;
  z-index: var(--z-fab);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.contact-fab-btn {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.contact-fab-btn svg { width: 25px; height: 25px; position: relative; z-index: 2; }
.contact-fab-btn:hover, .contact-fab-btn:focus-visible { transform: translateY(-4px) scale(1.06); }
.contact-fab-btn.fab-call { background: var(--grad-primary); box-shadow: 0 10px 28px -6px rgba(243, 118, 50, 0.55); }
.contact-fab-btn.fab-call:hover { box-shadow: 0 16px 36px -8px rgba(245, 66, 42, 0.6); }
.contact-fab-btn.fab-whatsapp { background: #25D366; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55); }
.contact-fab-btn.fab-whatsapp:hover { box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.65); }

/* Gentle ambient pulse ring — transform/opacity only, GPU-friendly */
.contact-fab-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor;
  animation: fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.contact-fab-btn.fab-call::after { color: rgba(243, 118, 50, 0.55); }
.contact-fab-btn.fab-whatsapp::after { color: rgba(37, 211, 102, 0.55); animation-delay: 1.3s; }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: 0.55; }
  70% { box-shadow: 0 0 0 16px currentColor; opacity: 0; }
  100% { box-shadow: 0 0 0 16px currentColor; opacity: 0; }
}

/* Tooltip — desktop pointer devices only */
.contact-fab-btn .fab-tooltip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: var(--c-secondary-dark); color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-fab-btn:hover .fab-tooltip, .contact-fab-btn:focus-visible .fab-tooltip {
    opacity: 1; transform: translateY(-50%) translateX(-4px);
  }
}

@media (max-width: 560px) {
  .contact-fab { right: 16px; bottom: 16px; gap: 12px; }
  .contact-fab-btn { width: 52px; height: 52px; }
  .contact-fab-btn svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-fab-btn::after { animation: none; display: none; }
  .contact-fab-btn { transition: none; }
}

/* ---------- Sector grid (homepage sector strategies — icon + name only, no card/box) ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px 4px;
}
.sector-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  padding: 20px 8px;
  text-align: center;
  border-radius: var(--r-md);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.sector-item:hover, .sector-item:focus-visible {
  transform: translateY(-4px);
  background: var(--c-secondary-light);
}
.sector-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-secondary-light);
  color: var(--c-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.sector-icon svg { width: 24px; height: 24px; }
.sector-item:hover .sector-icon {
  background: var(--grad-primary);
  color: #fff;
  transform: scale(1.1);
}
.sector-name { font-size: 0.85rem; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.sector-item:hover .sector-name { color: var(--c-primary); }
@media (max-width: 1300px) {
  .sector-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1000px) {
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trusted By ---------- */
.trusted-by {
  padding: 100px 0;
  background: var(--c-bg-section);
  position: relative;
  overflow: hidden;
}
.trusted-by .container { max-width: 1400px; padding: 0 16px; }
.trusted-by-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.trusted-by-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.trusted-by-head p { color: var(--c-text-light); font-size: 1.15rem; }

/* ---------- Logo marquee (two independent rows, opposite directions) ----------
   Logos are bare artwork (background removed at the asset level — see
   scripts/remove_logo_white_bg.py / logos-transparent/) with no white tile
   or card behind them; the section background shows straight through. */
.logo-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee + .logo-marquee { margin-top: 8px; }
.logo-marquee::-webkit-scrollbar { display: none; }
.logo-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.logo-marquee[data-direction="reverse"] .logo-track {
  animation-name: marquee-scroll-reverse;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track,
.logo-marquee.is-paused .logo-track { animation-play-state: paused; }
.logo-track .logo-item {
  display: flex; align-items: center; justify-content: center;
  height: 130px; padding: 0 24px; flex-shrink: 0;
}
.logo-track img {
  max-height: 102px; width: auto; max-width: 267px;
  opacity: 1;
  filter: none;
  transition: transform var(--t-med) var(--ease), filter var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.logo-track .logo-item:hover img {
  transform: scale(1.05) translate3d(0, -4px, 0);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.16));
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes marquee-scroll-reverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (max-width: 900px) {
  .logo-track .logo-item { height: 110px; padding: 0 20px; }
  .logo-track img { max-height: 86px; max-width: 216px; }
}
@media (max-width: 640px) {
  .trusted-by { padding: 72px 0; }
  .trusted-by .container { padding: 0 16px; }
  .trusted-by-head { margin-bottom: 40px; }
  .logo-track .logo-item { height: 98px; padding: 0 16px; }
  .logo-track img { max-height: 58px; max-width: 158px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ---------- Client logo grids (clients.html — bare artwork, no card/border) ---------- */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 36px;
  align-items: center;
  justify-items: center;
}
.client-logo-grid img {
  max-height: 86px; width: auto; max-width: 210px;
  opacity: 1; filter: none;
  transition: transform var(--t-med) var(--ease);
}
.client-logo-grid img:hover { transform: scale(1.08); }
.client-logo-grid.more {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 26px;
}
.client-logo-grid.more img { max-height: 60px; max-width: 156px; }
@media (max-width: 640px) {
  .client-logo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 24px; }
  .client-logo-grid img { max-height: 60px; max-width: 150px; }
  .client-logo-grid.more { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px; }
  .client-logo-grid.more img { max-height: 44px; max-width: 110px; }
}

/* ---------- Technologies grid ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px; }

/* ---------- Technologies marquee (homepage "Our Stack") ----------
   Static duplicated track (list is fixed, unlike the data-driven client
   logo marquee) so no JS is needed — same translate3d(-50%) loop pattern
   as .logo-track. */
.tech-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tech-track {
  display: flex; align-items: stretch; width: max-content;
  gap: 18px;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.tech-marquee:hover .tech-track,
.tech-marquee:focus-within .tech-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
}

.tech-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 14px; text-align: center;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  flex-shrink: 0; width: 150px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.tech-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(243,118,50,0.3); }
@media (max-width: 640px) {
  .tech-tile { width: 122px; padding: 18px 10px; }
}
.tech-tile .tech-mark {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  background: var(--c-secondary-light); color: var(--c-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech-tile .tech-mark img,
.tech-tile .tech-mark svg {
  width: 65%; height: 65%; object-fit: contain; display: block;
}
.tech-tile .tech-mark.tech-mark--dual { gap: 4px; }
.tech-tile .tech-mark.tech-mark--dual img { width: 42%; height: 42%; }
.tech-tile span.tech-name { font-size: 0.8rem; font-weight: 600; color: var(--c-text); }

/* ---------- Deliverables ---------- */
.deliverables-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
@media (max-width: 640px) { .deliverables-list { grid-template-columns: 1fr; } }
.deliverables-list li { display: flex; gap: 14px; align-items: flex-start; }
.deliverables-list .icon-tile { width: 40px; height: 40px; flex-shrink: 0; }
.deliverables-list .icon-tile svg { width: 18px; height: 18px; }
.deliverables-list strong { display: block; color: var(--c-secondary); font-size: 0.98rem; margin-bottom: 3px; }
.deliverables-list span { color: var(--c-text-light); font-size: 0.88rem; }

/* ---------- Related services ---------- */
.related-card { display: block; }
.related-card .icon-tile { margin-bottom: 18px; }
.related-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.related-card p { color: var(--c-text-light); font-size: 0.9rem; }

/* ---------- Why choose us ---------- */
.why-card { text-align: center; }
.why-card .icon-tile { margin: 0 auto 18px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { color: var(--c-text-light); font-size: 0.875rem; }

/* ---------- Card photo (edge-to-edge top image, replaces .icon-tile in
   why-cards / feature grids where real photography fits better than an
   icon). Negative margins pull it flush with the parent .card's edges,
   breaking out of the card's own 32px padding. ---------- */
.card:has(> .card-photo) { overflow: hidden; }
.card-photo {
  max-width: none;
  width: calc(100% + 64px);
  height: 190px;
  object-fit: cover;
  border-radius: 0;
  margin: -32px -32px 20px;
  display: block;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-photo { transform: scale(1.06); }
.card-photo + h3 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .card-photo { transition: none; } }

/* ---------- Image zoom utility ---------- */
.img-zoom { overflow: hidden; border-radius: var(--r-lg); }
.img-zoom img { display: block; width: 100%; transition: transform 0.6s var(--ease); }
.img-zoom:hover img { transform: scale(1.08); }

/* ---------- Hero floating decorative elements ---------- */
.float-deco { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; animation: float-y 7s ease-in-out infinite; will-change: transform; }
.float-deco.d2 { animation-duration: 9s; animation-delay: -2s; }
.float-deco.d3 { animation-duration: 11s; animation-delay: -4s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

/* Tiny ambient particles — much smaller and dimmer than the glow blobs
   above; they're the "dust in the light" layer, not a focal point. Fills
   from y:0 like .hero-bg — see the comment there on why the fixed header
   still renders cleanly on top without a blank offset. */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0; right: 0; bottom: 0;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .35;
  animation: particle-drift 14s ease-in-out infinite;
  will-change: transform, opacity;
}
.particle.p1 { top: 20%; left: 24%; width: 5px; height: 5px; background: var(--c-primary); animation-duration: 13s; }
.particle.p2 { top: 62%; left: 42%; width: 4px; height: 4px; background: var(--c-secondary); animation-duration: 17s; animation-delay: -3s; }
.particle.p3 { top: 34%; left: 68%; width: 6px; height: 6px; background: var(--c-primary); animation-duration: 15s; animation-delay: -7s; }
.particle.p4 { top: 74%; left: 58%; width: 4px; height: 4px; background: var(--c-secondary); animation-duration: 19s; animation-delay: -10s; }
.particle.p5 { top: 12%; left: 82%; width: 4px; height: 4px; background: var(--c-secondary); animation-duration: 16s; animation-delay: -5s; }
.particle.p6 { top: 88%; left: 30%; width: 5px; height: 5px; background: var(--c-primary); animation-duration: 21s; animation-delay: -8s; }
@keyframes particle-drift {
  0%, 100% { transform: translate(0, 0); opacity: .18; }
  50% { transform: translate(10px, -22px); opacity: .4; }
}

/* Tiny light flares — brighter, sparser twinkles layered over the dust
   particles for an extra touch of ambient sparkle. */
.flare {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%);
  filter: blur(1px);
  opacity: 0;
  animation: flare-twinkle 8s ease-in-out infinite;
}
.flare.f1 { top: 16%; right: 22%; width: 10px; height: 10px; animation-delay: 1s; }
.flare.f2 { top: 70%; left: 10%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: 4s; }
@keyframes flare-twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: .85; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .float-deco { animation: none; }
  .particle { animation: none; opacity: .2; }
  .flare { animation: none; opacity: 0; }
}

/* ---------- Stagger reveal ---------- */
.reveal[style*="--i"] { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ---------- Button ripple ---------- */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.55);
  transform: scale(0); opacity: 1;
  animation: ripple-out 0.6s ease-out forwards;
}
.btn-secondary .ripple { background: rgba(79,51,143,0.2); }
@keyframes ripple-out { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn .ripple { display: none; } }

/* ---------- Footer contact block ---------- */
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 20px; }
.footer-contact a, .footer-contact span { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: rgba(255,255,255,0.75); transition: color var(--t-fast); }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--c-primary); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--c-secondary); color: #fff;
  padding: 12px 20px; z-index: var(--z-skip); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
