/* =============================================================================
   NORTHERN ENGINEERING, INC. — WordPress Theme Main Stylesheet
   Design: Mountain West Corporate
   Palette: Deep Navy Steel (#1B3A5C) + Sandstone Amber (#C8873A) + Limestone Off-White (#F4F1EC)
   Typography: Barlow Condensed (display) + Source Sans 3 (body) + JetBrains Mono (accent)
   ============================================================================= */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #1a1a1a;
    background-color: #F4F1EC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #1B3A5C;
}

/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
    --navy:       #1B3A5C;
    --navy-dark:  #0D1F30;
    --amber:      #C8873A;
    --amber-light:#D9994F;
    --limestone:  #F4F1EC;
    --white:      #ffffff;
    --steel:      #4A5568;
    --muted:      #8A9AB0;
    --border:     #E8E4DC;
    --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out:cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Container ────────────────────────────────────────────────────────────── */
.nei-container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 640px) {
    .nei-container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
    .nei-container { padding-left: 3rem; padding-right: 3rem; }
}

/* ── Typography Utilities ─────────────────────────────────────────────────── */
.font-display  { font-family: 'Barlow Condensed', sans-serif; }
.font-mono-accent { font-family: 'JetBrains Mono', monospace; }

.nei-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
}

.nei-amber-rule {
    display: block;
    width: 3rem;
    height: 2px;
    background-color: var(--amber);
    margin-bottom: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.nei-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--amber);
    color: #1a1a1a;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 160ms var(--ease-out);
    text-decoration: none;
    line-height: 1;
}
.nei-btn-primary:hover {
    background-color: var(--amber-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 135, 58, 0.35);
    color: #1a1a1a;
}
.nei-btn-primary:active { transform: scale(0.97) translateY(0); }

.nei-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 160ms var(--ease-out);
    text-decoration: none;
    line-height: 1;
}
.nei-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
}
.nei-btn-outline:active { transform: scale(0.97); }

.nei-btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--navy);
    color: #ffffff;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 160ms var(--ease-out);
    text-decoration: none;
    line-height: 1;
}
.nei-btn-navy:hover { background-color: #244a75; transform: translateY(-1px); color: #fff; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
#nei-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
#nei-header.transparent { background: transparent; }
#nei-header.scrolled {
    background: rgba(13, 31, 48, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
#nei-header.solid { background: rgba(13, 31, 48, 0.97); }

.nei-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nei-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.nei-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.nei-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nei-logo-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
}
.nei-logo-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--amber);
    text-transform: uppercase;
}

.nei-nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
@media (min-width: 1024px) { .nei-nav-links { display: flex; } }

.nei-nav-links a {
    padding: 0.5rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 150ms;
    text-decoration: none;
}
.nei-nav-links a:hover,
.nei-nav-links a.active { color: var(--amber); }

.nei-nav-cta { margin-left: 1rem; }
.nei-nav-cta .nei-btn-primary { padding: 0.6rem 1.25rem; font-size: 0.8125rem; }

/* Mobile hamburger */
.nei-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
@media (min-width: 1024px) { .nei-hamburger { display: none; } }
.nei-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 250ms var(--ease-out);
}
.nei-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nei-hamburger.open span:nth-child(2) { opacity: 0; }
.nei-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nei-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
}
.nei-mobile-menu.open { pointer-events: all; opacity: 1; }

.nei-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.nei-mobile-drawer {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: min(320px, 85vw);
    background: var(--navy-dark);
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}
.nei-mobile-menu.open .nei-mobile-drawer { transform: translateX(0); }

.nei-mobile-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--amber);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-decoration: none;
}
.nei-mobile-nav { display: flex; flex-direction: column; gap: 0; }
.nei-mobile-nav a {
    display: block;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 150ms;
    text-decoration: none;
}
.nei-mobile-nav a:hover,
.nei-mobile-nav a.active { color: var(--amber); }
.nei-mobile-cta { margin-top: 2rem; width: 100%; justify-content: center; }

/* ── Diagonal Divider ─────────────────────────────────────────────────────── */
.nei-divider { line-height: 0; }
.nei-divider svg { display: block; width: 100%; }

/* ── Scroll Animations ────────────────────────────────────────────────────── */
.nei-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.nei-fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .nei-fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Card Hover ───────────────────────────────────────────────────────────── */
.nei-card-hover {
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.nei-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12);
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.nei-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    overflow: hidden;
}
.nei-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.nei-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,31,48,0.90) 0%, rgba(13,31,48,0.70) 50%, rgba(13,31,48,0.30) 100%);
}
.nei-hero-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,31,48,0.60) 0%, transparent 50%);
}
.nei-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 6rem;
    padding-bottom: 4rem;
    max-width: 750px;
}
.nei-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.nei-hero h1 .accent { color: var(--amber); }
.nei-hero-sub {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: 2rem;
}
.nei-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.nei-hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}

/* Hero text entrance animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nei-hero-label   { animation: heroFadeUp 0.6s var(--ease-out) 0.1s both; }
.nei-hero-heading { animation: heroFadeUp 0.6s var(--ease-out) 0.25s both; }
.nei-hero-subtext { animation: heroFadeUp 0.6s var(--ease-out) 0.4s both; }
.nei-hero-buttons { animation: heroFadeUp 0.6s var(--ease-out) 0.55s both; }
.nei-hero-loc     { animation: heroFadeUp 0.6s var(--ease-out) 0.7s both; }

/* ── Stats Band ───────────────────────────────────────────────────────────── */
.nei-stats { background: var(--navy); padding: 3.5rem 0; }
.nei-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 1024px) { .nei-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.nei-stat { text-align: center; }
.nei-stat-icon { display: flex; justify-content: center; margin-bottom: 0.5rem; color: var(--amber); }
.nei-stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #ffffff;
    line-height: 1;
}
.nei-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

/* ── Section Styles ───────────────────────────────────────────────────────── */
.nei-section { padding: 5rem 0; }
.nei-section-dark { background: var(--navy); }
.nei-section-darker { background: var(--navy-dark); }
.nei-section-white { background: #ffffff; }
.nei-section-limestone { background: var(--limestone); }

.nei-section-header { margin-bottom: 3rem; }
.nei-section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-top: 0.75rem;
}
.nei-section-dark .nei-section-header h2,
.nei-section-darker .nei-section-header h2 { color: #ffffff; }

/* ── Services Grid ────────────────────────────────────────────────────────── */
.nei-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px)  { .nei-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nei-services-grid { grid-template-columns: repeat(3, 1fr); } }

.nei-service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1.75rem;
    display: block;
    text-decoration: none;
    color: inherit;
}
.nei-service-card:hover { color: inherit; }
.nei-service-icon { font-size: 2rem; margin-bottom: 1rem; }
.nei-service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.nei-service-card p { font-size: 0.875rem; color: var(--steel); line-height: 1.65; margin-bottom: 1rem; }
.nei-service-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--amber);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap 150ms;
}
.nei-service-card:hover .nei-service-link { gap: 0.5rem; }

/* ── Projects Grid ────────────────────────────────────────────────────────── */
.nei-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px)  { .nei-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nei-projects-grid { grid-template-columns: repeat(3, 1fr); } }

.nei-project-card { background: var(--navy-dark); overflow: hidden; }
.nei-project-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.nei-project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--ease-out);
}
.nei-project-card:hover .nei-project-card-img img { transform: scale(1.05); }
.nei-project-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,31,48,0.8), transparent);
}
.nei-project-card-type {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
}
.nei-project-card-body { padding: 1.25rem; }
.nei-project-card-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.nei-project-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}
.nei-project-card-body p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ── Featured Badge ───────────────────────────────────────────────────────── */
.nei-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nei-badge-amber { background: var(--amber); color: #1a1a1a; }
.nei-badge-navy  { background: var(--navy);  color: #ffffff; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.nei-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px)  { .nei-testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nei-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.nei-testimonial {
    background: #ffffff;
    border-left: 4px solid var(--amber);
    padding: 1.75rem;
}
.nei-testimonial blockquote {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--steel);
    font-style: italic;
    margin-bottom: 1.25rem;
}
.nei-testimonial-name { font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.nei-testimonial-project { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.nei-testimonial-scope { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--amber); margin-top: 0.5rem; }

/* ── Split Layout (Why NEI) ───────────────────────────────────────────────── */
.nei-split { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .nei-split { grid-template-columns: 1fr 1fr; } }

.nei-split-image { position: relative; }
.nei-split-image img { width: 100%; height: 420px; object-fit: cover; }
.nei-split-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--amber);
    padding: 1.5rem;
    width: 160px;
    display: none;
}
@media (min-width: 1024px) { .nei-split-accent { display: block; } }
.nei-split-accent-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 2rem; color: #ffffff; }
.nei-split-accent-sub { font-size: 0.75rem; color: rgba(255,255,255,0.8); margin-top: 0.25rem; line-height: 1.3; }

.nei-split-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
}
.nei-split-text p { color: var(--steel); line-height: 1.7; margin-bottom: 1.5rem; }
.nei-checklist { margin-bottom: 2rem; }
.nei-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--steel);
    margin-bottom: 0.75rem;
}
.nei-checklist li::before {
    content: '✓';
    color: var(--amber);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── CTA Band ─────────────────────────────────────────────────────────────── */
.nei-cta-band {
    position: relative;
    padding: 5rem 0;
    background: var(--navy-dark);
    overflow: hidden;
    text-align: center;
}
.nei-cta-band-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}
.nei-cta-band-content { position: relative; z-index: 10; }
.nei-cta-band h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.nei-cta-band p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.nei-cta-band-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.nei-cta-coord {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.2);
    margin-top: 3rem;
}

/* ── Page Hero (inner pages) ──────────────────────────────────────────────── */
.nei-page-hero {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 6rem;
    background: var(--navy);
    overflow: hidden;
}
.nei-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}
.nei-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 58, 92, 0.5);
}
.nei-page-hero-content { position: relative; z-index: 10; }
.nei-page-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    margin-top: 0.75rem;
}
.nei-page-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin-top: 1rem; line-height: 1.7; }

/* ── Service Detail Blocks ────────────────────────────────────────────────── */
.nei-service-block { margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border); }
.nei-service-block:last-child { border-bottom: none; margin-bottom: 0; }
.nei-service-block-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) { .nei-service-block-inner { grid-template-columns: 1fr 1fr; } }

.nei-service-block-img { position: relative; }
.nei-service-block-img img { width: 100%; height: 320px; object-fit: cover; }
.nei-service-block-num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--amber);
    padding: 0.2rem 0.6rem;
}
.nei-service-block-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}
.nei-service-block-text p { font-size: 0.875rem; color: var(--steel); line-height: 1.7; margin-bottom: 1.25rem; }
.nei-service-bullets { margin-bottom: 1.5rem; }
.nei-service-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--steel);
    margin-bottom: 0.5rem;
}
.nei-service-bullets li::before { content: '✓'; color: var(--amber); font-weight: 700; flex-shrink: 0; }

/* ── Team Cards ───────────────────────────────────────────────────────────── */
.nei-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .nei-team-grid { grid-template-columns: repeat(2, 1fr); } }

.nei-team-card { background: #ffffff; border: 1px solid var(--border); padding: 1.75rem; }
.nei-team-card-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--limestone); }
.nei-team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}
.nei-team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nei-team-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.25rem; }
.nei-team-card-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.nei-team-creds { display: flex; gap: 0.25rem; margin-top: 0.5rem; }
.nei-cred { background: var(--amber); color: #ffffff; font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.4rem; }
.nei-team-card p { font-size: 0.875rem; color: var(--steel); line-height: 1.65; margin-bottom: 1rem; }
.nei-team-specialties { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nei-specialty { background: var(--limestone); color: var(--navy); font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; }

/* ── Past Clients ─────────────────────────────────────────────────────────── */
.nei-clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px)  { .nei-clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .nei-clients-grid { grid-template-columns: repeat(5, 1fr); } }

.nei-client-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 1rem;
    text-align: center;
    transition: background 150ms;
}
.nei-client-item:hover { background: rgba(255,255,255,0.12); }
.nei-client-item svg { color: var(--amber); margin: 0 auto 0.5rem; }
.nei-client-item span { font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.75); line-height: 1.3; display: block; }

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.nei-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px)  { .nei-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nei-blog-grid { grid-template-columns: repeat(3, 1fr); } }

.nei-blog-card { background: #ffffff; border: 1px solid var(--border); overflow: hidden; display: block; text-decoration: none; color: inherit; }
.nei-blog-card:hover { color: inherit; }
.nei-blog-card-img { position: relative; height: 192px; overflow: hidden; }
.nei-blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.nei-blog-card:hover .nei-blog-card-img img { transform: scale(1.05); }
.nei-blog-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,31,48,0.6), transparent); }
.nei-blog-card-cat { position: absolute; top: 0.75rem; left: 0.75rem; }
.nei-blog-card-body { padding: 1.5rem; }
.nei-blog-card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.nei-blog-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.2; transition: color 150ms; }
.nei-blog-card:hover h3 { color: var(--amber); }
.nei-blog-card p { font-size: 0.875rem; color: var(--steel); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nei-blog-card-footer { display: flex; justify-content: flex-end; }
.nei-read-more { display: flex; align-items: center; gap: 0.25rem; color: var(--amber); font-size: 0.75rem; font-weight: 600; transition: gap 150ms; }
.nei-blog-card:hover .nei-read-more { gap: 0.5rem; }

/* Featured blog post */
.nei-blog-featured {
    display: grid;
    grid-template-columns: 1fr;
    background: #ffffff;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
}
@media (min-width: 1024px) { .nei-blog-featured { grid-template-columns: 1fr 1fr; } }
.nei-blog-featured:hover { color: inherit; }
.nei-blog-featured-img { position: relative; height: 256px; overflow: hidden; }
@media (min-width: 1024px) { .nei-blog-featured-img { height: auto; min-height: 320px; } }
.nei-blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.nei-blog-featured:hover .nei-blog-featured-img img { transform: scale(1.05); }
.nei-blog-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.nei-blog-featured-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }
.nei-blog-featured h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--navy); margin-bottom: 1rem; transition: color 150ms; }
.nei-blog-featured:hover h2 { color: var(--amber); }
.nei-blog-featured p { font-size: 0.9375rem; color: var(--steel); line-height: 1.65; margin-bottom: 1.5rem; }

/* Blog filter bar */
.nei-filter-bar {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.nei-filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nei-filter-btn {
    padding: 0.5rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 150ms;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--steel);
}
.nei-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.nei-filter-btn.active { background: var(--navy); color: #ffffff; border-color: var(--navy); }

/* Blog post single */
.nei-post-hero { position: relative; height: 420px; overflow: hidden; margin-top: 72px; }
@media (min-width: 1024px) { .nei-post-hero { height: 520px; } }
.nei-post-hero img { width: 100%; height: 100%; object-fit: cover; }
.nei-post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,31,48,0.85) 0%, rgba(13,31,48,0.4) 50%, transparent 100%); }
.nei-post-hero-back { position: absolute; top: 1.5rem; left: 0; right: 0; }
.nei-post-hero-back a { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 150ms; text-decoration: none; }
.nei-post-hero-back a:hover { color: #ffffff; }
.nei-post-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 2.5rem; }
.nei-post-hero-content h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem); color: #ffffff; max-width: 800px; }
.nei-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.nei-post-body { padding: 3.5rem 0; }
.nei-post-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .nei-post-layout { grid-template-columns: 1fr 320px; } }

.nei-post-lead { font-size: 1.125rem; color: var(--navy); font-weight: 500; line-height: 1.7; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.nei-post-content h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--navy); margin-top: 2.5rem; margin-bottom: 1rem; }
.nei-post-content p { font-size: 1rem; color: var(--steel); line-height: 1.75; margin-bottom: 1rem; }
.nei-post-content strong { color: var(--navy); font-weight: 600; }
.nei-post-content ul { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.nei-post-content ul li { font-size: 1rem; color: var(--steel); line-height: 1.65; margin-bottom: 0.4rem; }

.nei-post-tags { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.nei-post-tag { background: var(--limestone); color: var(--steel); font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.75rem; border: 1px solid var(--border); }

.nei-post-nav { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nei-post-nav-item { background: #ffffff; border: 1px solid var(--border); padding: 1.25rem; text-decoration: none; color: inherit; transition: border-color 150ms; }
.nei-post-nav-item:hover { border-color: var(--navy); color: inherit; }
.nei-post-nav-dir { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.25rem; }
.nei-post-nav-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9375rem; color: var(--navy); line-height: 1.3; transition: color 150ms; }
.nei-post-nav-item:hover .nei-post-nav-title { color: var(--amber); }
.nei-post-nav-item.next .nei-post-nav-dir { justify-content: flex-end; }
.nei-post-nav-item.next .nei-post-nav-title { text-align: right; }

/* Blog sidebar */
.nei-sidebar-cta { background: var(--navy); padding: 1.75rem; margin-bottom: 2rem; }
.nei-sidebar-cta h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: #ffffff; margin-bottom: 0.75rem; }
.nei-sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 1.25rem; }
.nei-sidebar-cta .nei-btn-primary { width: 100%; justify-content: center; }

.nei-sidebar-related h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.nei-sidebar-post { display: flex; gap: 1rem; background: #ffffff; border: 1px solid var(--border); padding: 1rem; margin-bottom: 0.75rem; text-decoration: none; color: inherit; transition: border-color 150ms; }
.nei-sidebar-post:hover { border-color: var(--navy); color: inherit; }
.nei-sidebar-post img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.nei-sidebar-post-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.875rem; color: var(--navy); line-height: 1.3; margin-bottom: 0.25rem; transition: color 150ms; }
.nei-sidebar-post:hover .nei-sidebar-post-title { color: var(--amber); }
.nei-sidebar-post-meta { font-size: 0.7rem; color: var(--muted); }

.nei-sidebar-more { margin-top: 1.5rem; }
.nei-sidebar-more h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.75rem; }
.nei-sidebar-link { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.nei-sidebar-link:last-child { border-bottom: none; }
.nei-sidebar-link::before { content: '→'; color: var(--amber); flex-shrink: 0; font-size: 0.75rem; margin-top: 0.15rem; }
.nei-sidebar-link span { font-size: 0.875rem; color: var(--steel); line-height: 1.4; transition: color 150ms; }
.nei-sidebar-link:hover span { color: var(--navy); }

/* ── Contact Form ─────────────────────────────────────────────────────────── */
.nei-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .nei-contact-grid { grid-template-columns: 1fr 2fr; } }

.nei-contact-info h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.nei-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.nei-contact-icon { width: 36px; height: 36px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber); }
.nei-contact-item-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.25rem; display: block; }
.nei-contact-item a, .nei-contact-item p { font-weight: 600; color: var(--navy); font-size: 0.9375rem; text-decoration: none; transition: color 150ms; }
.nei-contact-item a:hover { color: var(--amber); }
.nei-contact-item small { font-size: 0.8125rem; color: var(--steel); display: block; }

.nei-service-area { background: var(--navy); padding: 1.5rem; margin-top: 1.5rem; }
.nei-service-area h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.125rem; color: #ffffff; margin-bottom: 1rem; }
.nei-service-area li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.nei-service-area li::before { content: '✓'; color: var(--amber); flex-shrink: 0; }

.nei-form { background: #ffffff; border: 1px solid var(--border); padding: 2rem; }
.nei-form-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.nei-form-header h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.nei-form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .nei-form-grid { grid-template-columns: 1fr 1fr; } }
.nei-form-full { grid-column: 1 / -1; }

.nei-form-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.375rem; }
.nei-form-input,
.nei-form-select,
.nei-form-textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--limestone);
    padding: 0.75rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 150ms;
    -webkit-appearance: none;
    appearance: none;
}
.nei-form-input:focus,
.nei-form-select:focus,
.nei-form-textarea:focus { border-color: var(--navy); }
.nei-form-textarea { resize: none; }
.nei-form-checkbox { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--steel); }
.nei-form-checkbox input { width: 16px; height: 16px; accent-color: var(--amber); cursor: pointer; }
.nei-form-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .nei-form-footer { flex-direction: row; align-items: center; justify-content: space-between; } }
.nei-form-note { font-size: 0.75rem; color: var(--muted); }

.nei-form-success { text-align: center; padding: 3rem 2rem; background: #ffffff; border: 1px solid var(--border); }
.nei-form-success-icon { font-size: 3rem; color: var(--amber); margin-bottom: 1rem; }
.nei-form-success h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.75rem; color: var(--navy); margin-bottom: 0.75rem; }
.nei-form-success p { color: var(--steel); max-width: 400px; margin: 0 auto 1.5rem; line-height: 1.65; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
#nei-footer { background: var(--navy-dark); color: #ffffff; }
.nei-footer-main { padding: 4rem 0; }
.nei-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px)  { .nei-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nei-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.nei-footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; max-width: 340px; margin-bottom: 1.5rem; }
.nei-footer-coord { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); }

.nei-footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff; margin-bottom: 1rem; }
.nei-footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.nei-footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 150ms; }
.nei-footer-col ul a:hover { color: var(--amber); }

.nei-footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.nei-footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 150ms; }
.nei-footer-contact a:hover { color: var(--amber); }

.nei-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; }
.nei-footer-bottom-inner { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
@media (min-width: 640px) { .nei-footer-bottom-inner { flex-direction: row; justify-content: space-between; } }
.nei-footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.nei-footer-social { display: flex; gap: 1rem; }
.nei-footer-social a { color: rgba(255,255,255,0.4); transition: color 150ms; text-decoration: none; }
.nei-footer-social a:hover { color: var(--amber); }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.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; }
.text-amber { color: var(--amber); }
.text-navy  { color: var(--navy); }
.text-white { color: #ffffff; }
.bg-navy    { background: var(--navy); }
.bg-dark    { background: var(--navy-dark); }
.bg-limestone { background: var(--limestone); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 1rem; }
