/* ============================================================
   INSCO CORPORATION — MASTER DESIGN SYSTEM
   Premium Precision Gear Manufacturer | Groton, MA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — Primary palette from logo assets */
  --logo-dark:       #0A1526;   /* Dark logo background — primary dark */
  --logo-white:      #FFFFFF;   /* White logo background — primary light */
  --navy-primary:    #021B4E;
  --navy-dark:       #03153F;
  --navy-deep:       #0A1526;
  --accent-blue:     #2F6FE4;
  --accent-light:    #6E9EFF;
  --blue-mid:        #5B7FA6;
  --blue-soft:       #E8EFFA;   /* Very light blue for light-section accents */
  --white:           #FFFFFF;
  --off-white:       #F4F6FB;   /* Subtle off-white for light section cards */
  --gray-light:      #D9DCE3;
  --gray-mid:        #9BA3B0;
  --gray-dark:       #4A5568;
  --text-dark:       #0D1B2E;   /* Body text on white sections */
  --text-mid:        #3A4A5C;   /* Secondary text on white sections */
  --black:           #060D1A;

  /* Typography */
  --font-head:   'Barlow Condensed', 'DIN Condensed', sans-serif;
  --font-body:   'Montserrat', sans-serif;

  /* Spacing Scale */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   6rem;
  --sp-2xl:  8rem;

  /* Layout */
  --max-w:         1280px;
  --nav-h:         92px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:        0.2s var(--ease);
  --t-med:         0.4s var(--ease);
  --t-slow:        0.7s var(--ease);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.16);
  --shadow-dark: 0 8px 32px rgba(10,21,38,0.25);
  --shadow-blue: 0 8px 32px rgba(47,111,228,0.25);

  /* Border */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h5 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; line-height: 1.75; color: var(--gray-light); }
.p-lg { font-size: 1.125rem; line-height: 1.8; }
.p-sm { font-size: 0.875rem; line-height: 1.65; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

/* ============================================================
   BACKGROUND SYSTEM — DARK / LIGHT ALTERNATING
   ============================================================ */

/* --- DARK sections (logo dark: #0A1526) --- */
.bg-dark,
.section-dark {
  background: var(--logo-dark);
  color: var(--white);
}
.bg-dark p, .section-dark p { color: var(--gray-light); }

/* Slightly lifted dark — for nested cards / secondary dark areas */
.bg-navy  { background: #0F1E35; color: var(--white); }
.bg-darker { background: var(--navy-dark); color: var(--white); }

/* --- LIGHT sections (logo white: #FFFFFF) --- */
.bg-white,
.section-light {
  background: var(--logo-white);
  color: var(--text-dark);
}
/* Re-map muted grays to readable tones inside light sections.
   Inline color:var(--gray-*) resolves to these darker values on white,
   while dark sections keep the original light grays. */
.bg-white, .section-light, .bg-off-white, .bg-blue-soft {
  --gray-light: #3A4A5C;
  --gray-mid:   #55617A;
  --gray-dark:  #3A4A5C;
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4,
.section-light h1, .section-light h2, .section-light h3, .section-light h4 {
  color: var(--text-dark);
}
.bg-white p, .section-light p {
  color: var(--text-mid);
}
.bg-white .eyebrow, .section-light .eyebrow,
.bg-white .section-label span, .section-light .section-label span {
  color: var(--accent-blue);
}
.bg-white .divider-accent, .section-light .divider-accent {
  background: var(--accent-blue);
}
.bg-white .section-label::before, .section-light .section-label::before {
  background: var(--accent-blue);
}

/* Off-white — subtle alternative for light section variety */
.bg-off-white { background: var(--off-white); color: var(--text-dark); }
.bg-off-white h1,.bg-off-white h2,.bg-off-white h3,.bg-off-white h4 { color: var(--text-dark); }
.bg-off-white p { color: var(--text-mid); }

/* Light blue tint — accent/aesthetic use on light sections */
.bg-blue-soft { background: var(--blue-soft); color: var(--text-dark); }
.bg-blue-soft h1,.bg-blue-soft h2,.bg-blue-soft h3,.bg-blue-soft h4 { color: var(--text-dark); }
.bg-blue-soft p { color: var(--text-mid); }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.container-sm { max-width: 860px; }
.container-lg { max-width: 1440px; }

.section    { padding: var(--sp-xl) 0; }
.section-lg { padding: var(--sp-2xl) 0; }
.section-sm { padding: var(--sp-lg) 0; }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-accent { color: var(--accent-blue); }
.text-light  { color: var(--accent-light); }
.text-gray   { color: var(--gray-mid); }
.text-dark-navy { color: var(--text-dark); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }

/* --- Divider --- */
.divider-accent {
  width: 48px;
  height: 3px;
  background: var(--accent-blue);
  margin: var(--sp-sm) 0 var(--sp-md);
}
.divider-accent.center { margin: var(--sp-sm) auto var(--sp-md); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med), box-shadow var(--t-med);
}
.nav.scrolled {
  background: rgba(10,21,38,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.nav-logo img { height: 68px; width: auto; }
.footer-logo { height: 44px; width: auto; margin-bottom: 1.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-blue);
  transition: width var(--t-fast);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--logo-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--accent-blue);
  min-width: 200px;
  padding: var(--sp-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0.03em;
}
.nav-dropdown-menu a:hover {
  background: rgba(47,111,228,0.12);
  color: var(--accent-light);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent-blue);
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.nav-cta:hover {
  background: #1a5cd4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--t-fast);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}
.btn-primary:hover {
  background: #1a5cd4;
  border-color: #1a5cd4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,111,228,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
/* Outline on light backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(10,21,38,0.3);
}
.btn-outline-dark:hover {
  border-color: var(--text-dark);
  background: rgba(10,21,38,0.06);
  transform: translateY(-2px);
}
.btn-outline-accent {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}
.btn-outline-accent:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-dark {
  background: var(--logo-dark);
  color: var(--white);
  border-color: var(--logo-dark);
}
.btn-dark:hover {
  background: #0F1E35;
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.9rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.75rem; }
.btn-arrow::after {
  content: '→';
  font-size: 1.1em;
  transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { max-width: 700px; }
.section-header.center { text-align: center; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent-blue);
}
.section-label span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--logo-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.35;
}
.hero-bg-video {
  position: absolute;
  top: 0; bottom: 0; right: 0; left: auto;
  width: 58%; height: 100%;
  object-fit: cover;
  object-position: center 98%;
  opacity: 0.88;
  transform: scale(1.08);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
  mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}
.hero-bg-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    var(--logo-dark) 0%,
    var(--logo-dark) 40%,
    rgba(10,21,38,0.7) 65%,
    transparent 100%
  );
}
.hero-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(47,111,228,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  padding-top: calc(var(--nav-h) + 2rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.hero-eyebrow-line { width: 48px; height: 1px; background: var(--accent-blue); }
.hero-h1 {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  max-width: 18ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}
.hero-h1 .accent { color: var(--accent-blue); }
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--gray-light);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}
.hero-stats {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-lg);
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}
.hero-stat-item { position: relative; }
.hero-stat-item + .hero-stat-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-lg) / 2);
  top: 0; height: 100%; width: 1px;
  background: rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat-num span { color: var(--accent-blue); }
.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.hero-scroll-indicator {
  margin-left: auto;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::after {
  content: '';
  width: 3px; height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  animation: scrollDot 1.6s var(--ease) infinite;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--accent-blue);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

/* ============================================================
   CARDS — DARK VERSION (on dark backgrounds)
   ============================================================ */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.card:hover {
  background: rgba(47,111,228,0.08);
  border-color: rgba(47,111,228,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,111,228,0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
  transition: background var(--t-med);
}
.card:hover .card-icon { background: rgba(47,111,228,0.22); }
.card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.card-body {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  transition: gap var(--t-fast), color var(--t-fast);
}
.card-link:hover { gap: 0.7rem; color: var(--accent-light); }

/* ============================================================
   CARDS — LIGHT VERSION (on white/light backgrounds)
   ============================================================ */
.card-light {
  background: var(--white);
  border: 1px solid #E2E8F2;
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.card-light:hover {
  border-color: rgba(47,111,228,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(47,111,228,0.12);
}
.card-light .card-icon {
  background: var(--blue-soft);
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}
.card-light:hover .card-icon { background: rgba(47,111,228,0.15); }
.card-light .card-title { color: var(--text-dark); }
.card-light .card-body  { color: var(--text-mid); }
.card-light .card-link  { color: var(--accent-blue); }
.card-light .card-link:hover { color: #1a5cd4; }

/* Light card on off-white background */
.bg-off-white .card-light,
.bg-blue-soft .card-light {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   GEAR CARDS
   ============================================================ */
.gear-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
  aspect-ratio: 4/3;
}
.gear-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow);
}
.gear-card:hover .gear-card-img { transform: scale(1.06); }
.gear-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,21,38,0.95) 100%);
}
.gear-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
}
.gear-card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.gear-card-sub { font-size: 0.75rem; color: var(--gray-mid); letter-spacing: 0.08em; }
.gear-card-arrow {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.gear-card:hover .gear-card-arrow {
  opacity: 1;
  transform: scale(1);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
/* Dark version */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  transition: all var(--t-med);
  cursor: pointer;
}
.industry-card:hover {
  background: rgba(47,111,228,0.1);
  border-color: rgba(47,111,228,0.35);
  transform: translateY(-4px);
}
.industry-card svg {
  width: 36px; height: 36px;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  transition: color var(--t-fast);
}
.industry-card:hover svg { color: var(--accent-light); }
.industry-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--t-fast);
}
.industry-card:hover .industry-card-name { color: var(--white); }

/* Light version */
.industry-card-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid #E2E8F2;
  border-radius: var(--radius-md);
  transition: all var(--t-med);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(47,111,228,0.06);
}
.industry-card-light:hover {
  border-color: rgba(47,111,228,0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(47,111,228,0.14);
}
.industry-card-light svg {
  width: 36px; height: 36px;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  transition: color var(--t-fast);
}
.industry-card-light:hover svg { color: #1a5cd4; }
.industry-card-light .industry-card-name {
  color: var(--text-mid);
  transition: color var(--t-fast);
}
.industry-card-light:hover .industry-card-name { color: var(--text-dark); }

/* ============================================================
   CAPABILITIES GRID
   ============================================================ */
/* Dark variant */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-item {
  background: #0F1E35;
  padding: 2.5rem 2rem;
  transition: background var(--t-med);
}
.cap-item:hover { background: rgba(47,111,228,0.1); }
.cap-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(47,111,228,0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--t-med);
}
.cap-item:hover .cap-number { color: rgba(47,111,228,0.3); }

/* Light variant */
.capabilities-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   STATS ROW
   ============================================================ */
/* Dark stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--logo-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num .accent { color: var(--accent-blue); }
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* Light stats */
.stats-row-light {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--logo-white);
  border-top: 1px solid #E2E8F2;
  border-bottom: 1px solid #E2E8F2;
}
.stats-row-light .stat-item {
  border-right: 1px solid #E2E8F2;
}
.stats-row-light .stat-item:last-child { border-right: none; }
.stats-row-light .stat-num { color: var(--text-dark); }
.stats-row-light .stat-label { color: var(--text-mid); }

/* ============================================================
   WHY INSCO
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.why-item-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,111,228,0.12);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}
/* Light section version */
.section-light .why-item-icon,
.bg-white .why-item-icon {
  background: var(--blue-soft);
}
.why-item-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.why-item-desc {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.65;
}
.section-light .why-item-desc,
.bg-white .why-item-desc { color: var(--text-mid); }

.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #0F1E35;
}
.why-visual-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.why-visual-badge {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  background: rgba(10,21,38,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(47,111,228,0.2);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 14px);
  right: calc(10% + 14px);
  height: 1px;
  background: rgba(47,111,228,0.3);
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.process-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: var(--logo-dark);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
  transition: background var(--t-med), color var(--t-med);
}
/* Light section process step bg */
.section-light .process-step-num,
.bg-white .process-step-num { background: var(--white); }
.process-step:hover .process-step-num {
  background: var(--accent-blue);
  color: var(--white);
}
.process-step-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.process-step-desc {
  font-size: 0.775rem;
  color: var(--gray-mid);
  line-height: 1.6;
}
.section-light .process-step-desc,
.bg-white .process-step-desc { color: var(--text-mid); }

/* ============================================================
   CUSTOMER LOGOS
   ============================================================ */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem var(--sp-lg);
}
.logo-placeholder {
  height: 30px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1rem;
  border-radius: 3px;
  transition: opacity var(--t-fast);
}
/* Dark background logos */
.bg-dark .logo-placeholder,
.section-dark .logo-placeholder {
  opacity: 0.4;
  filter: brightness(1.5);
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.15);
}
.bg-dark .logo-placeholder:hover,
.section-dark .logo-placeholder:hover { opacity: 0.7; }
/* Light background logos */
.bg-white .logo-placeholder,
.section-light .logo-placeholder {
  opacity: 0.5;
  color: var(--text-dark);
  border: 1px solid rgba(10,21,38,0.15);
}
.bg-white .logo-placeholder:hover,
.section-light .logo-placeholder:hover { opacity: 0.85; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--logo-dark);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(47,111,228,0.12) 0%, transparent 70%);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -20%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse, rgba(47,111,228,0.08) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }

/* Light CTA variant */
.cta-section-light {
  background: var(--blue-soft);
  position: relative;
  overflow: hidden;
}
.cta-section-light h1,
.cta-section-light h2,
.cta-section-light h3 { color: var(--text-dark); }
.cta-section-light p { color: var(--text-mid); }

/* ============================================================
   SPEC TABLE
   ============================================================ */
/* Dark version */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table th {
  background: #0F1E35;
  color: var(--gray-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid rgba(47,111,228,0.3);
}
.spec-table td {
  padding: 0.875rem 1.25rem;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: rgba(47,111,228,0.05); }
.spec-table td:first-child { color: var(--white); font-weight: 500; }

/* Light version */
.spec-table-light {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table-light th {
  background: var(--blue-soft);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--accent-blue);
}
.spec-table-light td {
  padding: 0.875rem 1.25rem;
  color: var(--text-mid);
  border-bottom: 1px solid #E2E8F2;
  vertical-align: top;
}
.spec-table-light tr:last-child td { border-bottom: none; }
.spec-table-light tr:hover td { background: var(--blue-soft); }
.spec-table-light td:first-child { color: var(--text-dark); font-weight: 500; }

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.section-light .accordion-item,
.bg-white .accordion-item { border-bottom: 1px solid #E2E8F2; }

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-fast);
}
.section-light .accordion-btn,
.bg-white .accordion-btn { color: var(--text-dark); }
.accordion-btn:hover { color: var(--accent-blue); }
.accordion-icon {
  width: 24px; height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-blue);
  transition: transform var(--t-fast), background var(--t-fast);
}
.section-light .accordion-icon,
.bg-white .accordion-icon { border-color: rgba(10,21,38,0.2); }
.accordion-btn.open .accordion-icon {
  transform: rotate(45deg);
  background: rgba(47,111,228,0.15);
}
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.accordion-body-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.75;
}
.section-light .accordion-body-inner,
.bg-white .accordion-body-inner { color: var(--text-mid); }

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.bg-white .form-label,
.section-light .form-label { color: var(--text-mid); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(47,111,228,0.06);
}
/* Light section forms */
.bg-white .form-input,
.bg-white .form-select,
.bg-white .form-textarea,
.section-light .form-input,
.section-light .form-select,
.section-light .form-textarea {
  background: var(--off-white);
  border-color: #D1D9E6;
  color: var(--text-dark);
}
.bg-white .form-input:focus,
.bg-white .form-select:focus,
.bg-white .form-textarea:focus {
  border-color: var(--accent-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47,111,228,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-dark); }
.bg-white .form-input::placeholder { color: var(--gray-mid); }
.form-select option { background: var(--logo-dark); }
.bg-white .form-select option { background: var(--white); color: var(--text-dark); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: var(--sp-xl);
  background: var(--logo-dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(47,111,228,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent-blue);
}
.page-hero-eyebrow span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--gray-mid);
}
.breadcrumb a { color: var(--gray-mid); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--logo-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-xl) 0 var(--sp-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 32ch;
}
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-mid);
  transition: color var(--t-fast);
}
.footer-contact-item:hover { color: var(--white); }
.footer-contact-item svg {
  width: 14px; height: 14px;
  min-width: 14px;
  margin-top: 2px;
  color: var(--accent-blue);
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.8125rem;
  color: var(--gray-mid);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: var(--gray-dark); }
.footer-copy a { color: var(--accent-blue); transition: color var(--t-fast); }
.footer-copy a:hover { color: var(--accent-light); }
.footer-certifications { display: flex; align-items: center; gap: 1rem; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ============================================================
   CONTEXT-AWARE OVERRIDES — cards, text, tables on white sections
   ============================================================ */

/* Cards inside white/light sections auto-switch to light style */
.bg-white .card,
.section-light .card,
.bg-off-white .card,
.bg-blue-soft .card {
  background: var(--white);
  border-color: #E2E8F2;
  box-shadow: 0 2px 12px rgba(47,111,228,0.06);
}
.bg-white .card:hover,
.section-light .card:hover {
  background: var(--white);
  border-color: rgba(47,111,228,0.35);
  box-shadow: 0 12px 40px rgba(47,111,228,0.12);
}
.bg-white .card-icon,
.section-light .card-icon { background: var(--blue-soft); }
.bg-white .card:hover .card-icon,
.section-light .card:hover .card-icon { background: rgba(47,111,228,0.15); }
.bg-white .card-title,
.section-light .card-title { color: var(--text-dark); }
.bg-white .card-body,
.section-light .card-body  { color: var(--text-mid); }
.bg-white .card-link,
.section-light .card-link  { color: var(--accent-blue); }
.bg-white .card-link:hover,
.section-light .card-link:hover { color: #1a5cd4; }

/* Cap items in white sections */
.bg-white .cap-item,
.section-light .cap-item {
  background: var(--white);
  border-color: #E2E8F2;
}
.bg-white .cap-item:hover,
.section-light .cap-item:hover { background: var(--blue-soft); }
.bg-white .cap-number,
.section-light .cap-number { color: rgba(47,111,228,0.12); }
.bg-white .cap-item:hover .cap-number,
.section-light .cap-item:hover .cap-number { color: rgba(47,111,228,0.25); }
.bg-white .capabilities-grid,
.section-light .capabilities-grid { background: #E2E8F2; border-color: #E2E8F2; }

/* Spec tables in white sections */
.bg-white .spec-table th,
.section-light .spec-table th {
  background: var(--blue-soft);
  color: var(--text-dark);
  border-bottom-color: var(--accent-blue);
}
.bg-white .spec-table td,
.section-light .spec-table td {
  color: var(--text-mid);
  border-bottom-color: #E2E8F2;
}
.bg-white .spec-table tr:hover td,
.section-light .spec-table tr:hover td { background: var(--blue-soft); }
.bg-white .spec-table td:first-child,
.section-light .spec-table td:first-child { color: var(--text-dark); }

/* Process steps in white sections */
.bg-white .process-step-title,
.section-light .process-step-title { color: var(--text-dark); }

/* Section header text in white sections */
.bg-white .section-header h2,
.bg-white .section-header h3,
.section-light .section-header h2,
.section-light .section-header h3 { color: var(--text-dark); }

/* Why-item in white sections */
.bg-white .why-item-title,
.section-light .why-item-title { color: var(--text-dark); }

/* Inline heading overrides for white sections */
.bg-white h2, .bg-white h3, .bg-white h4,
.section-light h2, .section-light h3, .section-light h4 { color: var(--text-dark); }
.bg-white p, .section-light p { color: var(--text-mid); }

/* Cert badges on dark footer */
.footer .cert-badge { border-color: rgba(255,255,255,0.12); color: var(--gray-mid); }

/* Inline style overrides: any panel with dark bg class inside a light section */
.bg-white [style*="background:var(--navy"],
.bg-white [style*="background: var(--navy"] {
  /* preserve dark inline panels — no override needed, handled per-element */
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-mobile {
  position: fixed; inset: 0;
  background: var(--logo-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-md);
  transform: translateX(100%);
  transition: transform var(--t-med);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: var(--sp-lg); }
.nav-mobile-links a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast);
}
.nav-mobile-links a:hover { color: var(--accent-blue); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem; right: var(--sp-md);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  75%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2,1fr); }
  .capabilities-grid-light { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row,
  .stats-row-light { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(3,1fr); gap: var(--sp-md); }
  .process-steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-logo img { height: 54px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: var(--sp-md); }
  .hero-stat-item + .hero-stat-item::before { display: none; }
  .hero-scroll-indicator { display: none; }
  .hero-bg-video { width: 100%; left: 0; right: 0; transform: none; object-position: center 98%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .capabilities-grid-light { grid-template-columns: 1fr; }
  .stats-row,
  .stats-row-light { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }

  /* Collapse INLINE multi-column content grids (not class-based) on phones.
     Excludes small icon rows ("auto 1fr" / "1fr auto"). 3/4-col card grids
     drop to 2 columns here, then to 1 at 480px below. */
  [style*="grid-template-columns"]:not([style*="auto"]):not([style*="repeat(3"]):not([style*="repeat(4"]) {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Safety nets: never scroll sideways; media never overflows its container */
  html, body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
}
@media (max-width: 480px) {
  .stats-row,
  .stats-row-light { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .process-steps { grid-template-columns: 1fr; }
  /* Single column for the small card grids on narrow phones */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   SCROLLBAR & SELECTION
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--logo-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }
::selection { background: rgba(47,111,228,0.35); color: var(--white); }
