/* ============================================================
   STANDARD SOFTWARE SOLUTIONS — styles.css
   Shared stylesheet for index.html + contact.html
   ============================================================ */

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

:root {
  --navy:        #080d1a;
  --navy-2:      #0c1322;
  --navy-3:      #111827;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-glow:   rgba(37, 99, 235, 0.15);
  --blue-border: rgba(59, 130, 246, 0.2);
  --white:       #f8fafc;
  --white-dim:   rgba(248, 250, 252, 0.7);
  --white-faint: rgba(248, 250, 252, 0.08);
  --nav-bg:      rgba(8, 13, 26, 0.92);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --pad-x:  48px;
  --pad-sm: 24px;
  --mobile-drawer-width: 300px;
}

:root[data-theme='light'] {
  --navy:        #eef3fb;
  --navy-2:      #ffffff;
  --navy-3:      #e3ebf9;
  --blue:        #1d4ed8;
  --blue-light:  #2563eb;
  --blue-glow:   rgba(37, 99, 235, 0.12);
  --blue-border: rgba(37, 99, 235, 0.28);
  --white:       #0f172a;
  --white-dim:   rgba(15, 23, 42, 0.72);
  --white-faint: rgba(37, 99, 235, 0.08);
  --nav-bg:      rgba(255, 255, 255, 0.92);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SKIP LINK (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 10px 20px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ─── CANVAS BACKGROUND ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--blue-border);
}

nav.nav-scrolled {
  background: color-mix(in srgb, var(--nav-bg) 72%, transparent);
  border-bottom-color: color-mix(in srgb, var(--blue-border) 75%, transparent);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.theme-switcher,
.mobile-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--blue-border);
  background: var(--white-faint);
  padding: 4px;
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}

.theme-btn.is-active,
.theme-btn[aria-pressed='true'] {
  background: var(--blue);
  color: #fff;
}

.theme-btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.mobile-theme-switcher {
  margin-top: 14px;
  width: 100%;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: #fff;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--white); }

.nav-links a[aria-current='page']:not(.nav-cta) {
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid var(--blue-light);
}

.nav-links a:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; border-radius: 2px; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  clip-path: polygon(0 0, 90% 0, 100% 20%, 100% 100%, 10% 100%, 0 80%);
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-light) !important; }

.nav-cta[aria-current='page'] {
  background: var(--blue-light) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-light) 70%, #fff 30%);
}

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ─── MOBILE MENU (off-canvas) ─── */
.mobile-menu,
.mobile-menu-backdrop { display: none; }

/* ─── PAGE WRAPPER ─── */
.page { position: relative; z-index: 1; }

/* ─── SHARED BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  clip-path: polygon(0 0, 88% 0, 100% 18%, 100% 100%, 12% 100%, 0 82%);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.btn-primary:disabled { opacity: 0.55; pointer-events: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--blue-border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
}

.btn-secondary:hover { color: var(--white); border-color: var(--blue-light); }
.btn-secondary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  white-space: nowrap;
  clip-path: polygon(0 0, 88% 0, 100% 18%, 100% 100%, 12% 100%, 0 82%);
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  min-height: 48px;
}

.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-white:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

.hero-headline .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-light);
  display: block;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  color: var(--white-dim);
  max-width: 520px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.3);
  opacity: 0;
  animation: fadeUp 0.9s 1s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(248, 250, 252, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-light);
  animation: scrollSlide 2s 1.5s ease-in-out infinite;
}

.hero-lottie-wrap {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 36vw, 620px);
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
  pointer-events: none;
  overflow: hidden;
}

.hero-lottie-wrap > div {
  width: 100%;
  height: min(54vh, 520px);
}

#lottie-hero,
#lottie-about-hero,
#lottie-services {
  width: 100%;
  height: 100%;
}

#lottie-hero svg,
#lottie-about-hero svg,
#lottie-services svg {
  width: 100% !important;
  height: 100% !important;
  transform-origin: center center;
}

/* Shared 12-column hero layout for pages with Lottie support */
.hero.hero-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 18px;
  min-height: 72svh !important;
}

.hero.hero-12 > :not(.hero-lottie-wrap):not(.hero-scroll-hint) {
  grid-column: 1 / span 8;
}

.hero.hero-12 .hero-headline { max-width: 760px; }
.hero.hero-12 .hero-sub { max-width: 620px; }

.hero.hero-12 .hero-lottie-wrap {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  grid-column: 9 / span 4;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  margin-top: 0;
  display: block;
}

.hero.hero-12 .hero-lottie-wrap > div {
  height: clamp(340px, 44vh, 560px);
}

#lottie-about-hero {
  width: 100%;
  min-height: 280px;
}

/* ─── CLIENT LOGOS MARQUEE ─── */
.trusted {
  padding: 56px 0;
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  overflow: hidden;
}

.trusted-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.3);
  margin-bottom: 32px;
  text-align: center;
  padding: 0 var(--pad-x);
}

.clients-track-wrap {
  overflow: hidden;
  position: relative;
}

.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--navy), transparent);
}

.clients-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--navy), transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: marquee 30s linear infinite;
  width: max-content;
  padding: 4px 0;
}

.clients-track:hover { animation-play-state: paused; }

.client-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s;
  flex-shrink: 0;
}

.client-logo-img:hover { filter: grayscale(0%) brightness(1); }

/* ─── SECTION BASE ─── */
.section {
  padding: 120px var(--pad-x);
  position: relative;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 640px;
}

.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 540px;
  line-height: 1.75;
  margin-top: 20px;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  background: var(--white-faint);
  border: 1px solid var(--blue-border);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--white-dim);
  margin-top: 6px;
  font-weight: 300;
  line-height: 1.4;
}

.about-lottie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SERVICES ─── */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--blue-border);
  border: 1px solid var(--blue-border);
}

.services-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--navy);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card:hover { background: var(--navy-2); }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.4s ease;
}

.service-card:hover::after { width: 100%; }

.service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
  color: var(--blue-light);
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover .service-icon {
  border-color: var(--blue);
  background: var(--blue-glow);
}

.service-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.75;
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 5px 10px;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.service-tag:hover { opacity: 1; border-color: rgba(59, 130, 246, 0.5); }

.service-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-card.featured {
  background: var(--blue-glow);
  border-left: 2px solid var(--blue);
}

.service-card.featured:hover { background: rgba(37, 99, 235, 0.12); }

.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
}

/* ─── INDUSTRIES ─── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.industry-card {
  background: linear-gradient(180deg, var(--white-faint), transparent 140%);
  border: 1px solid var(--blue-border);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.industry-card:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--blue-border));
  background: color-mix(in srgb, var(--white-faint) 80%, var(--blue-glow));
  transform: translateY(-2px);
}

.industry-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent 65%);
  opacity: 0.85;
}

.industry-icon {
  font-size: 26px;
  color: var(--blue-light);
  margin-bottom: 16px;
  display: block;
}

.industry-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.industry-desc {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.75;
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 4px 9px;
  margin-top: 8px;
  margin-right: 6px;
}

.industry-clearance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  padding: 6px 12px;
  margin-top: 20px;
}

/* ─── TOOLS & STACK ─── */
.tools-section {
  background: var(--navy-2);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 80px var(--pad-x);
}

.tools-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
  margin-top: 56px;
}

.tools-category-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blue-border);
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white-faint);
  border: 1px solid var(--blue-border);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--white-dim);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 36px;
}

.tool-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--white);
  background: var(--blue-glow);
}

.tool-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Light theme: ensure icon tags stay visible on bright backgrounds */
:root[data-theme='light'] .service-tag,
:root[data-theme='light'] .work-tag {
  opacity: 1;
}

:root[data-theme='light'] .service-tag img[style*='filter'],
:root[data-theme='light'] .tool-item img[style*='filter'],
:root[data-theme='light'] .work-tag img[style*='filter'] {
  filter: brightness(0) saturate(100%) opacity(0.72) !important;
}

:root[data-theme='light'] .service-tag img[src*='wordpress-logo.png'],
:root[data-theme='light'] .service-tag img[src*='nodejs.png'],
:root[data-theme='light'] .service-tag img[src*='aws.png'],
:root[data-theme='light'] .service-tag img[src*='figma-1.png'],
:root[data-theme='light'] .tool-item img[src*='wordpress-logo.png'],
:root[data-theme='light'] .tool-item img[src*='nodejs.png'],
:root[data-theme='light'] .tool-item img[src*='aws.png'],
:root[data-theme='light'] .tool-item img[src*='figma-1.png'],
:root[data-theme='light'] .work-tag img[src*='wordpress-logo.png'],
:root[data-theme='light'] .work-tag img[src*='nodejs.png'],
:root[data-theme='light'] .work-tag img[src*='aws.png'],
:root[data-theme='light'] .work-tag img[src*='figma-1.png'] {
  filter: brightness(0) saturate(100%) opacity(0.78) !important;
}

/* ─── PROCESS ─── */
.process-section { background: var(--navy-2); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 64px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--blue-border);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--blue-border);
  background: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-light);
  margin-bottom: 20px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.process-step:hover .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.step-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.65;
}

/* ─── FEATURED WORK ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--blue-border);
  border: 1px solid var(--blue-border);
  margin-top: 56px;
}

.work-card {
  background: var(--navy);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.work-card:hover { background: var(--navy-2); }

.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.work-card:hover::before { transform: scaleX(1); }

.work-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.work-category-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}

.work-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.06);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  user-select: none;
}

.work-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.75;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 4px 9px;
}

.work-tag img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ─── WHY US ─── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--blue-border);
}

.why-item:first-child { border-top: 1px solid var(--blue-border); }

.why-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-light);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}

.why-content h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-content p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.65;
}

.why-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-lottie { width: 100%; max-width: 400px; margin: 0 auto; }

.why-cta-card {
  background: var(--blue-glow);
  border: 1px solid var(--blue-border);
  padding: 32px;
  margin-top: 24px;
}

.why-cta-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.why-cta-body {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--blue);
  padding: 80px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: 'SS';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.cta-band-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-band-text p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.8;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy-2);
  border-top: 1px solid var(--blue-border);
  padding: 64px var(--pad-x) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-contact-info {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.4);
  line-height: 1.8;
}

.footer-contact-info a {
  color: var(--white-dim);
  text-decoration: none;
  display: inline-block;
}

.footer-contact-info a:hover,
.footer-contact-info a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-col a:hover { color: var(--white); }
.footer-col a:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

.footer-bottom {
  border-top: 1px solid var(--blue-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.3);
}

/* ─── CONTACT PAGE ─── */
.contact-hero {
  padding: 140px var(--pad-x) 80px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
  align-items: start;
  padding: 0 var(--pad-x) 120px;
  position: relative;
  z-index: 1;
}

.contact-info { position: sticky; top: 100px; }

.contact-info-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--blue-border);
}

.contact-info-item:first-child { border-top: 1px solid var(--blue-border); }

.contact-info-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.contact-info-value,
.contact-info-value a {
  font-size: 15px;
  color: var(--white-dim);
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.2s;
}

.contact-info-value a:hover { color: var(--white); }

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  background: var(--navy-2);
  border: 1px solid var(--blue-border);
  padding: 48px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--white-dim);
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.form-group label .req { color: var(--blue-light); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy);
  border: 1px solid var(--blue-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  min-height: 48px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b82f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option { background: var(--navy-3); color: var(--white); }

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(248,250,252,0.22); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #ef4444; }

.field-error {
  font-size: 12px;
  color: #f87171;
  display: none;
  margin-top: 2px;
}

.form-group.has-error .field-error { display: block; }

/* Honeypot — hidden from real users */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-submit-wrap { margin-top: 8px; }

.form-submit-wrap .btn-primary {
  width: 100%;
  font-size: 14px;
  padding: 17px 32px;
  clip-path: none;
}

#form-status {
  display: none;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  border-left: 3px solid;
}

#form-status.success {
  display: block;
  border-color: #22c55e;
  background: rgba(34,197,94,0.08);
  color: #86efac;
}

#form-status.error {
  display: block;
  border-color: #ef4444;
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollSlide {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .clients-track { animation: none; }
  .scroll-line::after { animation: none; }
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .hero-scroll-hint,
  .hero-lottie-wrap,
  .contact-hero { animation: none; opacity: 1; transform: none; }
}

/* ─── RESPONSIVE — 1100px ─── */
@media (max-width: 1100px) {
  .hero-lottie-wrap { display: none; }
  .tools-categories { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }

  .hero.hero-12 > :not(.hero-lottie-wrap):not(.hero-scroll-hint) {
    grid-column: 1 / span 7;
  }

  .hero.hero-12 .hero-lottie-wrap {
    display: block;
    grid-column: 8 / span 5;
    max-width: 420px;
  }
}

/* ─── RESPONSIVE — 900px (tablet/mobile) ─── */
@media (max-width: 900px) {
  :root { --pad-x: var(--pad-sm); }

  nav { padding: 0 var(--pad-sm); }
  .nav-links { display: none; }
  .theme-switcher { display: none; }
  .nav-hamburger { display: flex; }

  nav {
    background: color-mix(in srgb, var(--nav-bg) 78%, transparent);
    border-bottom-color: color-mix(in srgb, var(--blue-border) 70%, transparent);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
  }

  nav.nav-scrolled {
    background: color-mix(in srgb, var(--nav-bg) 66%, transparent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  }

  .mobile-menu,
  .mobile-menu-backdrop { display: none; }

  #mobile-menu-root {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
  }

  #mobile-menu-root .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, var(--mobile-drawer-width));
    background: #000;
    padding: 92px var(--pad-sm) 34px;
    overflow-y: auto;
    pointer-events: auto;
  }

  #mobile-menu-root .mobile-menu .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: var(--pad-sm);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #mobile-menu-root .mobile-menu .mobile-menu-close:hover,
  #mobile-menu-root .mobile-menu .mobile-menu-close:focus-visible {
    color: #fff;
  }

  #mobile-menu-root .mobile-menu .mobile-menu-close:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
  }

  #mobile-menu-root .mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  #mobile-menu-root .mobile-menu a {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: rgba(248, 250, 252, 0.78);
    text-decoration: none;
    padding: 14px 0;
    transition: color 0.2s, transform 0.2s, opacity 0.25s ease;
    min-height: 54px;
    opacity: 0;
    transform: translateX(-12px);
  }

  #mobile-menu-root .mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
  }

  #mobile-menu-root .mobile-menu a:nth-child(1) { transition-delay: 0.02s; }
  #mobile-menu-root .mobile-menu a:nth-child(2) { transition-delay: 0.06s; }
  #mobile-menu-root .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
  #mobile-menu-root .mobile-menu a:nth-child(4) { transition-delay: 0.14s; }
  #mobile-menu-root .mobile-menu a:nth-child(5) { transition-delay: 0.18s; }

  #mobile-menu-root .mobile-menu a:hover,
  #mobile-menu-root .mobile-menu a:focus-visible { color: #fff; transform: translateX(2px); }

  #mobile-menu-root .mobile-menu a[aria-current='page']:not(.mobile-cta) {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  #mobile-menu-root .mobile-menu .mobile-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    background: var(--blue);
    color: #fff !important;
    padding: 16px 22px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 90% 0, 100% 20%, 100% 100%, 10% 100%, 0 80%);
  }

  #mobile-menu-root .mobile-menu .mobile-cta[aria-current='page'] {
    background: var(--blue-light);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  #mobile-menu-root .mobile-theme-switcher {
    margin-top: 14px;
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    border: 1px solid var(--blue-border);
    background: var(--white-faint);
    padding: 4px;
  }

  #mobile-menu-root .theme-btn {
    border: none;
    background: transparent;
    color: rgba(248, 250, 252, 0.78);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    cursor: pointer;
  }

  #mobile-menu-root .theme-btn.is-active,
  #mobile-menu-root .theme-btn[aria-pressed='true'] {
    background: var(--blue);
    color: #fff;
  }

  #mobile-menu-root .theme-btn:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
  }

  #viewport-app {
    position: relative;
    z-index: 200;
    min-height: 100vh;
    background: var(--navy);
    transition:
      transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.55s ease;
    transform-origin: left top;
    will-change: auto;
  }

  body.mobile-menu-open #viewport-app {
    will-change: transform;
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
    transform: translate3d(calc(-1 * min(86vw, var(--mobile-drawer-width))), 84px, 0) scale(1);
    box-shadow: -60px 0 100px rgba(0, 0, 0, 0.7);
  }

  body.mobile-menu-open #viewport-app .page {
    transform: translateY(calc(-1 * var(--menu-scroll-y, 0px)));
  }

  body.mobile-menu-open {
    overflow: hidden;
    background: #000;
  }

  .hero { padding: 110px var(--pad-sm) 80px; }
  .section { padding: 80px var(--pad-sm); }

  .hero.hero-12 {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto !important;
  }

  .hero.hero-12 > :not(.hero-lottie-wrap):not(.hero-scroll-hint),
  .hero.hero-12 .hero-lottie-wrap {
    grid-column: 1;
  }

  .hero.hero-12 .hero-lottie-wrap {
    display: block;
    justify-self: center;
    width: min(84vw, 380px);
    margin-top: 12px;
  }

  .hero.hero-12 .hero-lottie-wrap > div { height: min(48vh, 320px); }
  #lottie-about-hero { min-height: 220px; }

  .about-grid,
  .services-intro,
  .why-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid-3 {
    grid-template-columns: 1fr;
  }

  .about-lottie-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .about-lottie-wrap #lottie-about {
    max-width: 360px !important;
    width: 100% !important;
  }

  body[data-page='about'] .about-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  body[data-page='about'] .stat-card {
    padding: 16px 12px;
  }

  body[data-page='about'] .stat-num {
    font-size: 24px;
  }

  body[data-page='about'] .stat-label {
    font-size: 11px;
    line-height: 1.35;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 28px; }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .industry-card {
    padding: 28px 22px;
  }

  .tools-section { padding: 60px var(--pad-sm); }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .process-steps::before { display: none; }
  .process-step:nth-child(5) { grid-column: 1 / -1; }

  .work-grid { grid-template-columns: 1fr; }

  .cta-band {
    flex-direction: column;
    padding: 60px var(--pad-sm);
    text-align: center;
  }
  .cta-band .btn-white { align-self: center; }

  .trusted { padding: 48px 0; }
  .clients-track-wrap::before,
  .clients-track-wrap::after { width: 48px; }
  .trusted-label { padding: 0 var(--pad-sm); }

  .contact-hero { padding: 110px var(--pad-sm) 60px; }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 var(--pad-sm) 80px;
  }
  .contact-info { position: static; }
  .contact-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE — 480px (small mobile) ─── */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(36px, 10vw, 48px); }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll-hint { display: none; }
  .work-card { padding: 28px 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step:nth-child(5) { grid-column: auto; }
}
