/* =====================================================================
   VESTAR TECH — Global Design System (Enhanced)
   Black-blue B2B technology aesthetic.
   Brand blue #20459b extracted from VESTAR TECH logo.
   Fonts (open-source, commercial use):
     Space Grotesk (display / heavy titles) — distinctive, technical display
     Inter (body / running text) — highly legible at all sizes
     JetBrains Mono (labels / monospace) — engineering precision

   Visual direction: precision-engineering industrial, restrained, cold
   atmosphere; deep navy glow + film grain + technical scanlines.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* =========================================================
     Open-source / commercially usable English fonts.
     Single typeface site-wide: Space Grotesk (OFL 1.1), which is
     the same family the top navigation uses. No Chinese system
     fallbacks (no 黑体/Song/PingFang SC/Microsoft YaHei).
     ========================================================= */
  /* Display / body / monospace — all three aliases now resolve to
     the same Space Grotesk stack so every text node uses the nav font. */
  --font-sans:    'Space Grotesk', 'Inter', ui-sans-serif, system-ui,
                  -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui,
                  -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'Space Grotesk', 'Inter', ui-sans-serif, system-ui,
                  -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Brand — extracted from VESTAR TECH logo */
  --brand:        #20459b;   /* logo navy — primary accent */
  --brand-bright: #356dd4;   /* hover / active */
  --brand-mid:    #2a55ae;   /* mid-tone */
  --brand-soft:   #142a60;   /* deep navy fills */
  --brand-deep:   #0a163a;   /* deepest navy backdrop */
  --cyan:         #1e9cce;   /* logo cyan — sparingly */
  --gold:         #d4ae57;   /* logo gold — extremely sparing (dividers only) */

  /* Dark base */
  --ink:      #07090d;      /* page background (near-black) */
  --graphite: #0c111a;       /* deep surface */
  --slate:    #111824;       /* card surface */
  --steel:    #171f2e;       /* elevated surface */
  --steel-2:  #1f2838;       /* hover surface */
  --steel-3:  #283246;       /* divider / border strong */

  /* Text */
  --text:      #eef2f9;      /* primary text on dark */
  --mist:      #c4cbda;      /* secondary text */
  --cold:      #8892a6;      /* muted / meta */
  --cold-dim:  #576173;      /* very muted */

  /* Light surfaces */
  --paper:    #edf1f7;
  --paper-2:  #dde3ee;
  --paper-ink:#0e1626;

  /* Lines */
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-hard: rgba(255, 255, 255, 0.14);
  --line-brand:rgba(32, 69, 155, 0.55);
  --line-cyan: rgba(30, 156, 206, 0.35);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card:    0 1px 2px rgba(0,0,0,.5), 0 18px 42px rgba(0,0,0,.45);
  --shadow-float:   0 10px 40px rgba(0,0,0,.55);
  --shadow-brand:   0 12px 40px rgba(32,69,155,.45);
  --shadow-brand-sm:0 6px 22px rgba(32,69,155,.40);
  --shadow-soft:    0 2px 10px rgba(0,0,0,.25);
  --shadow-elev:    inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.5);

  /* Motion */
  --ease:   cubic-bezier(.2,.8,.2,1);
  --ease-s: cubic-bezier(.4,0,.1,1);
  --dur:    .55s;
  --dur-s:  .3s;

  /* Layout */
  --nav-h: 74px;
  --maxw: 1280px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ========================================================================
   Global single-typeface lock-down — EVERYTHING renders with the nav font.
   Space Grotesk is declared once via the unified --font-sans variable;
   heading/form/code selectors below are kept so TW-generated utilities
   can never override them back to another family.
   ======================================================================== */
html,
body,
h1, h2, h3, h4, h5, h6,
.h-section,
button,
input,
select,
textarea,
optgroup,
form,
label,
table,
th,
td,
ul,
ol,
li,
dl,
dt,
dd,
blockquote,
pre,
code,
kbd,
samp,
tt {
  font-family: var(--font-sans);
}
/* Force Tailwind utility font-* classes to resolve to the same Space Grotesk
   stack, even when someone accidentally adds a TW font utility. */
.font-sans,
.font-serif,
.font-mono { font-family: var(--font-sans) !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
/* Film grain overlay across entire page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
/* Cursor-tracking radial glow layer (class added by JS) */
.cursor-glow {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(32,69,155,.13), transparent 55%);
  transition: background .3s ease-out;
  opacity: .9;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Typography (Space Grotesk display + Inter body) ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--text);
}
/* Subtle gradient tint on primary headings */
h1 {
  background: linear-gradient(180deg, #ffffff 0%, #dbe4f5 55%, #8fa5cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2.h-section {
  background: linear-gradient(180deg, #ffffff 0%, #cfd8eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* accent highlight on words inline */
.accent {
  color: transparent;
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  position: relative; padding: 0 1px;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 700; }

/* Mono eyebrow / technical label */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--cyan);
}
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; position: relative; }
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  display: inline-block;
}

/* Section heading */
.h-section {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700;
}
.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  color: var(--mist);
  line-height: 1.78;
  font-weight: 400;
}
.muted { color: var(--cold); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 3; }
.section  { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(56px, 6.5vw, 82px) 0; position: relative; }

/* Prevent grid children from forcing overflow on narrow viewports */
.grid { grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.ph { min-width: 0; }

/* Gradient divider underneath a section (centered, brand -> cyan, subtle & long) */
.section.grad-divider--after,
.section-tight.grad-divider--after { position: relative; }
.section.grad-divider--after::after,
.section-tight.grad-divider--after::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92%, 1280px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(32, 69, 155, .28) 20%,
    rgba(30, 156, 206, .36) 50%,
    rgba(212, 174, 87, .24) 80%,
    transparent 100%);
  opacity: .7;
  pointer-events: none;
}

/* Subtle technical background: grid + radial corner glow + bottom vignette (with optional real photo) */
.bg-hero {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  position: relative;
  overflow: hidden;
}
.bg-hero[data-hero-photo]::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-photo, none);
  background-size: cover;
  background-position: var(--hero-photo-position, center);
  opacity: .32;
  mix-blend-mode: luminosity;
  filter: saturate(.9) contrast(1.05);
  z-index: 0;
  pointer-events: none;
}
#heroIndustries {
  --hero-photo: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Website%20line%20card%20hero%20background%3A%20close%20up%20macro%20shot%20of%20PCB%20circuit%20board%20with%20tiny%20IC%20chips%20and%20gold%20contacts%20on%20matte%20black%20solder%20mask%2C%20lens%20flare%2C%20deep%20navy%20ambient%20light%2C%20premium%20semiconductor%20photography%2C%20photorealistic&image_size=landscape_16_9');
}
.bg-hero[data-hero-photo]::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,22,.35) 0%, rgba(5,10,22,.80) 100%),
    radial-gradient(90% 60% at 100% 0%, rgba(32,69,155,.28), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.bg-hero::after {
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(32,69,155,.28), transparent 70%);
  filter: blur(60px);
  transform: translate(20%, -10%);
  pointer-events: none;
}
.bg-hero:not([data-hero-photo])::before {
  content: ""; position: absolute; bottom: -200px; left: -15%; width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(30,156,206,.10), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .86rem; letter-spacing: .09em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Small / nav button — fits nav line height */
.btn-sm {
  padding: .58rem 1.05rem;
  font-size: .7rem;
  letter-spacing: .12em;
}
.btn-sm svg { width: 13px; height: 13px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 -1px 0 rgba(0,0,0,.18) inset,
    0 8px 22px rgba(32,69,155,.35);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -1px 0 rgba(0,0,0,.2) inset,
    0 14px 36px rgba(32,69,155,.55);
  border-color: rgba(255,255,255,.18);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-color: var(--line-hard);
  box-shadow: var(--shadow-elev);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: #fff;
  background: rgba(32,69,155,.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(32,69,155,.25);
}

/* small pill variant for filters */
.btn-chip {
  padding: .55rem 1rem !important;
  font-size: .8rem !important;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-hard) !important;
  background: transparent !important;
  color: var(--mist) !important;
  box-shadow: var(--shadow-elev);
  transition: all var(--dur-s) var(--ease);
  font-family: var(--font-sans);
  font-weight: 600;
}
.btn-chip:hover { color: var(--text) !important; border-color: var(--brand) !important; background: rgba(32,69,155,.12) !important; }
.btn-chip.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid)) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(32,69,155,.42) !important;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), height var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 66px;
  background: rgba(7, 9, 13, .76);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.04) inset;
}
.nav-inner { width: 100%; display: flex; align-items: center; gap: 24px; position: relative; z-index: 3; }

.logo-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  background:
    linear-gradient(180deg, #ffffff, #eef2f9);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--r-md);
  padding: 5px 13px 5px 9px;
  box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.6) inset;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.logo-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(32,69,155,.35), 0 1px 0 rgba(255,255,255,.6) inset;
  border-color: rgba(32,69,155,.35);
}
.logo-chip img { height: 36px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: 18px;
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 4px;
  backdrop-filter: blur(10px);
}
.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500; font-size: .86rem;
  color: var(--mist);
  padding: .5rem 1.05rem;
  border-radius: var(--r-pill);
  transition: color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
  letter-spacing: .01em;
}
.nav-link::after {
  content: none;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  box-shadow: 0 6px 18px rgba(32,69,155,.42);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-hard); align-items: center; justify-content: center; background: rgba(255,255,255,.02); }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--dur) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--dur) var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: 100vw; z-index: 99;
  background: rgba(7,9,13,.96);
  backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--line);
  padding: 24px;
  transform: translateX(-100%); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open { transform: translateX(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.nav.menu-open {
  background: rgba(7, 9, 13, .96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: var(--line);
}
.mobile-menu a {
  display: block;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.08rem;
  padding: 16px 6px; color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

/* ---------- Image placeholder (now with contextual real-image + overlay layer) ---------- */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background-color: var(--slate);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line-hard);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--mist);
  box-shadow: var(--shadow-elev);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.10) 0%, rgba(8, 14, 28, 0.55) 100%),
    radial-gradient(100% 60% at 50% 0%, rgba(32,69,155,.18), transparent 65%);
  z-index: 1;
  pointer-events: none;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask: linear-gradient(180deg, transparent 20%, #000 55%, #000 100%);
  -webkit-mask: linear-gradient(180deg, transparent 20%, #000 55%, #000 100%);
  opacity: .55;
  z-index: 2;
  pointer-events: none;
}
.ph .ph-tag {
  position: absolute; top: 20px; left: 20px; z-index: 5;
  font-family: var(--font-sans);
  font-size: .60rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mist);
  padding: 6px 10px;
  background: rgba(7, 12, 24, .55);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}
.ph .ph-label {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 5;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem;
  color: #eef2fb; line-height: 1.35;
  letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}

/* Logo placeholder box — brand cards */
.logo-box {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(180deg, #f3f5fa, #e4e8f0);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--r-sm);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
/* Wrap a logo-box inside a brand anchor (stays clickable / hoverable) */
a.bc-logo { display: block; }
a.bc-logo .logo-box { transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
a.bc-logo:hover .logo-box { filter: saturate(1.08); }
.logo-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, transparent 48%, rgba(32,69,155,.06) 49% 51%, transparent 52%);
  background-size: 8px 8px;
  opacity: .6; pointer-events: none;
}
.logo-box .lb-name {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.08rem;
  color: var(--paper-ink); text-align: center; padding: 0 12px; letter-spacing: -.015em;
  position: relative; z-index: 2;
}
.logo-box .lb-tag {
  position: absolute; bottom: 6px; right: 10px;
  font-family: var(--font-sans); font-size: .52rem; letter-spacing: .14em;
  color: #8891a4; text-transform: uppercase; z-index: 2;
}

/* Brand line-card card */
.brand-card {
  position: relative;
  background: linear-gradient(180deg, var(--slate) 0%, var(--graphite) 100%);
  border: 1px solid var(--line-hard);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-elev);
  display: flex; flex-direction: column;
}

/* Line Card page grid: strictly 2 cards per row on every viewport size.
   This class + the grid-cols-2 utility above override any legacy
   sm/lg/xl col classes. Extra rule below hardens override order so
   Tailwind sm:grid-cols-2 / lg:grid-cols-3 / xl:grid-cols-4 leftovers
   can never win even if a regressed edit re-adds them.              */
.line-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 32px !important;
  row-gap: 32px !important;
  width: 100%;
}
@media (max-width: 640px) {
  .line-card-grid {
    column-gap: 14px !important;
    row-gap: 20px !important;
  }
}
@media (min-width: 641px) and (max-width: 960px) {
  .line-card-grid {
    column-gap: 22px !important;
    row-gap: 26px !important;
  }
}

/* Scale-up inner sizes to visually fill the 2-column width (cards
   were originally designed for 3–4-up so they feel tiny at 2-up
   without this pass). Only apply on the Line Card page container to
   avoid double-sizing the 6-card teaser on the home page.      */
.line-card-grid .brand-card { border-radius: calc(var(--r-lg) + 4px); }
.line-card-grid .brand-card .logo-box { min-height: 168px; }
.line-card-grid .brand-card .bc-body { padding: 26px 28px 30px; gap: 10px; }
.line-card-grid .brand-card .bc-name { font-size: 1.24rem; }
.line-card-grid .brand-card .bc-desc { font-size: .96rem; line-height: 1.75; }
.line-card-grid .brand-card .bc-cat { font-size: .68rem; padding-top: 14px; }
.line-card-grid .brand-card .bc-head { gap: 16px; }
@media (max-width: 640px) {
  .line-card-grid .brand-card .logo-box { min-height: 120px; }
  .line-card-grid .brand-card .bc-body { padding: 18px 16px 22px; gap: 8px; }
  .line-card-grid .brand-card .bc-name { font-size: 1.02rem; }
  .line-card-grid .brand-card .bc-desc { font-size: .84rem; line-height: 1.6; }
  .line-card-grid .brand-card .bc-cat { font-size: .6rem; padding-top: 10px; }
}
.brand-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform var(--dur) var(--ease);
  z-index: 2;
}
.brand-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px var(--line-brand), 0 10px 22px rgba(32,69,155,.25);
}
.brand-card:hover::before { transform: scaleX(1); }
.brand-card:hover .logo-box { transform: scale(1.02); }
.brand-card .logo-box { transition: transform var(--dur) var(--ease); }
.brand-card .bc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.brand-card .bc-head { display: block; }
.brand-card .bc-name {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.14rem;
  letter-spacing: -.02em; color: var(--text); line-height: 1.25;
  width: 100%;
}
.brand-card .bc-desc { color: var(--cold); font-size: .9rem; line-height: 1.7; margin: 0; }
.brand-card .bc-cat {
  font-family: var(--font-sans); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan);
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
}
.brand-card .bc-cat::before {
  content: ""; width: 14px; height: 1px; background: var(--cyan); display: inline-block;
}
.brand-card .bc-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 8px 2px;
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-bright);
  border: 0;
  border-radius: 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.brand-card .bc-link svg { width: 13px; height: 13px; stroke-width: 2.2; flex: none; transition: transform var(--dur) var(--ease); }
.brand-card .bc-link:hover {
  color: var(--cyan);
  background-color: transparent;
  transform: translateY(-1px);
}
.brand-card .bc-link:hover svg { transform: translateX(2px); }

/* line-card page card: retain visual cues — link keeps a subtle underline/border pill look */
body.page-line-card .brand-card .bc-link {
  padding: 8px 14px;
  border: 1px solid var(--line-brand);
  border-radius: 999px;
}
body.page-line-card .brand-card .bc-link:hover {
  color: #fff;
  background-color: var(--brand);
  border-color: var(--brand);
}

/* Feature / value card */
.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--steel), var(--slate));
  border: 1px solid var(--line-hard);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  height: 100%;
  transition: var(--dur) var(--ease);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.feature-card::after {
  content: ""; position: absolute; bottom: -60px; right: -60px; width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(32,69,155,.22), transparent 70%);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--brand);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::after { transform: translate(-20px, -20px); }
.feature-card .fc-icon {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(32,69,155,.22), rgba(30,156,206,.12));
  border: 1px solid var(--line-brand);
  color: #85aceb;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(32,69,155,.2);
}
.feature-card .fc-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.02em; }
.feature-card p { color: var(--cold); font-size: .93rem; line-height: 1.7; }

/* Numbered strength item — redesigned */
.strength {
  position: relative;
  display: flex; gap: 24px; padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: var(--dur) var(--ease);
}
.strength:first-of-type { border-top: 0; padding-top: 0; }
.strength:hover { padding-left: 8px; }
.strength:hover .s-num { color: var(--cyan); background: rgba(30,156,206,.08); border-color: var(--line-cyan); }
.strength .s-num {
  font-family: var(--font-sans); font-weight: 600; font-size: .85rem;
  color: var(--brand-bright);
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32,69,155,.10);
  border: 1px solid var(--line-brand);
  border-radius: var(--r-sm);
  transition: var(--dur) var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  letter-spacing: .02em;
}
.strength h3 { font-size: 1.22rem; margin-bottom: 8px; letter-spacing: -.02em; }
.strength p { color: var(--cold); font-size: .94rem; line-height: 1.75; }

/* ---------- Industry sections ---------- */
.industry-block {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  /* 原生 hash 跳转的兜底偏移：固定主导航 + sticky 子导航（高度由 JS 写入 --subnav-h） */
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h, 58px) + 10px);
}
.industry-block:first-of-type { border-top: 0; }

/* Quality section: match CTA band vertical padding */
.industry-block#quality { padding: 0; }
.industry-block#quality .ind-section-wrap {
  padding-top: clamp(56px, 6.5vw, 82px);
  padding-bottom: clamp(56px, 6.5vw, 82px);
}

/* Industrial / Telecoms sections: keep vertical padding consistent with Quality */
.industry-block#industrial {
  padding-top: clamp(56px, 6.5vw, 82px);
  padding-bottom: clamp(56px, 6.5vw, 82px);
}
.industry-block#telecoms { padding: 0; }
.industry-block#telecoms .ind-section-wrap {
  padding-top: clamp(56px, 6.5vw, 82px);
  padding-bottom: clamp(56px, 6.5vw, 82px);
}

/* Industry sub-modules: twin panels + key-components grid */
.ind-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 820px) {
  .ind-twin { grid-template-columns: 1fr; }
}

.ind-h3 {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.005em;
  color: var(--text);
  margin: 0;
}

.ind-grid {
  margin-top: 40px;
}
.ind-grid-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.ind-grid-head p {
  font-family: var(--font-sans);
  color: var(--cold);
  font-size: .9rem;
  margin: 4px 0 0;
}
.ind-grid-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1060px) {
  .ind-grid-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ind-grid-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.ind-grid-item {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--slate), var(--graphite));
  border: 1px solid var(--line-hard);
  transition: transform var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.ind-grid-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.ind-grid-item .igi-ic {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(30,156,206,.10);
  color: var(--cyan);
  border: 1px solid var(--line-cyan);
  margin-bottom: 12px;
}
.ind-grid-item .igi-ic svg { width: 18px; height: 18px; }
.ind-grid-item h4 {
  font-family: var(--font-sans);
  font-weight: 700; font-size: .98rem; color: var(--text);
  margin: 0 0 6px; line-height: 1.3;
}
.ind-grid-item .igi-sup {
  font-family: var(--font-sans);
  font-size: .78rem; color: var(--cold);
  line-height: 1.5;
}

/* =========================================================
   Industries page — unified section + hero right panel
   ========================================================= */

/* --- Alternating section wrapper (dark variant) --- */
.ind-section-wrap {
  background: var(--graphite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.ind-section-wrap + .ind-section-wrap {
  border-top: 0;
}

/* --- Section hero row (2-col, alternating order) --- */
.ind-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 16px;
}
@media (min-width: 1024px) {
  .ind-hero-row {
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
  }
  .ind-hero-row--alt { grid-template-columns: 1fr 1.05fr; }
}
.ind-hero-row--alt .ind-hero-copy { order: 1; }
.ind-hero-row--alt .ind-hero-visual { order: 2; }

/* QA + Telecoms sections: panel first (left), copy second (right) — swapped vs default --alt order */
@media (min-width: 1024px) {
  .industry-block#quality .ind-hero-row--alt .ind-hero-copy,
  .industry-block#telecoms .ind-hero-row--alt .ind-hero-copy { order: 2; }
  .industry-block#quality .ind-hero-row--alt .ind-hero-visual,
  .industry-block#telecoms .ind-hero-row--alt .ind-hero-visual { order: 1; }
}

.ind-hero-visual { position: relative; }
.ind-hero-visual .ph {
  border: 1px solid var(--line-hard);
  border-radius: var(--r-lg);
}

/* --- Quality Assurance process panel (replaces image in QA hero) --- */
.ind-qa-panel,
.ind-commercial-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(94, 134, 218, .24);
  background:
    linear-gradient(180deg, rgba(32, 69, 155, .18), rgba(11, 18, 35, .82)),
    rgba(11, 18, 35, .88);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  min-height: 360px;
}
.iqp-head { display: flex; gap: 14px; align-items: center; }
.iqp-head .iqp-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--cyan);
  background: linear-gradient(160deg, rgba(94, 134, 218, .18), rgba(94, 134, 218, 0));
  border: 1px solid var(--line-hard);
}
.iqp-head .iqp-ic svg { width: 22px; height: 22px; }
.iqp-head h3 { margin: 4px 0 0; font-size: 1.15rem; line-height: 1.2; }
.iqp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.iqp-item { position: relative; padding-left: 20px; }
.iqp-item::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(94, 134, 218, .14);
  opacity: .85;
}
.iqp-item h4 { margin: 0 0 3px; font-size: .96rem; line-height: 1.25; }
.iqp-item p { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--cold); }
@media (max-width: 1023px) {
  .ind-qa-panel,
  .ind-commercial-panel { min-height: 0; }
}

/* --- Mobile refinements for industry section --- */
@media (max-width: 1023px) {
  .ind-hero-row--alt .ind-hero-copy,
  .ind-hero-row--alt .ind-hero-visual { order: initial; }
}

/* ---------- CTA Band (unified) ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(32,69,155,.55), transparent 55%),
    radial-gradient(100% 100% at 100% 100%, rgba(30,156,206,.20), transparent 55%),
    linear-gradient(135deg, #0a1840, #05102a);
  border: 1px solid var(--line-brand);
  border-radius: var(--r-xl);
  padding: clamp(56px, 7vw, 90px) clamp(28px, 5vw, 72px);
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 80%);
}
.cta-band::after {
  content: ""; position: absolute; top: 20px; left: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30,156,206,.25);
  animation: pulse-ring 2.2s var(--ease) infinite;
}
.cta-band > .cta-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.cta-band h2 {
  margin: 0 auto;
  max-width: 780px !important;
  font-size: clamp(1.7rem, 3vw, 2.5rem) !important;
  line-height: 1.12;
}
.cta-band p.lead {
  margin: 0 auto;
  max-width: 680px !important;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center;
  width: 100%;
  margin-top: 4px;
}

/* Hero capability scroll-strip */
.scroll-strip {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.scroll-strip .ss-track {
  display: flex; gap: 32px;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.scroll-strip .ss-item {
  display: inline-flex; align-items: center; gap: .55rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cold);
  padding: .3rem 0;
}
.scroll-strip .ss-item::before {
  content: "◆";
  color: var(--brand);
  font-size: .55rem;
}
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .scroll-strip .ss-track { animation: none; }
}

/* Section meta bar (left column of hero) */
.meta-bar {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 0;
}
.meta-bar .mb-item .mb-k {
  font-family: var(--font-sans);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cold-dim);
  display: block; margin-bottom: 6px;
}
.meta-bar .mb-item .mb-v {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em;
  color: var(--text);
}

/* ---------- Footer (gradient line removed; logo-chip white bg removed) ---------- */
.footer {
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(32,69,155,.10), transparent 60%),
    var(--graphite);
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-grid { display: grid; gap: 48px; }
.footer h4 {
  font-family: var(--font-sans); font-weight: 500; font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.footer a, .footer p { color: var(--cold); font-size: .88rem; line-height: 1.8; }
.footer a { transition: color var(--dur-s) var(--ease); position: relative; }
.footer a:hover { color: var(--text); }
.footer li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: var(--cold-dim); font-size: .8rem; margin: 0; }

/* Mobile footer tweaks */
@media (max-width: 640px) {
  .footer-grid > div:nth-child(2) ul,
  .footer-grid > div:nth-child(3) ul {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
  }
  .footer-grid > div:nth-child(2) li,
  .footer-grid > div:nth-child(3) li { margin-bottom: 0; }

  .footer-bottom { justify-content: center; text-align: center; gap: 8px; }
  .footer-bottom p { color: var(--mist); font-size: .82rem; }
}

/* Footer logo — clean transparent container, no white bg, no caption text */
.footer-logo {
  display: inline-flex; align-items: center;
  padding: 0;
  margin-bottom: 18px;
}
.footer-logo img { height: 100px; width: auto; filter: none; }

/* ---------- Home hero: right-side logo-only mark ---------- */
.hero-mark {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 64px);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(32,69,155,.45), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(30,156,206,.25), transparent 60%),
    linear-gradient(180deg, rgba(18,24,38,.85), rgba(8,13,24,.85));
  border: 1px solid var(--line-brand);
  box-shadow:
    0 30px 80px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.hero-mark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 80%);
  opacity: .7;
}
.hero-mark::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(32,69,155,.55), transparent 70%);
  filter: blur(4px);
  animation: float-y 7s var(--ease) infinite;
}
.hero-mark img {
  position: relative; z-index: 2;
  width: 78%; max-width: 360px; height: auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.55));
}

/* ---------- LineCard hero: 4-element stats grid (to the right of copy) · 2 rows × 2 cols, outer border removed, no left accent bar ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.stats-grid .sg {
  position: relative;
  padding: 18px 18px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00)),
    linear-gradient(180deg, var(--slate), var(--graphite));
  border: 1px solid var(--line);
  transition: border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
  overflow: hidden;
}
.stats-grid .sg:hover {
  border-color: var(--line-brand);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.stats-grid .sg .sg-k {
  font-family: var(--font-sans);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cold);
  display: block; margin-bottom: 8px;
}
.stats-grid .sg .sg-v {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.25;
}

/* ---------- Industries: horizontal sub-nav (sticky below main nav on scroll) ----------
   The aside uses position: sticky; top: var(--nav-h). Only paint props
   (background, backdrop-filter, border, shadow) change between normal /
   stuck states — layout props (padding, margin, height) stay identical,
   so there is no layout jump when the bar pins.                           */
.industry-side-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 36px;
  /* Fixed padding across all states — changing this is the #1 cause of sticky "jump".
     14px works on mobile and compresses visually nicely on desktop without reflow. */
  padding: 14px 0;
  /* Transparent while in its natural position — the frosted background only appears
     once the bar sticks on scroll (.is-stuck below). */
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  /* NO transition on padding / transform / position related props. Only visual decoration
     can transition. This is the strict guarantee for zero-jump sticky behavior. */
  transition:
    box-shadow .35s var(--ease),
    border-color .35s var(--ease),
    background-color .35s var(--ease),
    -webkit-backdrop-filter .35s var(--ease),
    backdrop-filter .35s var(--ease);
  will-change: background-color, backdrop-filter, border-color;
}

/* Keep the inner .container in sync with page content containers.
   THIS is the single horizontal scroll container (ul must NOT scroll — see below). */
.industry-side-nav > .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto !important;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
}
.industry-side-nav > .container::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------------
   STUCK ENHANCEMENT — ONLY visual props change. Height / padding / margins are fixed.
   ------------------------------------------------------------------ */
.industry-side-nav.is-stuck {
  /* padding unchanged (no jump) */
  background-color: rgba(7, 10, 20, 0.74);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-top: 1px solid rgba(32, 69, 155, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(30, 156, 206, 0.12);
}
/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .industry-side-nav,
  .industry-side-nav.is-stuck { transition: none !important; }
}

/* Icon + name layout inside each anchor */
.industry-side-nav a .isn-icon {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  color: var(--cyan);
  opacity: .9;
  transition: color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}

.industry-side-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  /* flex: 0 0 auto — NEVER stretch the row. Content (pills) determines width.
     This is what allows .container's overflow-x to actually scroll. */
  flex: none;
  min-width: 0;
  max-width: none;
  overflow-x: visible !important;
  padding-inline: 18px;
}

.industry-side-nav ul li { margin: 0; scroll-snap-align: center; }
.industry-side-nav a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  /* Pill rounding on the buttons for hover/active */
  border-radius: 999px;
  color: var(--mist);
  font-family: var(--font-sans);
  font-weight: 600; font-size: .88rem;
  white-space: nowrap;
  position: relative;
  transition:
    color var(--dur-s) var(--ease),
    background var(--dur-s) var(--ease),
    box-shadow var(--dur-s) var(--ease);
  border: 1px solid transparent;
}

/* NO underline accent bar below text on hover/active — removed per request */
.industry-side-nav a::after { display: none; content: none; }

.industry-side-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.06);
}
.industry-side-nav a:hover .isn-icon { color: #fff; transform: translateY(-1px); }

/* Active: soft brand pill with rounded corners (matches full rounded-pill style) */
.industry-side-nav a.is-active {
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(32,69,155,.72), rgba(30,156,206,.28));
  border: 1px solid var(--line-brand);
  box-shadow: 0 10px 30px rgba(32,69,155,.26), inset 0 1px 0 rgba(255,255,255,.06);
}
.industry-side-nav a.is-active .isn-icon {
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(30,156,206,.65));
}

/* Responsive: aside keeps identical padding in ALL states — no height shifts at any BP.
   Only margins/gap shrink to accommodate smaller screens.                          */
@media (min-width: 768px) {
  .industry-side-nav {
    padding: 14px 0;   /* intentionally unchanged vs base — no jump between BP on resize */
    margin: 0 0 44px;
  }
  .industry-side-nav.is-stuck { padding: 14px 0; }
  .industry-side-nav ul { gap: 14px; }
  .industry-side-nav a { padding: 12px 22px; font-size: .9rem; }
  .industry-side-nav a .isn-icon { width: 22px; height: 22px; flex-basis: 22px; }
}

/* Tablet */
@media (max-width: 960px) {
  .industry-side-nav {
    gap: 0;
    padding: 12px 0;    /* consistent between sticky & stuck */
    margin: 0 0 24px;
    border-radius: 0;
  }
  .industry-side-nav.is-stuck { padding: 12px 0; }
  /* Inherit the global .container padding so the pill row aligns with
     <section> .container content below (no extra shrinkage). */
  .industry-side-nav > .container { padding-inline: inherit; }
  .industry-side-nav ul { padding-inline: 0; gap: 8px; }
  .industry-side-nav a { padding: 10px 14px; font-size: .82rem; border-radius: 999px; }
}

/* Mobile */
@media (max-width: 640px) {
  .industry-side-nav {
    flex-wrap: nowrap;
    gap: 0;
    padding: 10px 0;    /* consistent between sticky & stuck */
    margin: 0 0 20px;
    border-radius: 0;
    max-width: 100%;
  }
  .industry-side-nav.is-stuck { padding: 10px 0; }
  /* Keep container gutters identical to <section> .container. */
  .industry-side-nav > .container { padding-inline: inherit; scroll-padding-inline: 0; }
  .industry-side-nav ul {
    order: 0; width: auto;
    justify-content: flex-start;
    padding: 0 12px;   /* breathing room at scroll edges */
    gap: 6px;
  }
  .industry-side-nav a { padding: 8px 10px; font-size: .78rem; gap: 6px; border-radius: 999px; white-space: nowrap; }
  .industry-side-nav a .isn-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .industry-side-nav.is-stuck { border-radius: 0; }
}

/* ---------- RFQ modal (popup form) ---------- */
.rfq-modal {
  position: fixed; inset: 0;
  z-index: 120;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.rfq-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .35s var(--ease), visibility 0s linear 0s;
}
.rfq-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(32,69,155,.35), transparent 55%),
    rgba(2,6,14,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rfq-panel {
  position: relative;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(32,69,155,.35), transparent 55%),
    linear-gradient(180deg, #0d1426, #070c18);
  border: 1px solid var(--line-brand);
  border-radius: var(--r-xl);
  padding: 44px 42px 32px;
  box-shadow:
    0 60px 120px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .35s var(--ease);
}
.rfq-modal.is-open .rfq-panel {
  transform: none;
  opacity: 1;
}
.rfq-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-soft);
  color: var(--mist);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--dur-s) var(--ease);
}
.rfq-close:hover { color: #fff; background: rgba(255,255,255,.1); border-color: var(--line); }
.rfq-close svg { width: 16px; height: 16px; }
.rfq-head { margin-bottom: 22px; }
.rfq-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -.015em;
  color: var(--text);
}
.rfq-form { display: grid; gap: 16px; }
.rfq-form .rfq-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.rfq-form .rfq-field-full { grid-column: 1 / -1; }
.rfq-form .rfq-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cold);
}
.rfq-form .rfq-label {
  display: block;
  font-family: var(--font-sans);
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cold);
}
.rfq-form input, .rfq-form textarea, .rfq-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-hard);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
  letter-spacing: 0;
}
.rfq-form textarea { min-height: 110px; resize: vertical; }
.rfq-form input:focus, .rfq-form textarea:focus, .rfq-form select:focus {
  outline: none;
  border-color: var(--brand-bright);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(32,69,155,.28);
}
.rfq-form small.muted, .rfq-form .rfq-help {
  font-family: var(--font-sans);
  text-transform: none; letter-spacing: 0;
  color: var(--cold-dim); font-size: .78rem; line-height: 1.6;
}
.rfq-foot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.rfq-foot .rfq-help { margin: 0; flex: 1 1 260px; max-width: 64%; }
.rfq-foot .btn { width: auto; flex: 0 0 auto; margin-top: 10px; }
@media (max-width: 640px) {
  .rfq-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 40px);
    padding: 0;
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
  }
  .rfq-head { flex: 0 0 auto; padding: 20px 18px 0; margin-bottom: 12px; overflow: hidden; }
  .rfq-head .eyebrow { font-size: .65rem; letter-spacing: .18em; }
  .rfq-head h2 { font-size: 1.3rem !important; line-height: 1.15; margin: 6px 0 0 !important; }
  .rfq-head .muted { display: none; }
  .rfq-form {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 18px 16px;
    min-height: 0;
  }
  .rfq-form .rfq-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rfq-form .rfq-field { gap: 4px; }
  .rfq-form input, .rfq-form select { padding: 10px 12px; }
  .rfq-form textarea { min-height: 80px; }
  .rfq-foot {
    flex: 0 0 auto;
    flex-direction: column; align-items: stretch;
    padding: 14px 18px 18px;
    background: #070c18;
    border-top: 1px solid var(--line-soft);
  }
  .rfq-foot .rfq-help { flex: none; max-width: 100%; font-size: .72rem; margin: 0 0 10px; }
  .rfq-foot .btn { width: 100%; justify-content: center; margin-top: 0; }
}
@media (max-width: 380px) {
  .rfq-form .rfq-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Animations / Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .28s; }
.reveal[data-delay="4"] { transition-delay: .38s; }
.reveal[data-delay="5"] { transition-delay: .48s; }
.reveal[data-delay="6"] { transition-delay: .58s; }

/* Line card grid staggered reveal — auto-stagger */
.brand-card {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform, opacity, filter;
}
.brand-card.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Filter re-appear animation */
.brand-card.filter-show { animation: filterIn .5s var(--ease) both; }
@keyframes filterIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-line { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .brand-card { opacity: 1; transform: none; filter: blur(0); }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
  /* NOTE: Legacy side-nav overrides removed; new full-width horizontal bar is defined above
     and its own responsive blocks are under the industry-side-nav section. */
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .cta-band { padding: 36px 22px; border-radius: var(--r-lg); }
  .strength { gap: 14px; }
  .strength .s-num { width: 36px; height: 36px; font-size: .75rem; }
  .footer-logo img { height: 100px; }
  .hero-mark {
    max-width: 260px;
    margin: 0 auto;
  }
  .stats-grid {
    margin-top: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .ph { min-height: 0 !important; height: auto !important; aspect-ratio: 4/3; }
}
