/* ==========================================================================
   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; }
}

/* ---------- Mobile slider (opt-in via scripts/apply_mobile_slider.py) ----------
   Turns a grid section into a horizontal touch/snap strip at phone widths
   only (≤640px — the existing single-column-stack breakpoint above, the
   worst version of the current UX). The ≤960px tablet 2-up layout is left
   alone. Added alongside the section's existing container class
   (.tech-grid, .deliverables-list, or .grid.grid-3/.grid-4), never in
   place of it, so desktop/tablet markup and CSS are untouched — this class
   only ever matters inside the ≤640px query. Container owns scroll
   mechanics only; child width is set per-component since one slide width
   doesn't fit tech-tile chips, deliverables rows, and full cards alike. */
@media (max-width: 640px) {
  .mobile-slider {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -16px;
    padding: 4px 16px 14px;
    gap: 14px;
  }
  .mobile-slider::-webkit-scrollbar { display: none; }
  .mobile-slider > * { scroll-snap-align: start; }
  .mobile-slider.tech-grid > .tech-tile { flex: 0 0 auto; }
  .mobile-slider.deliverables-list > li { flex: 0 0 260px; }
  .mobile-slider.grid > .card { flex: 0 0 78%; max-width: 320px; }
  /* Cards inside a horizontal strip sit off to the right, outside the
     viewport, until scrolled into view — the sitewide reveal-on-scroll
     IntersectionObserver would otherwise fire their fade/slide-up mid-swipe
     instead of on page load, which reads as janky rather than a normal
     carousel. Show them immediately instead. */
  .mobile-slider .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  min-height: 44px; /* mobile tap-target minimum, applies to every .btn variant incl. .btn-sm */
  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) {
  /* Icon-mark swap (see the <picture><source> in the header markup) is
     342x198 (~1.73:1), not the 230x80 lockup's ratio — sizing the box to
     match keeps the mark filling it edge-to-edge instead of shrinking to
     fit a mismatched box, and bumps it up for a "larger logo" mobile header
     rather than the previous undersized, mostly-empty 80x70 box. */
  .logo-tile--nav { width: 112px; height: 64px; }
}
.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: 44px; height: 44px; /* mobile min tap-target size */
  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; }
/* Icon + title + desc live inside this button on both desktop and mobile;
   only mobile makes it interactive (accordion trigger) — see the
   max-width:1100px block below, and the .mega-col-links split that lets
   mobile collapse just the link list while the header stays visible. */
.mega-col-toggle {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; background: none; border: 0; margin: 0; padding: 0;
  font: inherit; color: inherit; text-align: left; cursor: default;
}
.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 { display: block; 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 { display: block; font-size: 0.71rem; color: var(--c-text-light); margin: 0 0 6px; line-height: 1.4; }
.mega-col-chevron { display: none; width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.mega-col-links { display: flex; flex-direction: column; }
.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; gap: 3px; padding: 14px; 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: 14px 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; }

  /* Mega menu -> per-category accordion (single-open, siblings close —
     mirrors the .faq-item/.faq-q max-height pattern). Without this, opening
     "Services" on mobile just dumps all 5 columns (~37 links) as one flat
     list under a single toggle. */
  .mega-col-toggle {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 10px;
    cursor: pointer; padding: 12px 6px; border-radius: var(--r-sm);
    transition: background var(--t-fast);
  }
  .mega-col-toggle .mega-col-icon { margin-bottom: 0; }
  .mega-col-toggle .mega-col-title { flex: 1; }
  .mega-col-toggle .mega-col-desc { flex-basis: 100%; margin: 2px 0 0 38px; }
  .mega-col-toggle:hover,
  .mega-col.is-open .mega-col-toggle { background: var(--c-secondary-light); }
  .mega-col-chevron { display: block; }
  .mega-col.is-open .mega-col-chevron { transform: rotate(180deg); }
  .mega-col-links {
    max-height: 0; overflow: hidden; padding-left: 38px;
    transition: max-height var(--t-med) var(--ease);
  }
  .mega-col.is-open .mega-col-links { max-height: 600px; }
  .mega-col + .mega-col { border-top: 1px solid var(--c-border); margin-top: 2px; padding-top: 2px; }
}

/* Body scroll lock while the mobile nav panel is open. */
body.no-scroll { overflow: hidden; }

@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 {
    /* Slightly lighter than the desktop scrim (values below the .68/.55
       desktop equivalents) so the background animation reads as MORE
       visible on mobile per the brief, not less — the stacked mobile layout
       already covers the full width with copy, so it doesn't need as heavy
       a scrim as desktop's text-side-only gradient did. */
    background:
      radial-gradient(ellipse at 50% 28%, rgba(18,12,36,.52), transparent 65%),
      linear-gradient(180deg, rgba(18,12,36,.48) 0%, rgba(18,12,36,.22) 40%, rgba(18,12,36,.32) 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%);
  }
  /* The 1.04 scale exists purely as desktop parallax headroom (so the
     mousemove-driven pan in main.js never reveals an edge) — mobile has no
     mousemove parallax (--hero-px/--hero-py stay at 0), so that scale was a
     pure unwanted zoom there, and its equal-on-all-sides crop is what the
     brief's "zoomed appearance" / "cropping" complaints were describing. */
  .hero-bg-video { transform: translate3d(var(--hero-px, 0px), var(--hero-py, 0px), 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

.hero-visual {
  display: flex; flex-direction: column; align-items: center;
  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; }
}

/* ---------- Homepage hero: Service Ecosystem Orbit ---------- */
.service-orbit {
  --orbit-size: clamp(360px, 36vw, 520px);
  --card-size: 92px;
  --core-size: 132px;
  --orbit-radius: calc((var(--orbit-size) / 2) - (var(--card-size) / 2) - 6px);
  position: relative;
  width: var(--orbit-size);
  aspect-ratio: 1;
  margin: 0 auto;
}

/* White + purple + orange glow blended behind the whole composition */
.service-orbit-glow {
  position: absolute; top: 50%; left: 50%;
  width: 58%; height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, rgba(91,63,168,.4) 35%, rgba(243,118,50,.32) 60%, transparent 75%);
  filter: blur(36px);
  z-index: 1;
  animation: service-orbit-glow-pulse 6s ease-in-out infinite;
}
@keyframes service-orbit-glow-pulse {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

/* Decorative circles only — thin gradient stroke, purple -> orange, no icons live here */
.service-orbit-decor {
  position: absolute; inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.service-orbit-decor::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from 0deg, rgba(91,63,168,.2), rgba(243,118,50,.18), rgba(91,63,168,.04), rgba(243,118,50,.18), rgba(91,63,168,.2));
  -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(91,63,168,.2)) drop-shadow(0 0 10px rgba(243,118,50,.12));
}
.service-orbit-decor--inner {
  inset: 13%;
  animation: service-orbit-spin-rev 70s linear infinite;
}
@keyframes service-orbit-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Single rotating layer carrying all 10 service cards.
   Direction runs counter-clockwise (0deg -> -360deg) so items reach the top
   in ascending --angle order (item 0, 1, 2 ... 9) — this ordering drives the
   single active-service label below the orbit, which must cycle through the
   services in that exact sequence. */
.service-orbit-ring {
  position: absolute; inset: 0;
  z-index: 3;
  animation: service-orbit-spin 20s linear infinite;
}
@keyframes service-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Fixed angular slot around the ring; --angle is set per-item inline */
.service-orbit-item {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--orbit-radius)));
}

/* Cancels the ring's spin + this item's own placement angle so the card
   stays upright throughout the rotation ("only orbit around the center"). */
.service-orbit-node {
  position: absolute; top: 0; left: 0;
  animation: service-orbit-counter 20s linear infinite;
}
@keyframes service-orbit-counter {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))); }
  to   { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle) + 360deg)); }
}

/* Idle bob + tilt layer, independent of the pulse/hover transforms on the
   card itself — nested transforms compose so both animate at once. */
.service-orbit-float {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: service-orbit-idle-float 4s ease-in-out infinite;
  animation-delay: calc(var(--delay) * .5);
}
@keyframes service-orbit-idle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

.service-orbit-card {
  position: relative;
  width: var(--card-size); height: var(--card-size);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  cursor: pointer;
  animation: service-orbit-pulse 20s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Gradient ring that only shows while this card is "active" (top of orbit) —
   a mask-based border since CSS can't animate a plain gradient border. */
.service-orbit-card::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, #5B3FA8, #F37632);
  -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;
  opacity: 0;
  pointer-events: none;
  animation: service-orbit-border-glow 20s ease-in-out infinite;
  animation-delay: var(--delay);
}

/* Tinted badge behind each icon — carries the service's own accent color */
.service-orbit-icon-bg {
  width: 62%; height: 62%;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint);
  transition: transform .25s ease;
}
.service-orbit-icon-bg svg,
.service-orbit-icon-bg img { width: 56%; height: 56%; object-fit: contain; }

/* Runs once per full rotation, timed via --delay so the card is "active"
   exactly while it's at the top/front of the ring — held for 1.7s, a 300ms
   crossfade transition each way, then flat/inactive for the remaining ~17.7s.
   Same 0/8.5/10/98.5/100% shape is reused by the border-glow and the fixed
   active-label below, so all three change together in lockstep. */
@keyframes service-orbit-pulse {
  0%, 8.5% {
    transform: scale(1.12);
    box-shadow: 0 20px 46px var(--glow), 0 0 0 1px var(--glow), 0 0 40px var(--glow);
  }
  10%, 98.5% {
    transform: scale(1);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
  }
  100% {
    transform: scale(1.12);
    box-shadow: 0 20px 46px var(--glow), 0 0 0 1px var(--glow), 0 0 40px var(--glow);
  }
}
@keyframes service-orbit-border-glow {
  0%, 8.5% { opacity: 1; }
  10%, 98.5% { opacity: 0; }
  100% { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .service-orbit-float:hover {
    animation-play-state: paused;
  }
  .service-orbit-float:hover .service-orbit-card {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 26px 55px var(--glow), 0 0 0 1px var(--glow), 0 0 50px var(--glow);
  }
  .service-orbit-float:hover .service-orbit-card::after {
    animation-play-state: paused;
    opacity: 1;
  }
  .service-orbit-float:hover .service-orbit-icon-bg { transform: rotate(6deg); }
  /* Pause the whole ring on hover so a card stays put under the cursor
     instead of spinning away. The JS-driven active-tag (main.js) listens
     for this same .hero-visual hover to freeze its own clock in sync. */
  .hero-visual:hover .service-orbit-ring,
  .hero-visual:hover .service-orbit-node {
    animation-play-state: paused;
  }
}

/* Center: YDG mark with layered white/purple/orange glow + breathing scale */
.service-orbit-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: var(--core-size); height: var(--core-size);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /* Percentage padding always resolves against the containing block's
     WIDTH (the parent .service-orbit, not this element) — using calc()
     against --core-size itself avoids that trap. */
  padding: calc(var(--core-size) * 0.22);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.35) inset,
    0 10px 34px rgba(15,8,32,.3),
    0 0 46px rgba(255,255,255,.3),
    0 0 76px rgba(91,63,168,.45),
    0 0 110px rgba(243,118,50,.28);
  z-index: 4;
  animation: service-orbit-breathe 4.5s ease-in-out infinite;
}
.service-orbit-core img { width: 100%; height: 100%; object-fit: contain; }

@keyframes service-orbit-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.03); }
}

/* Single active-service label, attached to whichever card is currently
   active instead of living in a fixed spot below the orbit. JS (main.js)
   drives two independent things on this element:
   - outer .service-orbit-tag: left/top set every frame to track the active
     card's live position (no transition — must move with zero lag, since
     the card itself is still bobbing/orbiting while "active").
   - .service-orbit-tag-anchor: translate offset picked from data-pos
     (top/right/bottom/left), i.e. which side of the icon the pill sits on
     — changes rarely, a short transition here is purely cosmetic.
   - .service-orbit-tag-pill: opacity/scale crossfade (250ms) when JS swaps
     the text for a new active service; a class toggle, decoupled from the
     position updates above so the swap animation never fights the tracking. */
.service-orbit-tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 6;
  pointer-events: none;
}
.service-orbit-tag-anchor {
  transition: transform .2s ease;
}
.service-orbit-tag[data-pos="top"]    .service-orbit-tag-anchor { transform: translate(-50%, 0); }
.service-orbit-tag[data-pos="bottom"] .service-orbit-tag-anchor { transform: translate(-50%, -100%); }
.service-orbit-tag[data-pos="right"]  .service-orbit-tag-anchor { transform: translate(-100%, -50%); }
.service-orbit-tag[data-pos="left"]   .service-orbit-tag-anchor { transform: translate(0, -50%); }

.service-orbit-tag-pill {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Poppins', var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #4B2E83;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  opacity: 0;
  transform: scale(.95);
  transition: opacity .25s ease, transform .25s ease;
}
.service-orbit-tag-pill.is-in {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 960px) {
  .service-orbit { --orbit-size: clamp(300px, 48vw, 380px); --card-size: 70px; --core-size: 112px; }
  .service-orbit-tag-pill { font-size: 12px; padding: 7px 14px; }
}
@media (max-width: 600px) {
  .service-orbit { --orbit-size: min(320px, calc(100vw - 88px)); --card-size: 64px; --core-size: 92px; }
  .service-orbit-float { gap: 0; }
  .service-orbit-tag-pill { font-size: 11px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-orbit-ring,
  .service-orbit-node,
  .service-orbit-float,
  .service-orbit-card,
  .service-orbit-card::after,
  .service-orbit-core,
  .service-orbit-glow,
  .service-orbit-decor--inner {
    animation: none;
  }
  .service-orbit-tag-anchor,
  .service-orbit-tag-pill {
    transition: none;
  }
}

/* ---------- Signature element: the Guru Orbit (About page mini-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; }

/* Phone-width fix: .orbit's 90vw cap ignores .container's own 24px side
   padding, and .orbit-node's overhang (nodes deliberately straddle the ring
   edge) is a fixed px amount that gets proportionally huge against a
   shrinking ring — together these pushed the outer node icons past the
   viewport edge on phones (confirmed via screenshot at 320-414px: nodes cut
   off left/right). Shrinking the ring via calc() (which does account for
   the padding) together with the node size/overhang keeps the whole
   composition inside the viewport with margin to spare. */
@media (max-width: 600px) {
  .orbit { width: min(220px, calc(100vw - 104px)); }
  .orbit-glow { width: 124px; height: 124px; }
  .orbit-core { width: 72px; height: 72px; padding: 11px; }
  .orbit-node { width: 38px; height: 38px; }
  .orbit-node svg { width: 17px; height: 17px; }
  .orbit-node:nth-child(1),
  .orbit-ring--outer .orbit-node:nth-child(1) { top: -19px; margin-left: -19px; }
  .orbit-node:nth-child(2) { right: -19px; margin-top: -19px; }
  .orbit-node:nth-child(3),
  .orbit-ring--outer .orbit-node:nth-child(3) { bottom: -19px; margin-left: -19px; }
  .orbit-node:nth-child(4) { left: -19px; margin-top: -19px; }
  .orbit-ring--outer .orbit-node:nth-child(2) { right: -7px; }
  .orbit-ring--outer .orbit-node:nth-child(4) { left: -7px; }
  .orbit-caption { bottom: -32px; font-size: 0.68rem; }
}

.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); }
a.blog-card, a.portfolio-card, a.case-study-card { display: block; text-decoration: none; color: inherit; }

.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 h2, .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 h2 { 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 h2 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.blog-body p { color: var(--c-text-light); font-size: 0.9rem; }

/* Homepage "featured + latest" blog/case-study grids: item 1 is large,
   items 2-4 sit beside it. Reuses .grid + .mobile-slider (all 4 children are
   plain .card elements) so the proven ≤640px horizontal-swipe behavior
   applies with just one addition below (align-items: flex-start) to stop
   the flex row's default stretch.
   `align-self: start` on item 1 is load-bearing: it spans all 3 right-hand
   rows for column placement, but without this a Grid item defaults to
   stretching to fill its whole spanned area, forcing the featured card to
   the combined height of the 3 stacked cards and leaving empty space below
   its actual content. Sizing the two columns to match is done by hand
   (aspect-ratio on the featured image, a taller fixed thumb on the side
   cards below) rather than by stretching either card. The same stretch
   problem exists on the ≤640px swipe carousel via flexbox's own default
   align-items: stretch (cards 2-4 have no excerpt and are naturally
   shorter than the featured card), fixed the same way below. */
.home-featured-grid { grid-template-columns: 1.4fr 1fr; gap: 20px; }
.home-featured-grid > a:nth-child(1) { grid-row: 1 / span 3; align-self: start; }
.home-featured-grid .featured-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--c-primary); font-size: 0.92rem; }
.home-featured-grid .featured-more svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.home-featured-grid > a:nth-child(1):hover .featured-more svg { transform: translateX(4px); }
.home-featured-grid > a:nth-child(2) { grid-column: 2; grid-row: 1; }
.home-featured-grid > a:nth-child(3) { grid-column: 2; grid-row: 2; }
.home-featured-grid > a:nth-child(4) { grid-column: 2; grid-row: 3; }
.home-featured-grid > a:not(:first-child) .blog-thumb,
.home-featured-grid > a:not(:first-child) .cs-thumb { height: 160px; }
@media (max-width: 960px) {
  .home-featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home-featured-grid.mobile-slider { align-items: flex-start; }
}
a.blog-card--featured .blog-thumb,
a.case-study-card--featured .cs-thumb { aspect-ratio: 16 / 9; height: auto; }
.blog-card--featured .blog-body,
.case-study-card--featured .cs-body { padding: 32px 36px 36px; }
.blog-card--featured .blog-body h2 { font-size: 1.5rem; margin-bottom: 14px; }
.blog-card--featured .blog-body p { font-size: 1rem; }
.case-study-card--featured .cs-body h3 { font-size: 1.4rem; margin-bottom: 14px; }

/* ---------- Long-form article & case-study page components ---------- */

/* Article meta row (hero byline / reading time / date) */
.article-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-family: var(--font-mono); margin-top: 10px; }
.article-meta-row .sep { opacity: 0.4; }

/* Two-column layout with sticky table of contents */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.article-toc {
  position: sticky; top: calc(var(--header-stack-h, 118px) + 24px);
  background: var(--c-bg-section); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 24px 22px;
}
.article-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-light); margin-bottom: 14px; font-family: var(--font-mono); }
.article-toc ol { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: toc; padding: 0; margin: 0; }
.article-toc li { counter-increment: toc; }
.article-toc a { display: flex; gap: 10px; font-size: 0.875rem; color: var(--c-text-light); line-height: 1.4; transition: color var(--t-fast); }
.article-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); color: var(--c-primary); flex-shrink: 0; }
.article-toc a:hover, .article-toc a.is-active { color: var(--c-secondary); font-weight: 600; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; margin-bottom: 32px; }
}

/* Article prose typography */
.article-body h2 { font-size: 1.5rem; margin: 44px 0 18px; scroll-margin-top: calc(var(--header-stack-h, 118px) + 20px); }
.article-body h3 { font-size: 1.15rem; margin: 30px 0 14px; scroll-margin-top: calc(var(--header-stack-h, 118px) + 20px); }
.article-body p { color: var(--c-text); font-size: 1rem; line-height: 1.75; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; color: var(--c-text); line-height: 1.7; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--c-secondary); }
.article-body a { color: var(--c-primary); text-decoration: underline; text-decoration-color: rgba(243,118,50,0.35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--c-primary); }
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; border-radius: var(--r-lg); display: block; }
.article-body figcaption { font-size: 0.82rem; color: var(--c-text-light); margin-top: 10px; text-align: center; }

/* Tip / callout boxes */
.tip-box { display: flex; gap: 16px; background: var(--c-secondary-light); border-left: 4px solid var(--c-secondary); border-radius: var(--r-md); padding: 20px 24px; margin: 28px 0; }
.tip-box .tip-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c-secondary); color: #fff; display: flex; align-items: center; justify-content: center; }
.tip-box .tip-icon svg { width: 16px; height: 16px; }
.tip-box strong { display: block; color: var(--c-secondary); margin-bottom: 4px; font-family: var(--font-display); }
.tip-box p { margin: 0; font-size: 0.925rem; color: var(--c-text); }
.tip-box.tip-warning { background: #FFF4EC; border-left-color: var(--c-primary); }
.tip-box.tip-warning .tip-icon { background: var(--c-primary); }
.tip-box.tip-warning strong { color: var(--c-primary-dark); }

/* Stat callouts */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 32px 0; }
.stat-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card .stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--c-text-light); line-height: 1.4; }

/* Comparison tables */
.comparison-table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--r-lg); border: 1px solid var(--c-border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
.comparison-table thead th { background: var(--c-secondary); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) { background: var(--c-bg-section); }
.comparison-table td:first-child, .comparison-table th:first-child { font-weight: 600; color: var(--c-secondary); }

/* Best practices list */
.best-practices { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.best-practices li { display: flex; gap: 16px; align-items: flex-start; }
.best-practices .bp-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--c-secondary-light); color: var(--c-secondary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.best-practices div strong { display: block; color: var(--c-text); margin-bottom: 4px; }
.best-practices div p { margin: 0; color: var(--c-text-light); font-size: 0.9rem; }

/* Key takeaways */
.takeaways-box { background: var(--c-secondary); color: #fff; border-radius: var(--r-lg); padding: 30px 32px; margin: 36px 0; }
.takeaways-box h2 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.takeaways-box ul { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; margin: 0; }
.takeaways-box li { display: flex; gap: 12px; font-size: 0.925rem; color: rgba(255,255,255,0.92); line-height: 1.5; }
.takeaways-box li::before { content: '✓'; color: var(--c-primary); font-weight: 700; flex-shrink: 0; }

/* Share buttons */
.share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.share-buttons .share-label { font-size: 0.8rem; font-weight: 600; color: var(--c-text-light); margin-right: 4px; font-family: var(--font-mono); }
.share-buttons a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; color: var(--c-text-light); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast); }
.share-buttons a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.share-buttons svg { width: 17px; height: 17px; }

/* Prev / next article nav */
.prev-next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.prev-next-nav a { display: block; padding: 22px 24px; border: 1px solid var(--c-border); border-radius: var(--r-lg); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.prev-next-nav a:hover { border-color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prev-next-nav .pn-dir { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-light); font-family: var(--font-mono); margin-bottom: 8px; }
.prev-next-nav .pn-title { font-size: 0.95rem; font-weight: 600; color: var(--c-text); line-height: 1.35; }
.prev-next-nav .pn-next { text-align: right; }
@media (max-width: 640px) { .prev-next-nav { grid-template-columns: 1fr; } .prev-next-nav .pn-next { text-align: left; } }

/* Case study cards */
.case-study-card { overflow: hidden; padding: 0; }
.case-study-card .cs-thumb { height: 200px; position: relative; overflow: hidden; transition: transform 0.6s var(--ease); }
.case-study-card:hover .cs-thumb { transform: scale(1.04); }
.case-study-card .cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-study-card .cs-industry { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.92); 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; }
.case-study-card .cs-body { padding: 24px 26px 28px; }
.case-study-card .cs-client { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.case-study-card .cs-client-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--c-secondary-light); color: var(--c-secondary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.case-study-card .cs-client-name { font-size: 0.85rem; font-weight: 600; color: var(--c-text); }
.case-study-card h2, .case-study-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.case-study-card .cs-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 0; list-style: none; }
.case-study-card .cs-services span { font-size: 0.72rem; background: var(--c-bg-section); color: var(--c-text-light); padding: 4px 10px; border-radius: var(--r-pill); }
.case-study-card .cs-result { display: flex; gap: 20px; border-top: 1px solid var(--c-border); padding-top: 16px; }
.case-study-card .cs-result strong { display: block; font-family: var(--font-display); color: var(--c-secondary); font-size: 1.15rem; }
.case-study-card .cs-result span { font-size: 0.78rem; color: var(--c-text-light); }

/* Case study hero meta strip (industry / timeline / services / tech) */
.cs-hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.2); text-align: left; max-width: 900px; margin-left: auto; margin-right: auto; }
.cs-hero-meta div span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); font-family: var(--font-mono); margin-bottom: 6px; }
.cs-hero-meta div strong { display: block; color: #fff; font-size: 0.95rem; font-weight: 600; }

/* Case study KPI results */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 32px 0; }
.kpi-card { background: var(--grad-primary); border-radius: var(--r-lg); padding: 28px 22px; color: #fff; position: relative; overflow: hidden; }
.kpi-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.25), transparent 60%); }
.kpi-card > * { position: relative; }
.kpi-card .kpi-icon { width: 36px; height: 36px; margin-bottom: 14px; opacity: 0.9; }
.kpi-card .kpi-num { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; line-height: 1; margin-bottom: 6px; }
.kpi-card .kpi-label { font-size: 0.82rem; color: rgba(255,255,255,0.9); }

/* Before / after comparison */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.before-after .ba-card { border-radius: var(--r-lg); padding: 26px 24px; border: 1px solid var(--c-border); }
.before-after .ba-before { background: var(--c-bg-section); }
.before-after .ba-after { background: var(--c-secondary-light); border-color: rgba(79,51,143,0.2); }
.before-after .ba-label { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; font-family: var(--font-mono); }
.before-after .ba-before .ba-label { background: rgba(100,116,139,0.14); color: var(--c-text-light); }
.before-after .ba-after .ba-label { background: var(--c-secondary); color: #fff; }
.before-after ul { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; margin: 0; }
.before-after li { font-size: 0.9rem; color: var(--c-text); padding-left: 20px; position: relative; }
.before-after li::before { content: '—'; position: absolute; left: 0; color: var(--c-text-light); }
.before-after .ba-after li::before { content: '✓'; color: var(--c-primary); font-weight: 700; }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }

/* Execution timeline */
.exec-timeline { position: relative; padding-left: 32px; margin: 32px 0; }
.exec-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.exec-phase { position: relative; padding-bottom: 32px; }
.exec-phase:last-child { padding-bottom: 0; }
.exec-phase::before { content: ''; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-border); }
.exec-phase h3 { font-size: 1.05rem; margin-bottom: 6px; }
.exec-phase .exec-phase-meta { font-size: 0.78rem; color: var(--c-primary); font-family: var(--font-mono); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.exec-phase p { color: var(--c-text-light); font-size: 0.925rem; }

/* Case study gallery */
.cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.cs-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-lg); display: block; }
@media (max-width: 780px) { .cs-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cs-gallery { grid-template-columns: 1fr; } }

/* Disclaimer note (case-studies.html illustrative-examples banner) */
.disclaimer-note { display: flex; gap: 14px; align-items: flex-start; background: var(--c-bg-section); border: 1px solid var(--c-border); border-left: 4px solid var(--c-secondary); border-radius: var(--r-md); padding: 18px 22px; margin: 0 auto 40px; max-width: 760px; text-align: left; }
.disclaimer-note svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--c-secondary); margin-top: 2px; }
.disclaimer-note p { margin: 0; font-size: 0.875rem; color: var(--c-text-light); line-height: 1.55; }
.disclaimer-note strong { color: var(--c-secondary); }

/* 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; min-height: 44px; 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);
}
@media (max-width: 640px) {
  .form-group input, .form-group select { padding: 14px 16px; }
  .form-group { margin-bottom: 18px; }
}
.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); }

/* min-width:0 breaks the classic CSS Grid "1fr won't shrink below content"
   trap -- without it, this grid item's intrinsic content width (the map
   pin's address text) can force the whole .contact-layout column wider
   than the viewport at narrow phone widths, causing page-level horizontal
   scroll (confirmed via Playwright at 320px). */
.contact-info-list { min-width: 0; }
.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; min-width: 0; max-width: 100%; padding: 0 16px; }
.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); text-align: center; }

/* ---------- 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);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.footer-social a:hover, .footer-social a:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.footer-social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-social a.social-fb:hover { background: #1877F2; border-color: #1877F2; }
.footer-social a.social-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.footer-social a.social-li:hover { background: #0A66C2; border-color: #0A66C2; }
.footer-social a.social-yt:hover { background: #FF0000; border-color: #FF0000; }
.footer-social a.social-x:hover { background: #000; border-color: #000; }
.footer-social svg { width: 17px; height: 17px; color: #fff; }
.footer-col h2 { 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: 14px; flex-wrap: wrap; row-gap: 6px; }
.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-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.22); flex-shrink: 0; }
.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, .topbar-social a:focus-visible { transform: translateY(-1px); }
.topbar-social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.topbar-social a.social-fb:hover { color: #4d9bff; }
.topbar-social a.social-ig:hover { color: #e1306c; }
.topbar-social a.social-li:hover { color: #4ba3ff; }
.topbar-social a.social-yt:hover { color: #ff5252; }
.topbar-social a.social-x:hover { color: #fff; }
.topbar-social svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .topbar-info { gap: 12px; }
  .topbar-item { font-size: 0.78rem; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 8px 20px; }
  .topbar-item span.topbar-label { display: none; }
  .topbar-info { gap: 10px; }
  .topbar-sep { height: 12px; }
  .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);
}
.logo-track .logo-item:hover img {
  transform: scale(1.05);
}
@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; }
}

/* ---------- Industries marquee (icon + name, two rows, opposite directions) ----------
   Reusable sitewide component for individual service pages — NOT used on the
   homepage or clients.html, which keep their own larger .sector-grid. Same
   two-keyframe pure-CSS approach as .logo-marquee (no drag needed here, so
   no JS-driven rAF loop like the testimonials marquee). Populated by
   assets/js/industries-marquee.js + the builder in main.js. */
.industries-marquee { padding: 28px 0; }
.industries-marquee .section-head { margin-bottom: 18px; }
.im-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);
}
.im-marquee::-webkit-scrollbar { display: none; }
.im-marquee + .im-marquee { margin-top: 2px; }
.im-track {
  display: flex; align-items: flex-start; width: max-content;
  animation: im-scroll 56s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.im-marquee[data-direction="reverse"] .im-track {
  animation-name: im-scroll-reverse;
  animation-duration: 64s;
}
.im-marquee:hover .im-track,
.im-marquee:focus-within .im-track,
.im-marquee.is-paused .im-track { animation-play-state: paused; }
.im-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; width: 100px; flex-shrink: 0; padding: 4px 6px;
  text-decoration: none;
}
.im-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-secondary-light); color: var(--c-secondary);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.im-icon svg { width: 22px; height: 22px; }
.im-name {
  font-size: 0.75rem; font-weight: 600; color: var(--c-text-light); white-space: nowrap;
  transition: color var(--t-med) var(--ease);
}
.im-item:hover .im-icon { background: rgba(243, 118, 50, 0.14); color: var(--c-primary); transform: scale(1.05); }
.im-item:hover .im-name { color: var(--c-text); }
@keyframes im-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes im-scroll-reverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (max-width: 768px) {
  .im-item { width: 88px; gap: 5px; }
  .im-icon { width: 42px; height: 42px; }
  .im-icon svg { width: 20px; height: 20px; }
  .im-name { font-size: 0.72rem; }
}
@media (max-width: 640px) {
  .industries-marquee { padding: 22px 0; }
  .industries-marquee .section-head { margin-bottom: 14px; }
  .im-item { width: 76px; padding: 3px 5px; }
  .im-icon { width: 38px; height: 38px; }
  .im-icon svg { width: 18px; height: 18px; }
  .im-name { font-size: 0.68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .im-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 ---------- */
address.footer-contact { font-style: normal; }
.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; }

/* ---------- Company profile / brochure section (About page) ---------- */
.brochure-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 48px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  overflow: hidden;
}
.brochure-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-primary));
}
.brochure-cover-col { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.brochure-cover-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1200 / 675;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.brochure-cover-frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brochure-cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.brochure-page-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-glow);
}
.brochure-features {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}
.brochure-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--c-text);
}
.brochure-features li svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--c-primary);
}
.brochure-info-col { display: flex; flex-direction: column; }
.brochure-info-col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--c-secondary-dark);
  margin: 6px 0 16px;
}
.brochure-info-col > p.text-light { margin-bottom: 28px; }
.brochure-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 0; }
.brochure-embed {
  grid-column: 1 / -1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  background: var(--c-bg-section);
}
.brochure-embed iframe { display: block; width: 100%; height: 820px; border: 0; background: #fff; }
.brochure-embed-fallback {
  margin: 0; padding: 12px 18px;
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem; color: var(--c-text-light); text-align: center;
}
.brochure-embed-fallback a { color: var(--c-secondary); font-weight: 600; text-decoration: underline; }
@media (max-width: 900px) {
  .brochure-card { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .brochure-cover-col { max-width: 480px; margin: 0 auto; width: 100%; justify-content: flex-start; }
  .brochure-embed iframe { height: 640px; }
}
@media (max-width: 640px) {
  .brochure-card { padding: 24px; border-radius: var(--r-lg); }
  .brochure-features { grid-template-columns: 1fr; }
  .brochure-actions { flex-direction: column; }
  .brochure-actions .btn { width: 100%; }
  .brochure-embed iframe { height: 520px; -webkit-overflow-scrolling: touch; }
}
