/* ==========================================================================
   Solve4 Solutions — Industrial brand system
   Dark, modular, supply-chain aesthetic. Mono accent (amber) on cool steel base.
   ========================================================================== */

:root {
  /* Color — Solve4 Industrial */
  --color-bg:           #0B1118;   /* page base, near-black with navy bias */
  --color-bg-1:         #0F1620;   /* card / section alt */
  --color-bg-2:         #131C27;   /* card raised */
  --color-bg-3:         #1A2433;   /* hover surface */
  --color-border:       #243246;
  --color-border-soft:  #1A2433;
  --color-rule:         #2A3A52;

  --color-text:         #E6EBF2;
  --color-text-muted:   #8C99AA;
  --color-text-faint:   #5A6779;

  /* Steel accent (cool primary) */
  --color-steel:        #4DB2C7;
  --color-steel-deep:   #1F5C6E;

  /* Amber accent (CTA / spark) — single warm color */
  --color-amber:        #F2A33A;
  --color-amber-deep:   #C77B1A;

  --color-success:      #6DAA45;
  --color-warning:      #E2B43A;
  --color-error:        #D86A6A;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (clamp for fluid) */
  --text-xs:   clamp(11px, 0.72vw + 0.5rem, 12px);
  --text-sm:   clamp(13px, 0.85vw + 0.5rem, 14px);
  --text-base: clamp(15px, 1vw + 0.6rem, 17px);
  --text-lg:   clamp(18px, 1.2vw + 0.7rem, 20px);
  --text-xl:   clamp(22px, 1.6vw + 0.7rem, 28px);
  --text-2xl:  clamp(28px, 2.5vw + 0.9rem, 40px);
  --text-3xl:  clamp(36px, 4vw + 1rem, 60px);
  --text-hero: clamp(40px, 5.6vw + 0.6rem, 88px);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1480px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 6px 18px rgba(0,0,0,0.32);
  --shadow-deep: 0 24px 60px rgba(0,0,0,0.45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.055), transparent 34vw),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.04), transparent 30vw),
    var(--color-bg);
  color: var(--color-text);
  font: 400 var(--text-base)/1.6 var(--font-body);
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.58;
  background:
    linear-gradient(128deg, transparent 0 10%, rgba(245, 248, 250, 0.34) 15%, rgba(17, 21, 27, 0.88) 27%, transparent 38%),
    linear-gradient(151deg, transparent 0 20%, rgba(245, 248, 250, 0.26) 31%, rgba(0, 0, 0, 0.82) 43%, transparent 58%),
    linear-gradient(26deg, transparent 0 46%, rgba(245, 248, 250, 0.22) 58%, rgba(0, 0, 0, 0.86) 70%, transparent 84%),
    radial-gradient(circle at 28% 24%, rgba(230, 235, 242, 0.30), transparent 34%),
    radial-gradient(circle at 66% 64%, rgba(230, 235, 242, 0.22), transparent 38%);
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: blur(9px) grayscale(1) contrast(148%) brightness(0.82);
  transform: scale(1.24);
  animation: ethereal-shadow-drift 28s var(--ease-in-out) infinite alternate;
}

body::after {
  z-index: 0;
  opacity: 0.18;
  background-image: url('https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png');
  background-size: 180px 180px;
  background-repeat: repeat;
  mix-blend-mode: screen;
}

.topbar,
.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

@keyframes ethereal-shadow-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.24) rotate(0deg);
    filter: blur(9px) grayscale(1) contrast(142%) brightness(0.80);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.31) rotate(3deg);
    filter: blur(12px) grayscale(1) contrast(158%) brightness(0.86);
  }
  100% {
    transform: translate3d(1%, -2%, 0) scale(1.27) rotate(-2deg);
    filter: blur(10px) grayscale(1) contrast(150%) brightness(0.82);
  }
}

@keyframes solve4-logo-fade-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-2px);
  }
  70% {
    opacity: 0.72;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-amber); color: #111; padding: 8px 12px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

::selection { background: var(--color-amber); color: #111; }

/* ---------- Container & layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: clamp(72px, 9vw, 144px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--alt { background: var(--color-bg-1); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--text-xs)/1 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-steel);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #060A10;
  border-bottom: 1px solid var(--color-border-soft);
  font: 500 var(--text-xs)/1 var(--font-mono);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
}
.topbar__left,.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: var(--color-text-muted); }
.topbar a:hover { color: var(--color-amber); }
.topbar__sep { color: var(--color-text-faint); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 24, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: box-shadow .25s var(--ease-out);
}
.header--scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.35); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0;
  animation: solve4-logo-fade-in 6.5s var(--ease-out) 0.35s forwards;
}
.brand__meta {
  font: 500 11px/1.1 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-faint);
}

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav__list { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav__link {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--color-text);
  padding: 8px 2px;
  position: relative;
}
.nav__link:hover { color: var(--color-amber); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--color-amber); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 42px;
  transition: width .35s var(--ease-out);
}
.nav-search.is-open,
.nav-search:focus-within {
  width: clamp(180px, 18vw, 260px) !important;
}
.nav-search__toggle {
  position: absolute;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-text);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-search__toggle:hover,
.nav-search.is-open .nav-search__toggle {
  color: var(--color-amber) !important;
  border-color: rgba(242, 163, 58, 0.65) !important;
  background: rgba(242, 163, 58, 0.08) !important;
}
.nav-search__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-search__input {
  position: absolute;
  right: 0;
  width: 100%;
  height: 42px;
  padding: 0 46px 0 16px;
  color: var(--color-text);
  background: rgba(6, 10, 16, 0.76);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  outline: none;
  opacity: 0;
  transform: scaleX(0.68);
  transform-origin: right;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-search.is-open .nav-search__input,
.nav-search:focus-within .nav-search__input {
  opacity: 1 !important;
  transform: scaleX(1) !important;
  pointer-events: auto !important;
}
.nav-search__input:focus {
  border-color: rgba(242, 163, 58, 0.7);
  background: rgba(6, 10, 16, 0.92);
}
.nav-search__input::placeholder { color: var(--color-text-faint); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--color-border);
  width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--color-text);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--color-amber); color: var(--color-amber); }
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out), top .25s var(--ease-out);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: 500 var(--text-sm)/1 var(--font-body);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--color-amber); outline-offset: 3px; }
.btn--primary { background: var(--color-amber); color: #0B1118; }
.btn--primary:hover { background: #ffb44a; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-amber); color: var(--color-amber); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn__arrow { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-bg);
  padding-block: clamp(80px, 12vw, 180px);
  isolation: isolate;
}
.hero::before,
.subhero::before {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  background:
    linear-gradient(126deg, transparent 0 9%, rgba(238, 241, 245, 0.38) 16%, rgba(2, 4, 7, 0.86) 30%, transparent 43%),
    linear-gradient(154deg, transparent 0 20%, rgba(238, 241, 245, 0.27) 31%, rgba(0, 0, 0, 0.88) 44%, transparent 58%),
    linear-gradient(28deg, transparent 0 45%, rgba(238, 241, 245, 0.22) 58%, rgba(0, 0, 0, 0.82) 70%, transparent 84%);
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: blur(10px) grayscale(1) contrast(155%) brightness(0.9);
  transform: scale(1.22);
  animation: ethereal-shadow-drift 28s var(--ease-in-out) infinite alternate;
}
.hero > .container,
.subhero > .container {
  position: relative;
  z-index: 2;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../assets/images/hero-warehouse.webp');
  background-size: cover; background-position: center;
  filter: saturate(0.45) brightness(0.62);
  opacity: 0.58;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 30%, rgba(11,17,24,0.5) 0%, rgba(11,17,24,0.95) 70%),
    linear-gradient(180deg, rgba(11,17,24,0.7) 0%, rgba(11,17,24,0.85) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(rgba(77, 178, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 178, 199, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 100%);
}

.hero__inner { max-width: 980px; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__title .accent { color: var(--color-amber); font-style: italic; font-weight: 400; }
.hero__title .small {
  display: block; font-size: 0.52em; color: var(--color-text-muted);
  letter-spacing: -0.02em; font-weight: 400; margin-top: 14px;
}
.hero__lede {
  margin-top: 36px;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero__stats {
  margin-top: clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}
.hero__stat { padding-right: 28px; border-right: 1px solid var(--color-border-soft); }
.hero__stat:last-child { border-right: none; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.hero__stat-label {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-faint); margin-top: 6px;
}

/* ---------- Section heading ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
.section-head__left { }
.section-head__title {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.section-head__right {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Capabilities (homepage business lines grid) ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 2px;
}
.cap {
  background: var(--color-bg-1);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background .25s var(--ease-out);
}
.cap:hover { background: var(--color-bg-2); }
.cap--lg { grid-column: span 8; min-height: 460px; }
.cap--half { grid-column: span 6; min-height: 460px; }
.cap--md { grid-column: span 4; }
.cap--full { grid-column: span 12; }
.cap--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.cap__img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  border-radius: 2px;
  margin-bottom: 24px;
  filter: brightness(0.95) saturate(0.95);
}
.cap--lg .cap__img { aspect-ratio: 21/9; }

.cap__num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em; color: var(--color-text-faint);
  margin-bottom: 16px;
}
.cap__title {
  font-size: var(--text-xl);
  font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.cap__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.55;
  max-width: 60ch;
}
.cap__tags {
  display: flex; gap: 8px; margin-top: auto; padding-top: 20px;
  flex-wrap: wrap;
}
.cap__tag {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.cap__link {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--color-amber);
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cap__link::after { content: '→'; transition: transform .2s var(--ease-out); }
.cap:hover .cap__link::after { transform: translateX(4px); }

/* ---------- Pillar / story strip ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}
.pillar {
  padding: 32px 28px 28px 0;
  border-right: 1px solid var(--color-border-soft);
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar__num {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.18em; color: var(--color-text-faint);
  margin-bottom: 14px;
}
.pillar__title { font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; }
.pillar__desc { color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Business line detail panel (alternating rows) ---------- */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--color-border-soft);
}
.row:last-child { border-bottom: none; }
.row__img {
  width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
}
.row--reverse .row__media { order: 2; }
.row__num {
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--color-steel);
  margin-bottom: 16px;
}
.row__title { font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 20px; }
.row__lede { color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.55; margin-bottom: 28px; }
.row__list { list-style: none; padding: 0; margin: 0; }
.row__list li {
  display: flex; gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--color-border-soft);
  font-size: 15px; color: var(--color-text);
}
.row__list li:last-child { border-bottom: 1px solid var(--color-border-soft); }
.row__list li::before {
  content: '+'; color: var(--color-amber); font-family: var(--font-mono);
  font-weight: 500; min-width: 16px;
}

/* ---------- Supply chain map / network strip ---------- */
.network {
  background: var(--color-bg-1);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  margin-top: 40px;
  position: relative; overflow: hidden;
}
.network__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.network__node {
  padding: 24px 20px;
  border-right: 1px solid var(--color-border-soft);
  position: relative;
}
.network__node:last-child { border-right: none; }
.network__node-label {
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.18em;
  color: var(--color-steel); text-transform: uppercase;
  margin-bottom: 12px;
}
.network__node-title { font-size: var(--text-lg); font-weight: 500; margin-bottom: 8px; }
.network__node-desc { color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0a0d13 0%, #131C27 50%, #0E2530 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(242, 163, 58, 0.16) 0%, transparent 50%);
}
.cta-banner__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.cta-banner__title {
  font-size: var(--text-3xl); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.05;
}
.cta-banner__title .accent { color: var(--color-amber); }
.cta-banner__lede { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: 20px; max-width: 56ch; }
.cta-banner__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cta-banner__action {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(11, 17, 24, 0.5);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.cta-banner__action:hover { border-color: var(--color-amber); background: rgba(11, 17, 24, 0.75); }
.cta-banner__action-label { font: 500 11px/1 var(--font-mono); letter-spacing: 0.16em; color: var(--color-text-faint); text-transform: uppercase; }
.cta-banner__action-value { font-size: var(--text-lg); font-weight: 500; margin-top: 6px; }
.cta-banner__action-icon { color: var(--color-amber); }

/* ---------- Contact form ---------- */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 760px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--color-text-muted); text-transform: uppercase; }
.form__input, .form__select, .form__textarea {
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: 400 15px/1.5 var(--font-body);
  padding: 14px 16px;
  transition: border-color .2s var(--ease-out);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--color-amber);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__submit { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer {
  background: #060A10;
  border-top: 1px solid var(--color-border-soft);
  padding-block: 64px 32px;
  color: var(--color-text-muted);
}
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--color-border-soft);
}
.footer__brand img { height: 36px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 16px; }
.footer__tagline { color: var(--color-text-muted); max-width: 360px; font-size: 14px; line-height: 1.6; }
.footer__col-title { font: 500 11px/1 var(--font-mono); letter-spacing: 0.18em; color: var(--color-text); text-transform: uppercase; margin-bottom: 18px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__list a:hover { color: var(--color-amber); }
.footer__bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 500 12px/1.5 var(--font-mono); color: var(--color-text-faint);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--color-amber); }

/* ---------- Subpage hero ---------- */
.subhero {
  padding-block: clamp(80px, 10vw, 160px) clamp(60px, 7vw, 96px);
  border-bottom: 1px solid var(--color-border-soft);
  background: linear-gradient(180deg, var(--color-bg-1) 0%, var(--color-bg) 100%);
  position: relative; overflow: hidden;
}
.subhero__inner { max-width: 980px; }
.subhero__crumbs { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--color-text-faint); text-transform: uppercase; margin-bottom: 24px; }
.subhero__crumbs a { color: var(--color-text-muted); }
.subhero__crumbs a:hover { color: var(--color-amber); }
.subhero__title { font-size: var(--text-3xl); font-weight: 500; letter-spacing: -0.03em; }
.subhero__title .accent { color: var(--color-amber); }
.subhero__lede { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: 20px; max-width: 760px; line-height: 1.55; }

/* ---------- Contact grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Feature grid (subpages) ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border-soft);
}
.feature {
  background: var(--color-bg-1);
  padding: 32px 28px;
}
.feature__icon-wrap {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(242, 163, 58, 0.1);
  border: 1px solid rgba(242, 163, 58, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-amber);
  margin-bottom: 20px;
}
.feature__title { font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; }
.feature__desc { color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Automation catalog ---------- */
.automation-catalog {
  background:
    radial-gradient(circle at 15% 0%, rgba(77, 178, 199, 0.08), transparent 38%),
    var(--color-bg);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border-soft);
}
.catalog-card {
  background: var(--color-bg-1);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.catalog-card__image {
  aspect-ratio: 1 / 1;
  background-color: #f7f8f8;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border-soft);
}
.catalog-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.catalog-card__type {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.catalog-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.catalog-card__models {
  font: 500 12px/1.45 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--color-amber);
}
.catalog-card__desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.catalog-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border-soft);
  margin-top: auto;
}
.catalog-card__spec {
  background: #0B1118;
  padding: 10px 12px;
  min-width: 0;
}
.catalog-card__spec span {
  display: block;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 6px;
}
.catalog-card__spec strong {
  display: block;
  font: 500 13px/1.35 var(--font-body);
  color: var(--color-text);
}
.catalog-card__quote {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  font: 500 13px/1 var(--font-body);
  color: var(--color-amber);
}
.catalog-card__quote:hover { color: #ffb44a; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: var(--space-4); }
  .nav__list { gap: var(--space-4); }
  .nav-search.is-open,
  .nav-search:focus-within { width: 220px; }
  .capabilities { grid-template-columns: repeat(6, 1fr); }
  .cap--lg, .cap--half, .cap--md { grid-column: span 6; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .row, .row--reverse { grid-template-columns: 1fr; }
  .row--reverse .row__media { order: 0; }
  .cta-banner__inner { grid-template-columns: 1fr; gap: 32px; }
  .network__grid { grid-template-columns: repeat(2, 1fr); }
  .network__node:nth-child(2) { border-right: none; }
  .network__node:nth-child(1), .network__node:nth-child(2) { border-bottom: 1px solid var(--color-border-soft); padding-bottom: 24px; }
  .network__node:nth-child(3), .network__node:nth-child(4) { padding-top: 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-card__body { min-height: 340px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: none; padding-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--color-border-soft); padding-bottom: 24px; }
  .pillar:nth-child(3), .pillar:nth-child(4) { padding-top: 24px; padding-right: 28px; }
  .pillar:nth-child(3) { padding-right: 28px; }
  .pillar:nth-child(4) { padding-right: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero__stat:nth-child(2) { border-right: none; }
}

@media (max-width: 720px) {
  .topbar { display: none; }

  .header__inner { height: 64px; }
  .brand img { height: 32px; }
  .brand__meta { display: none; }
  .nav { margin-left: auto; margin-right: 10px; }
  .nav__list { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-search { width: 42px; height: 40px; }
  .nav-search__toggle,
  .nav-search__input { height: 40px; }
  .nav-search.is-open,
  .nav-search:focus-within {
    position: absolute;
    left: 20px;
    right: 72px;
    top: 12px;
    width: auto !important;
    z-index: 70;
  }

  /* Hide the in-header Request-a-Quote on mobile; the drawer has its own */
  .nav__cta { display: none; }

  /* Mobile drawer */
  .nav--open {
    position: fixed !important;
    top: 64px; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-soft);
    z-index: 60; padding: 24px 24px 48px;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
  }
  .nav--open .nav__list {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 0; width: 100%; list-style: none; padding: 0; margin: 0;
  }
  .nav--open .nav__link {
    display: block; padding: 18px 0;
    font-size: 22px; font-family: var(--font-display);
    border-bottom: 1px solid var(--color-border-soft);
    letter-spacing: -0.01em; font-weight: 500;
  }
  .nav--open .nav__link::after { display: none; }
  .nav--open .nav__cta {
    display: inline-flex; margin-top: 32px; width: 100%; justify-content: center;
    padding: 16px 22px; font-size: 15px;
  }
  .nav--open .nav-search {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 20px;
  }
  .nav--open .nav-search__input {
    opacity: 1;
    transform: scaleX(1);
    pointer-events: auto;
  }

  body.nav-locked { overflow: hidden; }

  .capabilities { grid-template-columns: 1fr; }
  .cap--lg, .cap--half, .cap--md, .cap--full { grid-column: 1 / -1; }
  .cap--split { grid-template-columns: 1fr; }
  .cap { padding: 24px; min-height: auto; }

  .feature-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card__body { min-height: 0; }
  .catalog-card__specs { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 24px 0 !important; border-right: none !important; border-bottom: 1px solid var(--color-border-soft); }
  .pillar:last-child { border-bottom: none; }

  .network__grid { grid-template-columns: 1fr; }
  .network__node { border-right: none; border-bottom: 1px solid var(--color-border-soft); padding: 20px 0; }
  .network__node:last-child { border-bottom: none; }

  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__legal { gap: 16px; flex-wrap: wrap; }

  .hero__stats { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .hero__stat { padding-right: 0; border-right: none; border-bottom: 1px solid var(--color-border-soft); padding-bottom: 16px; }
  .hero__stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Reveal on scroll (basic) — only when explicitly enabled */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }
  html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brand img { opacity: 1; filter: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
