/* ==========================================================================
   NEXHUB Theme — style-nexhub.css
   Brand: Crimson red #C8102E · Near-black #0D0D0D · White · Geometric triangles
   Typography: Barlow (headings, heavy) · Inter (body)
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  --nh-red:        #C8102E;
  --nh-red-dark:   #A00D24;
  --nh-red-light:  #E8244A;
  --nh-black:      #0D0D0D;
  --nh-dark:       #141414;
  --nh-dark-2:     #1E1E1E;
  --nh-gray-900:   #1C1C1C;
  --nh-gray-700:   #3D3D3D;
  --nh-gray-500:   #787878;
  --nh-gray-300:   #C0C0C0;
  --nh-gray-200:   #E8E8E8;
  --nh-gray-100:   #F4F4F4;
  --nh-white:      #FFFFFF;

  --nh-font-head:  'Barlow', 'Inter', system-ui, sans-serif;
  --nh-font-body:  'Inter', system-ui, sans-serif;

  --nh-radius:     4px;
  --nh-radius-lg:  8px;

  --nh-transition: 0.2s ease;
  --nh-shadow:     0 4px 24px rgba(0,0,0,0.12);
  --nh-shadow-red: 0 4px 24px rgba(200,16,46,0.3);

  --nh-max-w:      1200px;
  --nh-section-v:  96px;

  /* Theme bridge variables */
  --theme-brand: #C8102E;
  --theme-brand-dark: #A00D24;
  --theme-brand-light: rgba(200, 16, 46, 0.12);
  --theme-bg: #0D0D0D;
  --theme-bg-light: #141414;
  --theme-text: #FFFFFF;
  --theme-text-secondary: #C0C0C0;
  --theme-text-muted: #787878;
  --theme-border: #3D3D3D;
  --theme-font-body: 'Inter', system-ui, sans-serif;
  --theme-font-heading: 'Barlow', 'Inter', system-ui, sans-serif;
  --theme-radius: 4px;
  --theme-container-max: 1200px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body.nh-body {
  font-family: var(--nh-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--nh-gray-900);
  background: var(--nh-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
.nh-h1, h1.nh-h1 {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--nh-white);
}
.nh-h2, h2.nh-h2 {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--nh-black);
}
.nh-h2--light { color: var(--nh-white); }

.nh-h3, h3.nh-h3 {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--nh-black);
}
.nh-h3--light { color: var(--nh-white); }

.nh-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--nh-gray-700);
}
.nh-lead--light { color: rgba(255,255,255,0.82); }

/* Section heading with red underline */
.nh-section-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--nh-black);
  padding-bottom: 14px;
  position: relative;
  display: inline-block;
}
.nh-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 4px;
  background: var(--nh-red);
  border-radius: 2px;
}
.nh-section-title--light { color: var(--nh-white); }
.nh-section-title--center {
  display: block;
  text-align: center;
}
.nh-section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.nh-eyebrow {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nh-red);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout Helpers ─────────────────────────────────────────────────────────── */
.nh-container {
  max-width: var(--nh-max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .nh-container { padding: 0 40px; } }
@media (min-width: 1280px) { .nh-container { padding: 0 60px; } }

.nh-section {
  padding: var(--nh-section-v) 0;
  position: relative;
}
.nh-section--dark {
  background: var(--nh-dark);
  color: var(--nh-white);
}
.nh-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.nh-section--black {
  background: var(--nh-black);
  color: var(--nh-white);
}
.nh-section--gray {
  background: var(--nh-gray-100);
}

/* ── Geometric Triangle Decorators ──────────────────────────────────────────── */
.nh-tri-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.nh-tri {
  position: absolute;
}
/* Gray triangles — light variant */
.nh-tri--gray-tr {
  top: -80px; right: -60px;
  width: 420px; height: 420px;
  background: var(--nh-gray-200);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(20deg);
  opacity: 0.7;
}
.nh-tri--gray-bl {
  bottom: -100px; left: -80px;
  width: 360px; height: 360px;
  background: var(--nh-gray-200);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-35deg);
  opacity: 0.6;
}
.nh-tri--gray-br {
  bottom: -60px; right: 40px;
  width: 280px; height: 280px;
  background: rgba(200,16,46,0.08);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(10deg);
}
/* Red triangles */
.nh-tri--red-tl {
  top: -40px; left: -40px;
  width: 300px; height: 300px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-15deg);
  opacity: 0.12;
}
.nh-tri--red-bl {
  bottom: 0; left: -50px;
  width: 380px; height: 380px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(25deg);
  opacity: 0.15;
}
/* Outline triangles */
.nh-tri--outline-tl {
  top: 20px; left: 20px;
  width: 200px; height: 200px;
  border: 1.5px solid rgba(0,0,0,0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-10deg);
}
.nh-tri--outline-tr {
  top: 30px; right: 60px;
  width: 180px; height: 180px;
  border: 1.5px solid rgba(255,255,255,0.15);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(15deg);
}
.nh-tri--outline-c {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(8deg);
  width: 240px; height: 240px;
  border: 1px solid rgba(255,255,255,0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
/* All content above triangles */
.nh-section > .nh-container,
.nh-section > *:not(.nh-tri-wrap) { position: relative; z-index: 1; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.nh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--nh-red);
  color: var(--nh-white);
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--nh-radius);
  transition: background var(--nh-transition), transform var(--nh-transition), box-shadow var(--nh-transition);
}
.nh-btn-primary:hover {
  background: var(--nh-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--nh-shadow-red);
}
.nh-btn-sm { padding: 10px 20px; font-size: 0.82rem; }

.nh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid var(--nh-white);
  color: var(--nh-white);
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--nh-radius);
  background: transparent;
  transition: background var(--nh-transition), color var(--nh-transition), transform var(--nh-transition);
}
.nh-btn-ghost:hover {
  background: var(--nh-white);
  color: var(--nh-black);
  transform: translateY(-1px);
}
.nh-btn-ghost--dark {
  border-color: var(--nh-black);
  color: var(--nh-black);
}
.nh-btn-ghost--dark:hover {
  background: var(--nh-black);
  color: var(--nh-white);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.nh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nh-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--nh-transition);
}
.nh-header--scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.nh-header-inner {
  max-width: var(--nh-max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nh-header-inner { padding: 0 40px; } }
@media (min-width: 1280px) { .nh-header-inner { padding: 0 60px; } }

/* Logo */
.nh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nh-logo-text {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--nh-white);
  text-transform: uppercase;
}

/* Desktop nav */
.nh-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 900px) { .nh-nav { display: flex; } }

.nh-nav-link {
  padding: 8px 14px;
  font-family: var(--nh-font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  border-radius: var(--nh-radius);
  transition: color var(--nh-transition), background var(--nh-transition);
  text-transform: uppercase;
}
.nh-nav-link:hover,
.nh-nav-link--active {
  color: var(--nh-white);
  background: rgba(255,255,255,0.07);
}
.nh-nav-link--active {
  color: var(--nh-red);
}

/* Header actions */
.nh-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.nh-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}
@media (min-width: 900px) { .nh-hamburger { display: none; } }

.nh-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--nh-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nh-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nh-hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nh-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nh-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--nh-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nh-mobile-menu--open { display: flex; }

.nh-mobile-link {
  padding: 12px 0;
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--nh-transition);
}
.nh-mobile-link:hover { color: var(--nh-red); }

/* Page content padding for fixed header */
main#main-content { padding-top: 68px; }

/* ── Hero Section ───────────────────────────────────────────────────────────── */
.nh-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--nh-black);
  overflow: hidden;
}
.nh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nh-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
/* Geometric triangle overlays on hero */
.nh-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.9) 40%, rgba(200,16,46,0.15) 100%);
}
/* Red triangle accent — top right */
.nh-hero-tri-tr {
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(25deg);
  opacity: 0.18;
  z-index: 1;
}
/* Red triangle — bottom left */
.nh-hero-tri-bl {
  position: absolute;
  bottom: -80px; left: -60px;
  width: 400px; height: 400px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-20deg);
  opacity: 0.12;
  z-index: 1;
}
/* Outline triangle */
.nh-hero-tri-outline {
  position: absolute;
  top: 15%; right: 8%;
  width: 280px; height: 280px;
  border: 1.5px solid rgba(255,255,255,0.12);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-10deg);
  z-index: 1;
}

.nh-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.nh-hero-inner {
  max-width: var(--nh-max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
@media (min-width: 768px) { .nh-hero-inner { padding: 100px 40px; } }
@media (min-width: 1280px) { .nh-hero-inner { padding: 120px 60px; } }

.nh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(200,16,46,0.4);
  background: rgba(200,16,46,0.1);
  border-radius: 100px;
  margin-bottom: 28px;
}
.nh-hero-badge span {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nh-red-light);
}
.nh-hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nh-red);
  animation: nh-pulse 2s infinite;
}
@keyframes nh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nh-hero-title {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--nh-white);
  max-width: 900px;
  margin-bottom: 28px;
}
.nh-hero-title em {
  font-style: normal;
  color: var(--nh-red);
}

.nh-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
}

.nh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.nh-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 700px;
}
.nh-hero-stat-num {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--nh-white);
}
.nh-hero-stat-num span { color: var(--nh-red); }
.nh-hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Services Grid ──────────────────────────────────────────────────────────── */
.nh-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 640px) { .nh-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .nh-services-grid {
    /* Use --nh-svc-count to auto-size columns; clamp to max 4 per row */
    grid-template-columns: repeat(min(var(--nh-svc-count, 4), 4), 1fr);
  }
}

.nh-service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--nh-dark-2);
  overflow: hidden;
  transition: background var(--nh-transition);
}
.nh-service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--nh-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nh-service-card:hover { background: #222; }
.nh-service-card:hover::before { transform: scaleX(1); }

.nh-service-num {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: 3rem;
  color: rgba(200,16,46,0.15);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--nh-transition);
}
.nh-service-card:hover .nh-service-num { color: rgba(200,16,46,0.4); }

.nh-service-icon {
  width: 48px; height: 48px;
  background: rgba(200,16,46,0.1);
  border-radius: var(--nh-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nh-red);
  margin-bottom: 20px;
  transition: background var(--nh-transition);
}
.nh-service-card:hover .nh-service-icon { background: var(--nh-red); color: var(--nh-white); }

.nh-service-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--nh-white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.nh-service-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.nh-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nh-red);
  transition: gap var(--nh-transition);
}
.nh-service-card:hover .nh-service-link { gap: 10px; }

/* ── Feature / Value Cards ──────────────────────────────────────────────────── */
.nh-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .nh-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nh-features-grid { grid-template-columns: repeat(3, 1fr); } }

.nh-feature-card {
  padding: 36px 28px;
  border: 1px solid var(--nh-gray-200);
  border-radius: var(--nh-radius-lg);
  background: var(--nh-white);
  transition: border-color var(--nh-transition), box-shadow var(--nh-transition), transform var(--nh-transition);
}
.nh-feature-card:hover {
  border-color: var(--nh-red);
  box-shadow: 0 8px 32px rgba(200,16,46,0.1);
  transform: translateY(-3px);
}

.nh-feature-card--dark {
  background: var(--nh-dark-2);
  border-color: rgba(255,255,255,0.08);
}
.nh-feature-card--dark:hover { border-color: var(--nh-red); }

.nh-feature-num {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--nh-red);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.nh-feature-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--nh-black);
  margin-bottom: 10px;
}
.nh-feature-card--dark .nh-feature-title { color: var(--nh-white); }

.nh-feature-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--nh-gray-700);
}
.nh-feature-card--dark .nh-feature-desc { color: rgba(255,255,255,0.55); }

/* ── Process Steps ──────────────────────────────────────────────────────────── */
.nh-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
@media (min-width: 768px) { .nh-process-steps { grid-template-columns: repeat(2, 1fr); gap: 2px; } }
@media (min-width: 1024px) {
  .nh-process-steps {
    /* Use step count from CSS custom property; default 4 */
    grid-template-columns: repeat(var(--nh-step-count, 4), 1fr);
  }
  /* When < 5 steps: center the steps row with max-width */
  .nh-process-steps--centered {
    max-width: calc(var(--nh-step-count, 4) * 280px);
    margin-left: auto;
    margin-right: auto;
  }
}

.nh-process-step {
  padding: 36px 28px;
  background: var(--nh-dark-2);
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.nh-process-step:last-child { border-right: none; }

.nh-process-step-num {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: 3rem;
  color: var(--nh-red);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}
.nh-process-step-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--nh-white);
  margin-bottom: 8px;
}
.nh-process-step-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

/* ── About / Split layout ───────────────────────────────────────────────────── */
.nh-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .nh-split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .nh-split--flip .nh-split-visual { order: -1; }
}

.nh-split-visual {
  position: relative;
}
.nh-split-visual img {
  width: 100%;
  border-radius: var(--nh-radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
/* Red accent triangle on image */
.nh-split-visual::after {
  content: '';
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(15deg);
  opacity: 0.85;
  z-index: -1;
}
.nh-split-visual::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 100px; height: 100px;
  background: var(--nh-gray-200);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-20deg);
  z-index: -1;
}

.nh-split-content { }
.nh-split-content .nh-section-title { margin-bottom: 20px; }

/* ── Stats Bar ──────────────────────────────────────────────────────────────── */
.nh-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
@media (min-width: 640px) { .nh-stats-bar { grid-template-columns: repeat(4, 1fr); } }

.nh-stat-item {
  padding: 36px 28px;
  background: var(--nh-red);
  text-align: center;
}
.nh-stat-item:nth-child(even) { background: var(--nh-red-dark); }

.nh-stat-num {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--nh-white);
  line-height: 1;
  margin-bottom: 6px;
}
.nh-stat-label {
  font-family: var(--nh-font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ── CTA Section ────────────────────────────────────────────────────────────── */
.nh-cta-section {
  background: var(--nh-black);
  padding: var(--nh-section-v) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.nh-cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.nh-cta-title {
  font-family: var(--nh-font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nh-white);
  max-width: 640px;
  margin: 0 auto 20px;
}
.nh-cta-title em { font-style: normal; color: var(--nh-red); }
.nh-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 40px;
}
.nh-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── Contact Form ───────────────────────────────────────────────────────────── */
.nh-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) { .nh-contact-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; } }

.nh-contact-info-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nh-red);
  margin-bottom: 8px;
}
.nh-contact-info-value {
  font-size: 1rem;
  color: var(--nh-gray-900);
  margin-bottom: 24px;
}

.nh-form { display: grid; gap: 20px; }
.nh-form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .nh-form-row { grid-template-columns: 1fr 1fr; } }

.nh-form-group { display: flex; flex-direction: column; gap: 6px; }
.nh-form-label {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nh-gray-700);
}
.nh-form-input,
.nh-form-textarea,
.nh-form-select {
  padding: 13px 16px;
  border: 2px solid var(--nh-gray-200);
  border-radius: var(--nh-radius);
  background: var(--nh-white);
  font-family: var(--nh-font-body);
  font-size: 0.95rem;
  color: var(--nh-gray-900);
  transition: border-color var(--nh-transition), box-shadow var(--nh-transition);
  outline: none;
  width: 100%;
}
.nh-form-input:focus,
.nh-form-textarea:focus,
.nh-form-select:focus {
  border-color: var(--nh-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.nh-form-textarea { min-height: 140px; resize: vertical; }

.nh-form-note {
  font-size: 0.8rem;
  color: var(--nh-gray-500);
  text-align: center;
  margin-top: -4px;
}
.nh-form-success {
  padding: 16px 20px;
  background: rgba(200,16,46,0.06);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--nh-radius);
  color: var(--nh-red-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

/* ── Blog Cards ─────────────────────────────────────────────────────────────── */
.nh-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .nh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nh-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.nh-blog-card {
  border-radius: var(--nh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nh-gray-200);
  transition: box-shadow var(--nh-transition), transform var(--nh-transition);
}
.nh-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.nh-blog-card-img {
  aspect-ratio: 16/9;
  background: var(--nh-gray-200);
  overflow: hidden;
}
.nh-blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nh-blog-card:hover .nh-blog-card-img img { transform: scale(1.04); }
.nh-blog-card-body { padding: 24px; }
.nh-blog-card-cat {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nh-red);
  margin-bottom: 8px;
}
.nh-blog-card-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--nh-black);
  margin-bottom: 10px;
  transition: color var(--nh-transition);
}
.nh-blog-card:hover .nh-blog-card-title { color: var(--nh-red); }
.nh-blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--nh-gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nh-blog-card-meta {
  font-size: 0.78rem;
  color: var(--nh-gray-500);
  display: flex;
  gap: 12px;
}

/* ── Project Cards ──────────────────────────────────────────────────────────── */
.nh-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .nh-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nh-projects-grid { grid-template-columns: repeat(3, 1fr); } }

.nh-project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--nh-radius-lg);
  aspect-ratio: 4/3;
  background: var(--nh-dark-2);
}
.nh-project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nh-project-card:hover img { transform: scale(1.06); }
.nh-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 30%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nh-project-card:hover .nh-project-card-overlay { opacity: 1; }
.nh-project-card-always {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 100%);
}
.nh-project-card-tag {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nh-red);
  margin-bottom: 4px;
}
.nh-project-card-title {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--nh-white);
  line-height: 1.3;
}

/* ── Project List Cards ─────────────────────────────────────────────────────── */
.nh-project-list-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* ── Page Hero (inner pages) ────────────────────────────────────────────────── */
.nh-page-hero {
  background: var(--nh-black);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.nh-page-hero-tri {
  position: absolute;
  top: -40px; right: -40px;
  width: 360px; height: 360px;
  background: var(--nh-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(20deg);
  opacity: 0.14;
}
.nh-page-hero-content { position: relative; z-index: 1; }

.nh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.nh-breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--nh-transition); }
.nh-breadcrumb a:hover { color: var(--nh-red); }
.nh-breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ── Legal / Text Pages ─────────────────────────────────────────────────────── */
.nh-prose {
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--nh-gray-900);
}
.nh-prose h2 {
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--nh-black);
  margin: 40px 0 12px;
}
.nh-prose p { margin-bottom: 16px; }
.nh-prose a { color: var(--nh-red); text-decoration: underline; }
.nh-prose ul { padding-left: 20px; margin-bottom: 16px; }
.nh-prose ul li { list-style: disc; margin-bottom: 6px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.nh-footer {
  background: var(--nh-black);
  position: relative;
  overflow: hidden;
}
.nh-footer-inner {
  max-width: var(--nh-max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .nh-footer-inner { padding: 0 40px; } }
@media (min-width: 1280px) { .nh-footer-inner { padding: 0 60px; } }

.nh-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) { .nh-footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nh-footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }

.nh-footer-brand .nh-logo { margin-bottom: 16px; }

.nh-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
  margin-bottom: 20px;
}

.nh-footer-socials {
  display: flex;
  gap: 10px;
}
.nh-social-link {
  width: 36px; height: 36px;
  border-radius: var(--nh-radius);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--nh-transition), color var(--nh-transition);
}
.nh-social-link:hover { background: var(--nh-red); color: var(--nh-white); }

.nh-footer-col-title {
  font-family: var(--nh-font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.nh-footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color var(--nh-transition);
}
.nh-footer-link:hover { color: var(--nh-white); }

.nh-footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .nh-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.nh-footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.nh-footer-legal {
  display: flex;
  gap: 20px;
}
.nh-footer-legal-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--nh-transition);
}
.nh-footer-legal-link:hover { color: var(--nh-white); }

/* ── Footer triangle — hide on mobile so it doesn't overlay footer nav links ─── */
@media (max-width: 767px) {
  .nh-footer .nh-tri--gray-tr,
  .nh-footer .nh-tri--gray-bl,
  .nh-footer .nh-tri--outline-tl { display: none; }
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.nh-text-center { text-align: center; }
.nh-mt-4  { margin-top: 16px; }
.nh-mt-6  { margin-top: 24px; }
.nh-mt-8  { margin-top: 32px; }
.nh-mt-10 { margin-top: 40px; }
.nh-mt-12 { margin-top: 48px; }
.nh-mb-4  { margin-bottom: 16px; }
.nh-mb-6  { margin-bottom: 24px; }
.nh-mb-8  { margin-bottom: 32px; }
.nh-mb-10 { margin-bottom: 40px; }
.nh-mb-12 { margin-bottom: 48px; }
.nh-flex-center { display:flex; align-items:center; justify-content:center; gap:16px; }
.nh-flex-between { display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* ── Marquee ─────────────────────────────────────────────────────────────────── */
.nh-marquee-track {
  overflow: hidden;
  background: var(--nh-red);
  padding: 14px 0;
}
.nh-marquee-inner {
  display: flex;
  gap: 0;
  animation: nh-marquee 30s linear infinite;
  width: max-content;
}
@keyframes nh-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.nh-marquee-track:hover .nh-marquee-inner { animation-play-state: paused; }
.nh-marquee-item {
  padding: 0 32px;
  font-family: var(--nh-font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nh-marquee-item::after {
  content: '◆';
  font-size: 0.5rem;
  opacity: 0.6;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */

/* Keyframes */
@keyframes nh-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nh-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nh-fade-left {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes nh-fade-right {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes nh-scale-up {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes nh-line-grow {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}
@keyframes nh-line-grow-center {
  from { width: 0; opacity: 0; left: 50%; }
  to   { width: 48px; opacity: 1; left: 50%; transform: translateX(-50%); }
}
@keyframes nh-float {
  0%, 100% { transform: translateY(0) rotate(var(--nh-tri-rot, 20deg)); }
  50%       { transform: translateY(-18px) rotate(calc(var(--nh-tri-rot, 20deg) + 4deg)); }
}
@keyframes nh-float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--nh-tri-rot, -35deg)); }
  50%       { transform: translateY(14px) rotate(calc(var(--nh-tri-rot, -35deg) - 5deg)); }
}
@keyframes nh-tri-drift {
  0%, 100% { transform: rotate(var(--nh-tri-rot, 25deg)) translateY(0); }
  33%       { transform: rotate(calc(var(--nh-tri-rot, 25deg) + 8deg)) translateY(-12px); }
  66%       { transform: rotate(calc(var(--nh-tri-rot, 25deg) - 4deg)) translateY(8px); }
}
@keyframes nh-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
  50%       { box-shadow: 0 0 32px 8px rgba(200,16,46,0.25); }
}
@keyframes nh-underline-slide {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
@keyframes nh-count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nh-ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes nh-badge-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nh-hero-title-in {
  from { opacity: 0; transform: translateY(48px) skewY(1deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0); }
}

/* Inner page hero content animates in */
.nh-page-hero-content { animation: nh-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.nh-page-hero-tri     { animation: nh-tri-drift 18s ease-in-out infinite; --nh-tri-rot: 20deg; }

/* Hero cascade — each element animates in sequence */
.nh-hero-badge       { animation: nh-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.nh-hero-title       { animation: nh-hero-title-in 0.8s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.nh-hero-sub         { animation: nh-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.42s both; }
.nh-hero-actions     { animation: nh-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.56s both; }
.nh-hero-stats       { animation: nh-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.7s both; }

/* Floating triangles in hero */
.nh-hero-tri-tr      { animation: nh-tri-drift 14s ease-in-out infinite; --nh-tri-rot: 25deg; }
.nh-hero-tri-bl      { animation: nh-tri-drift 18s ease-in-out 2s infinite; --nh-tri-rot: -20deg; }
.nh-hero-tri-outline { animation: nh-float-slow 12s ease-in-out 1s infinite; --nh-tri-rot: -10deg; }

/* Floating triangles in sections */
.nh-tri--gray-tr  { animation: nh-float 16s ease-in-out infinite; --nh-tri-rot: 20deg; }
.nh-tri--gray-bl  { animation: nh-float-slow 20s ease-in-out 3s infinite; --nh-tri-rot: -35deg; }
.nh-tri--red-tl   { animation: nh-tri-drift 22s ease-in-out 1s infinite; --nh-tri-rot: -15deg; }
.nh-tri--red-bl   { animation: nh-float 18s ease-in-out 4s infinite; --nh-tri-rot: 25deg; }
.nh-tri--gray-tr[class*="footer"] { animation: none; }

/* Split visual triangle accents animate on scroll-reveal */
.nh-split-visual::after  { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.6s; }
.nh-split-visual::before { transition: transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.15s, opacity 0.8s; }

/* ── Scroll-Reveal System ──────────────────────────────────────────────────── */
/* Initial hidden state — applied via JS adding .nh-reveal to elements */
.nh-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--nh-reveal-delay, 0ms);
}
.nh-reveal--left {
  transform: translateX(-32px);
}
.nh-reveal--right {
  transform: translateX(32px);
}
.nh-reveal--scale {
  transform: scale(0.92);
}
.nh-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children — add to parent, children get auto-staggered */
.nh-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.nh-stagger.is-visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay: 0ms; }
.nh-stagger.is-visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay: 80ms; }
.nh-stagger.is-visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay: 160ms; }
.nh-stagger.is-visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay: 240ms; }
.nh-stagger.is-visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay: 320ms; }
.nh-stagger.is-visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay: 400ms; }
.nh-stagger.is-visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay: 480ms; }
.nh-stagger.is-visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay: 560ms; }

/* Section title underline animates on reveal */
.nh-section-title::after {
  animation: none;
  width: 48px;
}
.nh-reveal.is-visible .nh-section-title::after,
.nh-section-title.is-visible::after {
  animation: nh-line-grow 0.6s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

/* Stats counter animation class */
.nh-stat-num[data-count] {
  animation: nh-count-up 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* CTA glow pulse on the primary button */
.nh-cta-section .nh-btn-primary {
  animation: nh-glow-pulse 3s ease-in-out 2s infinite;
}
.nh-cta-section .nh-btn-primary:hover {
  animation: none;
}

/* Ripple effect on buttons */
.nh-btn-primary,
.nh-btn-ghost {
  position: relative;
  overflow: hidden;
}
.nh-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: nh-ripple 0.5s linear;
  pointer-events: none;
  width: 60px; height: 60px;
  margin-top: -30px; margin-left: -30px;
}

/* Service card — icon pop on hover */
.nh-service-icon {
  transition: background var(--nh-transition), color var(--nh-transition),
              transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.nh-service-card:hover .nh-service-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Blog card image zoom — enhanced */
.nh-blog-card-img img {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

/* Feature card — lift with shadow */
.nh-feature-card {
  transition: border-color var(--nh-transition),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1),
              transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

/* Nav link underline slide */
.nh-nav-link {
  position: relative;
}
.nh-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--nh-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
  border-radius: 2px;
}
.nh-nav-link:hover::after,
.nh-nav-link--active::after { transform: scaleX(1); }

/* Page load — fade in body */
.nh-body { animation: nh-fade-in 0.4s ease both; }

/* Stats bar items — scale in on reveal */
.nh-stats-bar .nh-stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
              transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.nh-stats-bar.is-visible .nh-stat-item:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.nh-stats-bar.is-visible .nh-stat-item:nth-child(2) { opacity:1; transform:none; transition-delay: 100ms; }
.nh-stats-bar.is-visible .nh-stat-item:nth-child(3) { opacity:1; transform:none; transition-delay: 200ms; }
.nh-stats-bar.is-visible .nh-stat-item:nth-child(4) { opacity:1; transform:none; transition-delay: 300ms; }

/* Process step — slide up in sequence */
.nh-process-steps .nh-process-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
              transform 0.5s cubic-bezier(0.22,1,0.36,1),
              background var(--nh-transition);
}
.nh-process-steps.is-visible .nh-process-step:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.nh-process-steps.is-visible .nh-process-step:nth-child(2) { opacity:1; transform:none; transition-delay: 100ms; }
.nh-process-steps.is-visible .nh-process-step:nth-child(3) { opacity:1; transform:none; transition-delay: 200ms; }
.nh-process-steps.is-visible .nh-process-step:nth-child(4) { opacity:1; transform:none; transition-delay: 300ms; }
.nh-process-steps.is-visible .nh-process-step:nth-child(5) { opacity:1; transform:none; transition-delay: 400ms; }

/* Services grid — fan in from bottom */
.nh-services-grid .nh-service-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1),
              background var(--nh-transition);
}
.nh-services-grid.is-visible .nh-service-card:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.nh-services-grid.is-visible .nh-service-card:nth-child(2) { opacity:1; transform:none; transition-delay: 100ms; }
.nh-services-grid.is-visible .nh-service-card:nth-child(3) { opacity:1; transform:none; transition-delay: 200ms; }
.nh-services-grid.is-visible .nh-service-card:nth-child(4) { opacity:1; transform:none; transition-delay: 300ms; }

/* Marquee — pause on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nh-marquee-inner      { animation: none; }
  .nh-hero-tri-tr,
  .nh-hero-tri-bl,
  .nh-hero-tri-outline,
  .nh-tri--gray-tr,
  .nh-tri--gray-bl,
  .nh-tri--red-tl,
  .nh-tri--red-bl        { animation: none; }
  .nh-reveal,
  .nh-stagger > *,
  .nh-stats-bar .nh-stat-item,
  .nh-process-steps .nh-process-step,
  .nh-services-grid .nh-service-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nh-hero-badge,
  .nh-hero-title,
  .nh-hero-sub,
  .nh-hero-actions,
  .nh-hero-stats { animation: none; opacity: 1; transform: none; }
  .nh-body { animation: none; }
  .nh-cta-section .nh-btn-primary { animation: none; }
}

/* ── Accessibility ───────────────────────────────────────────────────────────── */
.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;
}
:focus-visible {
  outline: 2px solid var(--nh-red);
  outline-offset: 2px;
}
