/* ==========================================================================
   NE Construction — Design System v3 (ground-up rebuild)
   Editorial/architectural direction. No card grids. Full-bleed
   photography, asymmetric composition, oversized type, a full-screen
   overlay nav instead of a header link row.
   ========================================================================== */

:root {
  --nec-header-height: 184px; /* fallback default — JS overwrites with the real measured height on load */
  --nec-ink: #0b0c0e;
  --nec-charcoal: #17191c;
  --nec-white: #ffffff;
  --nec-concrete: #f0efec;
  --nec-steel: #565b62;
  --nec-steel-line: #dcdbd7;
  --nec-signal: #1d3557;
  --nec-signal-bright: #2e5c94;

  --nec-navy: var(--nec-signal);
  --nec-black: var(--nec-ink);
  --nec-fog: var(--nec-concrete);
  --nec-gray-100: var(--nec-steel-line);
  --nec-gray-700: var(--nec-steel);

  --nec-font-display: "Big Shoulders Display", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --nec-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --nec-font-mono: "IBM Plex Mono", "Courier New", monospace;

  --nec-space-1: 0.5rem;
  --nec-space-2: 1rem;
  --nec-space-3: 1.75rem;
  --nec-space-4: 2.25rem;
  --nec-space-5: 3.25rem;
  --nec-space-6: 4.5rem;
  --nec-space-7: 6rem;

  --nec-max-width: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nec-font-body);
  color: var(--nec-ink);
  background: var(--nec-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.nec-container { max-width: var(--nec-max-width); margin-inline: auto; padding-inline: var(--nec-space-3); }
a { color: inherit; }
/* Only plain pages with no full-bleed opener need this; pages with a
   dark hero/banner already provide their own clearance below the
   floating header. */
.nec-main-offset { padding-top: calc(var(--nec-header-height) + 2.5rem); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--nec-signal); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .nec-reveal { opacity: 1 !important; transform: none !important; }
}

/* Reveal-on-scroll */
.nec-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1); }
.nec-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Bar — visible horizontal nav, pronounced logo
   ========================================================================== */
.nec-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(180deg, rgba(11,12,14,0.65) 0%, rgba(11,12,14,0) 100%);
  transition: background 0.35s ease, padding 0.35s ease;
}
.nec-bar.is-scrolled { background: rgba(11,12,14,0.94); backdrop-filter: blur(6px); }
.nec-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--nec-space-3) var(--nec-space-3);
  max-width: var(--nec-max-width); margin-inline: auto;
}
.nec-logo { display: inline-flex; text-decoration: none; }
.nec-logo-img { height: 108px; width: auto; transition: height 0.3s ease; }
.nec-bar.is-scrolled .nec-logo-img { height: 52px; }
.nec-bar.is-scrolled .nec-bar-inner { padding-block: var(--nec-space-1); }

.nec-bar-nav-list {
  display: flex; align-items: center; gap: var(--nec-space-4);
  list-style: none; margin: 0; padding: 0;
}
.nec-bar-nav-list a {
  font-family: var(--nec-font-mono); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.88); text-decoration: none;
  position: relative; padding-bottom: 5px;
  transition: color 0.25s ease;
}
.nec-bar-nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--nec-signal-bright); transition: width 0.25s ease;
}
.nec-bar-nav-list a:hover { color: var(--nec-white); }
.nec-bar-nav-list a:hover::after { width: 100%; }

/* Active-page indicator — WordPress marks the current page's <li>
   automatically, so this needs no manual upkeep as pages are added. */
.nec-bar-nav-list li.current-menu-item > a,
.nec-bar-nav-list li.current_page_item > a { color: var(--nec-white); }
.nec-bar-nav-list li.current-menu-item > a::after,
.nec-bar-nav-list li.current_page_item > a::after { width: 100%; }

/* The final nav item (Contact) gets a distinct button treatment as
   the nav's one clear call-to-action, rather than reading as just
   another link in the row. */
.nec-bar-nav-list li:last-child > a {
  padding: 0.55rem 1.1rem; border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nec-bar-nav-list li:last-child > a::after { display: none; }
.nec-bar-nav-list li:last-child > a:hover,
.nec-bar-nav-list li.current-menu-item:last-child > a {
  background: var(--nec-signal-bright); border-color: var(--nec-signal-bright); color: var(--nec-white);
}

.nec-bar-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.nec-bar-toggle span {
  display: block; width: 100%; height: 2px; background: var(--nec-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nec-bar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nec-bar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nec-bar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nec-bar-toggle { display: flex; }
  .nec-logo-img { height: 52px; }

  .nec-bar-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nec-ink);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nec-bar-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .nec-bar-nav-list {
    flex-direction: column; align-items: flex-start;
    width: auto; gap: 0 !important;
    padding: var(--nec-space-2) var(--nec-space-3) var(--nec-space-3);
  }
  .nec-bar-nav-list a {
    display: block; width: 100%;
    font-size: 0.85rem; padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nec-bar-nav-list li:last-child > a {
    padding: 0.85rem 0; border: none; border-bottom: 1px solid rgba(255,255,255,0.1);
    background: none; color: rgba(255,255,255,0.88);
  }

  /* The dropdown is an overlay (absolute, out of flow), so the
     header's own measured height stays small and constant whether
     the menu is open or closed — no risk of it ever overlapping page
     content below, regardless of how many nav items exist. */
}

/* ==========================================================================
   Cinema hero
   ========================================================================== */
.nec-cinema { position: relative; min-height: 100vh; overflow: hidden; background: var(--nec-ink); display: flex; align-items: flex-end; }
.nec-cinema iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.02);
  pointer-events: none; border: 0;
  opacity: 0;
  animation: necHeroReveal 0.7s ease 1.6s forwards;
}
@keyframes necHeroReveal {
  from { opacity: 0; }
  to { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .nec-cinema iframe { animation: none; opacity: 0.55; }
}
.nec-cinema::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.2) 0%, rgba(11,12,14,0.35) 45%, rgba(11,12,14,0.97) 100%);
}
.nec-cinema-frame { position: relative; z-index: 2; width: 100%; padding: 0 var(--nec-space-3) var(--nec-space-5); color: var(--nec-white); }
.nec-cinema-eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--nec-font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-bottom: var(--nec-space-3);
}
.nec-cinema-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--nec-signal-bright); }
.nec-cinema-headline {
  font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 6.5rem); line-height: 0.96; letter-spacing: -0.005em;
  margin: 0 0 var(--nec-space-4); max-width: 32ch;
}
.nec-cinema-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--nec-font-body); font-weight: 700; font-size: 1rem;
  color: var(--nec-white); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 0.4rem;
  transition: border-color 0.25s ease, gap 0.25s ease;
}
.nec-cinema-link span { transition: transform 0.25s ease; }
.nec-cinema-link:hover { border-color: var(--nec-white); gap: 1rem; }

/* ==========================================================================
   Stat strip — editorial, no boxes
   ========================================================================== */
.nec-stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--nec-white);
}
.nec-stat-strip-item {
  padding: var(--nec-space-4) var(--nec-space-3);
  border-top: 1px solid var(--nec-ink);
  border-left: 1px solid var(--nec-steel-line);
}
.nec-stat-strip-item:first-child { border-left: none; }
.nec-stat-num {
  display: block; font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.005em; line-height: 1;
  margin-bottom: 0.75rem; color: var(--nec-ink);
}
.nec-stat-label {
  font-family: var(--nec-font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--nec-steel);
}

/* ==========================================================================
   Full-viewport alternating project spreads
   ========================================================================== */
.nec-spreads-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: var(--nec-space-2);
  padding-block: 0 var(--nec-space-3);
}
.nec-spreads-head--section { margin-bottom: 0; }
.nec-spreads-head--tight { margin-bottom: 0; }
.nec-spreads-head h2 {
  font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(2.25rem, 4.5vw, 4rem); letter-spacing: -0.005em; line-height: 1;
  margin: 0.6rem 0 0; flex: 1 1 100%;
}
.nec-spread {
  position: relative; display: block; min-height: 92vh;
  text-decoration: none; color: var(--nec-white); overflow: hidden;
  background: var(--nec-ink);
}
.nec-spread-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.16,1,.3,1); }
.nec-spread:hover .nec-spread-img { transform: scale(1.05); }
.nec-spread::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.05) 0%, rgba(11,12,14,0.75) 100%);
}
.nec-spread-info { position: relative; z-index: 2; max-width: var(--nec-max-width); margin-inline: auto; height: 100%; padding: 0 var(--nec-space-3) var(--nec-space-5); display: flex; flex-direction: column; justify-content: flex-end; }
.nec-spread--right .nec-spread-info { align-items: flex-end; text-align: right; }
.nec-spread-meta { font-family: var(--nec-font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); margin: 0.6rem 0 var(--nec-space-3); display: block; }
.nec-spread-title { font-family: var(--nec-font-display); font-weight: 900; font-size: clamp(2.25rem, 6vw, 5.5rem); letter-spacing: -0.008em; line-height: 0.98; margin: 0; max-width: 16ch; }
.nec-text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--nec-font-body); font-weight: 700; font-size: 0.95rem;
  color: inherit; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.3rem; width: fit-content;
}
.nec-more-projects-note { font-family: var(--nec-font-mono); font-size: 0.85rem; color: var(--nec-steel); padding-block: var(--nec-space-3); }
.nec-more-projects-note a { color: var(--nec-signal); }

/* ==========================================================================
   Services — editorial row list, not tiles
   ========================================================================== */
.nec-services-editorial { padding-block: var(--nec-space-6); background: var(--nec-concrete); }
.nec-service-row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--nec-space-4);
  padding-block: var(--nec-space-4);
  border-top: 1px solid var(--nec-steel-line);
}
.nec-service-row:last-child { border-bottom: 1px solid var(--nec-steel-line); }
.nec-service-row h3 {
  font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: 0em; margin: 0;
}
.nec-service-row p { font-size: 1.05rem; line-height: 1.7; color: var(--nec-steel); margin: 0; max-width: 46ch; }
@media (max-width: 760px) {
  .nec-service-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Dark band (HUD callout)
   ========================================================================== */
.nec-band { background: var(--nec-ink); color: var(--nec-white); padding-block: var(--nec-space-5); }
.nec-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nec-space-4); align-items: center; }
.nec-band-inner h2 { font-family: var(--nec-font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.005em; line-height: 1.02; margin: 0; }
.nec-band-inner p { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin: 0 0 var(--nec-space-3); }
.nec-band-inner .nec-cinema-link { border-color: rgba(255,255,255,0.4); }
@media (max-width: 760px) { .nec-band-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Single large pull-quote (testimonial)
   ========================================================================== */
.nec-quote { padding-block: var(--nec-space-4); }
.nec-quote-text {
  font-family: var(--nec-font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.25; letter-spacing: 0em;
  max-width: 22ch; margin: 0 0 var(--nec-space-3);
}
.nec-quote footer { display: flex; flex-direction: column; font-family: var(--nec-font-mono); font-size: 0.85rem; color: var(--nec-steel); }
.nec-quote-name { font-weight: 600; color: var(--nec-ink); }

/* ==========================================================================
   Logo wall
   ========================================================================== */
.nec-logo-wall { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nec-space-5); margin-top: var(--nec-space-4); }
.nec-logo-wall-item { max-height: 42px; width: auto; filter: grayscale(100%); opacity: 0.5; transition: opacity 0.25s ease; }
.nec-logo-wall-item:hover { opacity: 1; }

/* ==========================================================================
   News — editorial rows
   ========================================================================== */
.nec-news-editorial { border-top: 1px solid var(--nec-steel-line); }
.nec-news-editorial-row {
  display: block; text-decoration: none; color: inherit;
  padding-block: var(--nec-space-3); border-bottom: 1px solid var(--nec-steel-line);
  transition: padding-left 0.25s ease;
}
.nec-news-editorial-row:hover { padding-left: 0.75rem; }
.nec-news-card-type { font-family: var(--nec-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nec-signal); display: block; margin-bottom: 0.5rem; }
.nec-news-editorial-row h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; margin: 0; color: var(--nec-ink); }

/* ==========================================================================
   Section scaffolding (reused across content-driven pages)
   ========================================================================== */
.nec-section { padding-block: var(--nec-space-6); }
.nec-section--tight { padding-block: var(--nec-space-4); }
.nec-section--fog { background: var(--nec-concrete); }
.nec-section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--nec-font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--nec-signal);
}
.nec-section-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--nec-signal); display: inline-block; }

/* Full-bleed dark title band (Projects/HUD/etc page openers) */
.nec-title-band { background: var(--nec-ink); color: var(--nec-white); padding: calc(var(--nec-header-height) + 2.5rem) var(--nec-space-3) var(--nec-space-5); }
.nec-title-band .nec-section-eyebrow { color: rgba(255,255,255,0.7); }
.nec-title-band .nec-section-eyebrow::before { background: var(--nec-signal-bright); }
.nec-title-band-headline { font-family: var(--nec-font-display); font-weight: 900; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.008em; line-height: 0.96; margin: var(--nec-space-2) 0 0; }

.nec-page-title { font-family: var(--nec-font-display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.008em; line-height: 1; margin: 0.75rem 0 0; }
.nec-back-link { font-family: var(--nec-font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: inherit; text-decoration: none; opacity: 0.75; }

/* ==========================================================================
   Title-block strip (reused on About/Safety pages)
   ========================================================================== */
.nec-titleblock { background: var(--nec-white); border-top: 1px solid var(--nec-ink); border-bottom: 1px solid var(--nec-ink); }
.nec-titleblock .nec-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.nec-titleblock-cell { padding: var(--nec-space-4) var(--nec-space-3); border-left: 1px solid var(--nec-steel-line); }
.nec-titleblock-cell:first-child { border-left: none; }
.nec-titleblock-label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--nec-font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nec-steel); margin-bottom: 0.6rem; }
.nec-titleblock-label::before { content: "+"; color: var(--nec-signal); font-weight: 600; }
.nec-titleblock-value { font-family: var(--nec-font-mono); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; color: var(--nec-ink); }
.nec-titleblock-badge { display: inline-block; border: 1px solid var(--nec-signal); color: var(--nec-signal); font-family: var(--nec-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.8rem; }

/* ==========================================================================
   Map band (Projects page)
   ========================================================================== */
.nec-map-band { background: var(--nec-charcoal); padding-block: var(--nec-space-4); }
.nec-state-map { width: 100%; display: block; }
.nec-state-shape { fill: rgba(255,255,255,0.12); stroke: var(--nec-charcoal); stroke-width: 1; stroke-linejoin: round; transition: fill 0.15s ease; cursor: default; }
.nec-state-shape.is-active { fill: var(--nec-signal-bright); cursor: pointer; }
.nec-state-shape.is-active:hover { fill: var(--nec-white); }
.nec-state-shape.is-selected,
.nec-state-shape.is-selected:hover { fill: var(--nec-white); }
.nec-state-shape:focus, .nec-state-shape:active { outline: none; }
.nec-map-layout { display: grid; grid-template-columns: 1fr; gap: var(--nec-space-3); }
@media (min-width: 900px) { .nec-map-layout { grid-template-columns: 2.2fr 1fr; align-items: start; } }
.nec-map-panel {
  background: rgba(255,255,255,0.05); color: var(--nec-white);
  padding: var(--nec-space-4); min-height: 160px;
  max-height: min(480px, 60vh);
  overflow-y: auto;
  position: sticky; top: var(--nec-space-3);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.nec-map-panel::-webkit-scrollbar { width: 6px; }
.nec-map-panel::-webkit-scrollbar-track { background: transparent; }
.nec-map-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); }
.nec-map-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.nec-map-panel-title { display: block; font-family: var(--nec-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--nec-space-3); }
.nec-map-panel-body { display: flex; flex-direction: column; }
.nec-map__project-tag { display: block; width: 100%; font-size: 0.9rem; padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; color: var(--nec-white); transition: opacity 0.2s ease; }
.nec-map__project-tag:hover { opacity: 0.7; }
.nec-map__project-tag:first-child { border-top: none; }
.nec-map__project-tag span { display: block; font-family: var(--nec-font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.nec-map-caption { font-family: var(--nec-font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: var(--nec-space-3); }

/* ==========================================================================
   Filter bar
   ========================================================================== */
.nec-filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nec-filter-btn {
  font-family: var(--nec-font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: none; border: 1px solid var(--nec-steel-line); color: var(--nec-ink);
  padding: 0.65rem 1.1rem; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nec-filter-btn:hover { border-color: var(--nec-ink); }
.nec-filter-btn.is-active { background: var(--nec-ink); border-color: var(--nec-ink); color: var(--nec-white); }

/* ==========================================================================
   Editorial index list (Projects archive, HUD track record)
   ========================================================================== */
.nec-index-list, .nec-project-list { display: flex; flex-direction: column; border-top: 1px solid var(--nec-steel-line); }
.nec-index-row, .nec-project-row {
  display: flex; align-items: center; gap: var(--nec-space-3);
  padding: var(--nec-space-3) 0; border-bottom: 1px solid var(--nec-steel-line);
  text-decoration: none; color: inherit;
  transition: padding-left 0.3s ease;
}
.nec-index-row:hover, .nec-project-row:hover { padding-left: 0.75rem; }
.nec-index-row-thumb img, .nec-project-row-thumb img { width: 140px; height: 100px; object-fit: cover; display: block; background: var(--nec-concrete); }
.nec-index-row-body, .nec-project-row-body { display: flex; flex-direction: column; flex: 1; }
.nec-index-row-title, .nec-project-row-title { font-family: var(--nec-font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
.nec-index-row-meta, .nec-project-row-meta { font-family: var(--nec-font-mono); font-size: 0.8rem; color: var(--nec-steel); margin-top: 0.35rem; }
.nec-index-row-arrow { font-size: 1.3rem; color: var(--nec-steel-line); transition: color 0.25s ease, transform 0.25s ease; }
.nec-index-row:hover .nec-index-row-arrow { color: var(--nec-signal); transform: translateX(4px); }
.nec-index-row.is-hidden, .nec-project-row.is-hidden { display: none; }
.nec-hud-empty-note { color: var(--nec-steel); font-size: 0.95rem; }

/* ==========================================================================
   Single project cinematic header
   ========================================================================== */
.nec-project-cinema {
  position: relative; min-height: 78vh; background: var(--nec-ink) center/cover no-repeat;
  display: flex; align-items: flex-end;
}
.nec-project-cinema::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,0.15) 0%, rgba(11,12,14,0.9) 100%); }
.nec-project-cinema--empty { background: var(--nec-concrete); }
.nec-project-cinema--empty::after { background: linear-gradient(180deg, rgba(240,239,236,0) 0%, rgba(240,239,236,0.9) 100%); }
.nec-project-cinema--empty .nec-project-cinema-frame { color: var(--nec-ink); }
.nec-project-cinema--empty .nec-back-link { color: var(--nec-steel); opacity: 1; }
.nec-photo-placeholder--large { z-index: 1; }
.nec-project-cinema-frame { position: relative; z-index: 2; width: 100%; padding: calc(var(--nec-header-height) + 2.5rem) var(--nec-space-3) var(--nec-space-4); color: var(--nec-white); max-width: var(--nec-max-width); margin-inline: auto; }
.nec-project-cinema-title { font-family: var(--nec-font-display); font-weight: 900; font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -0.008em; line-height: 0.98; margin: var(--nec-space-2) 0 0; }
.nec-project-detail-meta {
  display: flex; flex-wrap: wrap; gap: var(--nec-space-4);
  font-family: var(--nec-font-mono); font-size: 0.85rem;
  margin: 0 0 var(--nec-space-4); padding-bottom: var(--nec-space-3);
  border-bottom: 1px solid var(--nec-steel-line);
}
.nec-project-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2px; }
.nec-project-photo-grid img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* ==========================================================================
   Prose layout (About / Services / Safety / HUD copy)
   ========================================================================== */
.nec-prose-layout { max-width: 740px; }
.nec-prose-layout p { font-size: 1.1rem; line-height: 1.8; color: var(--nec-steel); margin: 0 0 var(--nec-space-3); }
.nec-prose-layout h2 { font-family: var(--nec-font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: 0em; color: var(--nec-ink); margin: var(--nec-space-5) 0 var(--nec-space-2); }
.nec-prose-layout h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.25rem; color: var(--nec-ink); margin: var(--nec-space-3) 0 var(--nec-space-1); }
.nec-prose-layout ul, .nec-prose-layout ol { color: var(--nec-steel); line-height: 1.8; padding-left: 1.25rem; }

/* ==========================================================================
   Services page grid (kept for template-services.php tile fallback)
   ========================================================================== */
.nec-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--nec-steel-line); margin-top: var(--nec-space-4); }
.nec-service-tile { background: var(--nec-white); padding: var(--nec-space-4) var(--nec-space-3); transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease; }
.nec-service-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11,12,14,0.25); position: relative; z-index: 2; }
.nec-service-tile h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
.nec-service-tile p { color: var(--nec-steel); font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* ==========================================================================
   Contact / RFP form
   ========================================================================== */
.nec-contact-info .nec-footer-address { color: rgba(255,255,255,0.7); }

.wpcf7-form { max-width: 580px; }
.wpcf7-form-control-wrap { display: block; margin-bottom: var(--nec-space-3); }
.wpcf7-form p { margin: 0 0 var(--nec-space-3); }
.wpcf7-form label { display: block; font-family: var(--nec-font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nec-steel); margin-bottom: 0.5rem; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea {
  display: block; width: 100%; border: 1px solid var(--nec-steel-line); padding: 1rem 1.1rem;
  font-family: var(--nec-font-body); font-size: 1rem; color: var(--nec-ink); background: var(--nec-white); transition: border-color 0.2s ease;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--nec-signal); }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23565b62' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 10px; padding-right: 2.5rem; }
.wpcf7-form input[type="submit"] { background: var(--nec-ink); color: var(--nec-white); border: none; padding: 1.1rem 2.75rem; font-family: var(--nec-font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background 0.2s ease; }
.wpcf7-form input[type="submit"]:hover { background: var(--nec-signal); }
.wpcf7-form .wpcf7-not-valid-tip { font-size: 0.8rem; color: #b3261e; margin-top: 0.35rem; }
.wpcf7-response-output { margin-top: var(--nec-space-3) !important; font-size: 0.9rem; }

#nec-toggle-detailed { display: inline-flex; align-items: center; background: none; border: 1px solid var(--nec-ink); color: var(--nec-ink); font-family: var(--nec-font-body); font-weight: 600; font-size: 0.9rem; padding: 0.85rem 1.6rem; cursor: pointer; margin: 0 0 var(--nec-space-4); transition: background 0.2s ease, color 0.2s ease; }
#nec-toggle-detailed:hover { background: var(--nec-ink); color: var(--nec-white); }
#nec-detailed-fields { background: var(--nec-concrete); border-left: 2px solid var(--nec-signal); padding: var(--nec-space-3); margin-bottom: var(--nec-space-3); }
#nec-detailed-fields .nec-form-detail-label { display: block; font-family: var(--nec-font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nec-signal); margin-bottom: var(--nec-space-2); }
#nec-detailed-fields .wpcf7-form-control-wrap:last-child { margin-bottom: 0; }

.nec-careers-cta { margin-top: var(--nec-space-5); padding-top: var(--nec-space-4); border-top: 1px solid var(--nec-steel-line); font-size: 1.08rem; }
.nec-careers-cta a { color: var(--nec-signal); }

/* ==========================================================================
   Close (footer) — massive, spare
   ========================================================================== */
.nec-close { background: var(--nec-charcoal); color: var(--nec-white); padding-block: var(--nec-space-5) var(--nec-space-4); }
.nec-close-inner { max-width: var(--nec-max-width); margin-inline: auto; padding: 0 var(--nec-space-3); margin-bottom: var(--nec-space-5); }
.nec-close-eyebrow { display: block; font-family: var(--nec-font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--nec-space-2); }
.nec-close-headline {
  display: block; font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.005em; line-height: 1.1;
  color: var(--nec-signal-bright); text-decoration: none;
  transition: color 0.25s ease;
}
.nec-close-headline:hover { color: var(--nec-white); }
.nec-close-grid { max-width: var(--nec-max-width); margin-inline: auto; padding: var(--nec-space-4) var(--nec-space-3) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--nec-space-4); border-top: 1px solid rgba(255,255,255,0.12); margin-bottom: var(--nec-space-4); }
.nec-footer-badge { width: 46px; height: auto; display: block; margin-bottom: var(--nec-space-2); }
.nec-footer-address { font-family: var(--nec-font-mono); font-size: 0.92rem; line-height: 1.8; color: rgba(255,255,255,0.55); }
.nec-footer-heading { font-family: var(--nec-font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--nec-space-2); display: block; }
.nec-footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.nec-footer-social + nav .nec-footer-nav { margin-top: var(--nec-space-2); }
.nec-footer-nav a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.nec-footer-nav a:hover { color: var(--nec-white); }
.nec-close-base { max-width: var(--nec-max-width); margin-inline: auto; padding: var(--nec-space-3) var(--nec-space-3) 0; display: flex; align-items: center; gap: var(--nec-space-2); font-family: var(--nec-font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   News index rows (home.php) + single news post extras
   ========================================================================== */
.nec-news-index { display: flex; flex-direction: column; border-top: 1px solid var(--nec-steel-line); }
.nec-news-index-row {
  display: flex; gap: var(--nec-space-3); padding: var(--nec-space-4) 0;
  border-bottom: 1px solid var(--nec-steel-line); text-decoration: none; color: inherit;
  transition: padding-left 0.25s ease;
}
.nec-news-index-row:hover { padding-left: 0.75rem; }
.nec-news-index-thumb img { width: 160px; height: 110px; object-fit: cover; display: block; }
.nec-news-index-body { display: flex; flex-direction: column; }
.nec-news-index-meta { font-family: var(--nec-font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nec-signal); margin-bottom: 0.5rem; }
.nec-news-index-title { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--nec-ink); margin-bottom: 0.5rem; }
.nec-news-index-excerpt { color: var(--nec-steel); font-size: 0.95rem; line-height: 1.6; }
.nec-news-card.is-hidden { display: none; }
.nec-pagination { margin-top: var(--nec-space-3); font-family: var(--nec-font-mono); font-size: 0.85rem; }
.nec-pagination a { color: var(--nec-signal); text-decoration: none; margin-right: var(--nec-space-2); }

.nec-news-single-date { font-family: var(--nec-font-mono); font-size: 0.85rem; color: var(--nec-steel); margin: 0.5rem 0 var(--nec-space-3); }
.nec-news-single-image img { width: 100%; height: auto; display: block; margin-bottom: var(--nec-space-4); }
.nec-news-single-content p { font-size: 1.08rem; line-height: 1.8; color: var(--nec-steel); }
.nec-project-detail-content p { font-size: 1.08rem; line-height: 1.8; color: var(--nec-steel); }

/* Quote footer title line (paired with .nec-quote-name) */
.nec-quote-title { opacity: 0.85; }

/* Footer/menu structural wrappers */
.nec-close-col {}
.nec-menu-overlay-nav {}
.nec-contact-form-area {}
.nec-spreads {
  display: block; padding-top: var(--nec-space-4);
  background-color: var(--nec-white);
  background-image:
    linear-gradient(rgba(29,53,87,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,53,87,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Page banner — full-width cinematic image, title overlaid on a
   gradient at the bottom edge. Replaces the old 50/50 split hero.
   Reduced height vs. a full-screen hero — this is a strong intro, not
   the main event.
   ========================================================================== */
.nec-page-banner {
  position: relative;
  min-height: 46vh;
  background: var(--nec-ink) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.nec-page-banner--empty {
  background: linear-gradient(135deg, var(--nec-charcoal) 0%, var(--nec-ink) 100%);
}
.nec-page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.05) 0%, rgba(11,12,14,0.35) 55%, rgba(11,12,14,0.92) 100%);
}
.nec-page-banner-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--nec-max-width);
  margin-inline: auto;
  padding: calc(var(--nec-header-height) + 2.5rem) var(--nec-space-3) var(--nec-space-4);
  color: var(--nec-white);
}
.nec-page-banner-content .nec-section-eyebrow { color: rgba(255,255,255,0.72); }
.nec-page-banner-content .nec-section-eyebrow::before { background: var(--nec-signal-bright); }
.nec-page-banner-title {
  font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.005em; line-height: 0.98;
  margin: var(--nec-space-2) 0 0; color: var(--nec-white);
}
@media (max-width: 760px) {
  .nec-page-banner { min-height: 36vh; }
  .nec-page-banner-content { padding: 7rem var(--nec-space-3) var(--nec-space-3); }
}

/* ==========================================================================
   Project tile grid (Projects archive) — photo, name, location, units,
   financing-type badge
   ========================================================================== */
.nec-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--nec-space-3);
}
.nec-tile {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.nec-tile:hover { transform: translateY(-6px); }
.nec-tile-img {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--nec-concrete);
}
.nec-tile-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.nec-tile:hover .nec-tile-img img { transform: scale(1.06); }
.nec-tile-badges {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 0.5rem 0.5rem 0;
}
.nec-tile-badge {
  background: rgba(11,12,14,0.82); color: var(--nec-white);
  font-family: var(--nec-font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.5rem;
}
.nec-tile-body { display: block; padding-top: var(--nec-space-2); border-top: 1px solid var(--nec-steel-line); }
.nec-tile-title {
  display: block; font-family: var(--nec-font-display); font-weight: 700;
  font-size: 1.2rem; letter-spacing: -0.01em; color: var(--nec-ink); margin-bottom: 0.3rem;
}
.nec-tile-meta { display: block; font-family: var(--nec-font-mono); font-size: 0.8rem; color: var(--nec-steel); }
.nec-tile.is-hidden { display: none; }
.nec-bar-nav { display: block; }

/* ==========================================================================
   Featured Work — staggered 2-col grid, non-clickable, hover emphasis
   ========================================================================== */
.nec-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nec-space-4);
  padding-bottom: var(--nec-space-6);
}
.nec-feature-tile {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--nec-ink);
  cursor: default;
}
.nec-feature-tile:nth-child(even) { margin-top: var(--nec-space-5); }
.nec-feature-tile-img { position: absolute; inset: 0; display: block; }
.nec-feature-tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), filter 0.4s ease;
}
.nec-feature-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,12,14,0) 45%, rgba(11,12,14,0.88) 100%);
  transition: background 0.4s ease;
}
.nec-feature-tile:hover .nec-feature-tile-img img { transform: scale(1.07); filter: brightness(1.05); }
.nec-feature-tile-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--nec-space-3);
  color: var(--nec-white);
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}
.nec-feature-tile:hover .nec-feature-tile-info { transform: translateY(0); }
.nec-feature-tile-title {
  display: block; font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.005em; line-height: 1.02;
  margin-bottom: 0.5rem;
}
.nec-feature-tile-meta { display: block; font-family: var(--nec-font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: rgba(255,255,255,0.75); }

@media (max-width: 760px) {
  .nec-feature-grid { grid-template-columns: 1fr; }
  .nec-feature-tile:nth-child(even) { margin-top: 0; }
  .nec-feature-tile { height: 380px; }
}

.nec-state-filter-note {
  font-family: var(--nec-font-mono);
  font-size: 0.82rem;
  color: var(--nec-signal);
  margin: 0 0 var(--nec-space-3);
}

/* ==========================================================================
   Contractors page — new components
   ========================================================================== */
.nec-c-heading {
  font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.005em; line-height: 1.05;
  margin: 0.6rem 0 var(--nec-space-3);
}
.nec-c-intro { font-size: 1.08rem; line-height: 1.75; color: var(--nec-steel); max-width: 62ch; margin: 0 0 var(--nec-space-4); }

/* Hero subtext + dual CTAs */
.nec-c-hero-subtext { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 50ch; margin: 0 0 var(--nec-space-3); }
.nec-c-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nec-space-3); }
.nec-c-hero-secondary { color: var(--nec-white); }

/* Why Work With Us: asymmetric text/image */
.nec-c-why-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--nec-space-5); align-items: center; margin-bottom: var(--nec-space-5); }
.nec-c-why-image img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
@media (max-width: 860px) { .nec-c-why-layout { grid-template-columns: 1fr; } }

.nec-c-benefit-section {
  background-color: var(--nec-signal);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  padding-block: var(--nec-space-5);
}
.nec-c-benefit-grid { display: flex; flex-wrap: nowrap; gap: var(--nec-space-3); align-items: stretch; }
.nec-c-benefit-card {
  flex: 1 1 0; min-width: 0;
  background: var(--nec-white); padding: var(--nec-space-4);
  box-shadow: 0 2px 12px -4px rgba(11,12,14,0.15);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.nec-c-benefit-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11,12,14,0.35); position: relative; z-index: 2; }
.nec-c-benefit-card h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.005em; margin: 0 0 0.6rem; }
.nec-c-benefit-card p { color: var(--nec-steel); font-size: 0.95rem; line-height: 1.65; margin: 0; }
@media (max-width: 860px) {
  .nec-c-benefit-grid { flex-wrap: wrap; }
  .nec-c-benefit-card { flex: 1 1 260px; }
}
@media (max-width: 600px) {
  .nec-c-benefit-grid { flex-direction: column; }
  .nec-c-benefit-card { flex: 1 1 auto; }
}

/* Requirements grid — icon cards */
.nec-c-req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--nec-space-3); }
.nec-c-req-card {
  background: var(--nec-white); padding: var(--nec-space-4);
  border-top: 2px solid var(--nec-signal);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.nec-c-req-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11,12,14,0.2); }
.nec-c-req-icon { display: block; width: 40px; height: 40px; color: var(--nec-signal); margin-bottom: var(--nec-space-2); }
.nec-c-req-icon svg { width: 100%; height: 100%; }
.nec-c-req-card h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.005em; margin: 0 0 0.5rem; }
.nec-c-req-card p { color: var(--nec-steel); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* Process — numbered steps with connecting line */
.nec-c-process { display: flex; flex-direction: column; max-width: 760px; }
.nec-c-process-step {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--nec-space-3);
  padding-bottom: var(--nec-space-4); position: relative;
}
.nec-c-process-step:not(:last-child)::before {
  content: ""; position: absolute; left: 31px; top: 52px; bottom: 0;
  width: 1px; background: var(--nec-steel-line);
}
.nec-c-process-num {
  font-family: var(--nec-font-mono); font-weight: 600; font-size: 1.4rem;
  color: var(--nec-signal); border: 1px solid var(--nec-signal);
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nec-c-process-body h3 { font-family: var(--nec-font-display); font-weight: 700; font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }
.nec-c-process-body p { color: var(--nec-steel); font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* Resources & downloads */
.nec-c-resource-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--nec-space-4); margin-top: var(--nec-space-3); }
.nec-c-resource-group { min-width: 0; }
.nec-c-resource-group-title {
  font-family: var(--nec-font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nec-signal); margin: 0 0 var(--nec-space-2);
}
.nec-c-resource-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.nec-c-resource-card {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--nec-white); border: 1px solid var(--nec-steel-line);
  padding: 0.55rem 0.75rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.nec-c-resource-card:hover { border-color: var(--nec-signal); transform: translateX(3px); }
.nec-c-resource-icon { width: 18px; height: 18px; color: var(--nec-signal); flex-shrink: 0; }
.nec-c-resource-icon svg { width: 100%; height: 100%; }
.nec-c-resource-title {
  flex: 1; min-width: 0;
  font-weight: 600; font-size: 0.85rem; line-height: 1.4;
  overflow-wrap: break-word;
}
.nec-c-resource-ext { font-family: var(--nec-font-mono); font-weight: 500; font-size: 0.72rem; color: var(--nec-steel); white-space: nowrap; }
.nec-c-resource-download { width: 15px; height: 15px; color: var(--nec-steel); flex-shrink: 0; }
.nec-c-resource-download svg { width: 100%; height: 100%; }

/* FAQ accordion — native <details>, subtle animated toggle icon */
.nec-c-faq-list { border-top: 1px solid var(--nec-steel-line); margin-top: var(--nec-space-3); }
.nec-c-faq-item { border-bottom: 1px solid var(--nec-steel-line); padding-block: var(--nec-space-2); }
.nec-c-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--nec-space-2);
  cursor: pointer; list-style: none;
  font-family: var(--nec-font-display); font-weight: 700; font-size: 1.1rem; color: var(--nec-ink);
  padding: 0.4rem 0;
}
.nec-c-faq-item summary::-webkit-details-marker { display: none; }
.nec-c-faq-toggle {
  font-family: var(--nec-font-body); font-size: 1.4rem; font-weight: 400; color: var(--nec-signal);
  transition: transform 0.25s ease; flex-shrink: 0;
}
.nec-c-faq-item[open] .nec-c-faq-toggle { transform: rotate(45deg); }
.nec-c-faq-item p { color: var(--nec-steel); font-size: 0.98rem; line-height: 1.7; margin: 0.5rem 0 0.75rem; }

/* Contractors CTA row — navy branded background per project decision,
   buttons styled for contrast against it. */
.nec-c-cta-row-section {
  background-color: var(--nec-signal);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.nec-c-cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--nec-space-3);
}
.nec-c-cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--nec-white);
  font-family: var(--nec-font-body); font-weight: 700; font-size: 0.92rem;
  text-decoration: none;
  padding: 1rem 1.6rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.nec-c-cta-btn:hover {
  background: var(--nec-white); border-color: var(--nec-white); color: var(--nec-ink);
  transform: translateY(-2px);
}
.nec-c-cta-btn-icon { width: 22px; height: 22px; object-fit: contain; display: block; flex-shrink: 0; }
.nec-c-cta-split {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: var(--nec-space-4);
}
.nec-c-cta-group { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nec-c-cta-divider { width: 1px; background: rgba(255,255,255,0.25); align-self: stretch; }
@media (max-width: 700px) {
  .nec-c-cta-split { grid-template-columns: 1fr; gap: var(--nec-space-3); }
  .nec-c-cta-divider { width: 100%; height: 1px; }
}
.nec-c-cta-row-section .nec-state-filter-note,
.nec-c-cta-row-section .nec-c-cta-row-note { color: rgba(255,255,255,0.65); }

/* Form field row grouping — pairs/trios of related fields side by
   side instead of every field stacking full-width */
.nec-form-row {
  display: grid;
  gap: var(--nec-space-3);
  align-items: start;
}
.nec-form-row--2 { grid-template-columns: 1fr 1fr; }
.nec-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.nec-form-row label { margin: 0; }
@media (max-width: 600px) {
  .nec-form-row--2, .nec-form-row--3 { grid-template-columns: 1fr; }
}

.nec-c-cta-row-note {
  text-align: center;
  color: var(--nec-steel);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: var(--nec-space-3) auto 0;
}


.nec-c-cta-row-note a,
.nec-c-intro a {
  color: var(--nec-signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nec-c-cta-row-note a:hover,
.nec-c-intro a:hover { color: var(--nec-ink); }

/* ==========================================================================
   Homepage Services — premium card grid (CPT-driven, replaces the old
   flat row list)
   ========================================================================== */
.nec-services-grid-section {
  padding-block: var(--nec-space-4);
  background-color: var(--nec-signal);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.nec-services-grid-section .nec-section-eyebrow { color: rgba(255,255,255,0.75); }
.nec-services-grid-section .nec-section-eyebrow::before { background: var(--nec-white); }
.nec-services-grid-section .nec-spreads-head h2 { color: var(--nec-white); }
.nec-services-grid-section .nec-text-link { color: var(--nec-white); border-color: var(--nec-white); }
.nec-services-grid-section .nec-text-link:hover { opacity: 0.8; }
.nec-service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--nec-space-3);
}
.nec-service-card {
  display: block;
  background: var(--nec-white);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.nec-service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -28px rgba(11,12,14,0.28); }
.nec-service-card-media {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--nec-charcoal);
}
.nec-service-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.nec-service-card:hover .nec-service-card-media img { transform: scale(1.06); }
.nec-service-card-media--empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--nec-signal-bright); background: linear-gradient(135deg, var(--nec-charcoal), var(--nec-ink));
}
.nec-service-card-media--empty svg { width: 44px; height: 44px; }
.nec-service-card-body { display: block; padding: var(--nec-space-3); }
.nec-service-card-title {
  display: block;
  font-family: var(--nec-font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.005em; margin: 0 0 0.6rem; color: var(--nec-ink);
}
.nec-service-card-desc { display: block; color: var(--nec-steel); font-size: 0.95rem; line-height: 1.65; margin: 0; }
.nec-service-card-link { display: inline-block; margin-top: var(--nec-space-2); font-size: 0.88rem; pointer-events: none; }

/* ==========================================================================
   Impact band — dense "by the numbers" section, dark, right after hero
   ========================================================================== */
.nec-impact-band { background: var(--nec-signal); padding-block: var(--nec-space-4); }
.nec-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--nec-space-3);
}
.nec-impact-item {
  padding-inline: var(--nec-space-2);
  border-left: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.nec-impact-item:first-child { border-left: none; }
.nec-impact-icon { width: 28px; height: 28px; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.nec-impact-icon svg { width: 100%; height: 100%; }
.nec-impact-num {
  display: block; font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 2.75rem); letter-spacing: -0.01em; line-height: 1;
  color: var(--nec-white); margin-bottom: 0.6rem;
}
.nec-impact-label {
  font-family: var(--nec-font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
@media (max-width: 700px) {
  .nec-impact-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--nec-space-2); }
  .nec-impact-item:first-child { border-top: none; }
}

/* ==========================================================================
   Immersive photography band — breaks up the middle of the homepage
   with a full-bleed image + statement instead of another flat section
   ========================================================================== */
.nec-immersive-band {
  position: relative;
  min-height: 55vh;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nec-immersive-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.25) 50%, rgba(11,12,14,0.65) 100%);
}
.nec-immersive-statement {
  position: relative; z-index: 2;
  font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3.25rem); letter-spacing: -0.01em; line-height: 1.1;
  color: var(--nec-white); text-align: center; max-width: 22ch; margin-inline: auto;
}

/* ==========================================================================
   Subtle blueprint-grid texture — reinforces the construction-document
   signature motif without adding clutter. Very low opacity, light
   sections only. Reusable on any light section (e.g. About page).
   ========================================================================== */
.nec-section--textured {
  background-image:
    linear-gradient(rgba(29,53,87,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,53,87,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ==========================================================================
   Project photo placeholder — shown instead of a blank void when no
   image has been uploaded yet
   ========================================================================== */
.nec-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--nec-space-2);
  background: var(--nec-signal);
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 8px 8px, 8px 8px;
}
.nec-photo-placeholder-text {
  font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--nec-white);
  position: relative; padding-top: var(--nec-space-2);
}
.nec-photo-placeholder-text::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 2px; background: var(--nec-white);
}
.nec-photo-placeholder--large .nec-photo-placeholder-text { font-size: clamp(1.4rem, 3.6vw, 2.1rem); padding-top: var(--nec-space-3); }
.nec-photo-placeholder--large .nec-photo-placeholder-text::before { width: 52px; }

.nec-spreads .nec-spreads-head, .nec-spreads .nec-feature-grid, .nec-spreads .nec-more-projects-note {
  position: relative; z-index: 1;
}

/* ==========================================================================
   Scattered background words — sophisticated blueprint/technical-
   drawing typographic detail behind "Projects We've Built", replacing
   the earlier icon watermark. Wording is ACF-editable.
   ========================================================================== */
.nec-bg-word {
  position: absolute; z-index: 0;
  font-family: var(--nec-font-mono); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--nec-signal);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 760px) {
  .nec-bg-word { display: none; } /* keeps mobile clean/readable, no crowding */
}

/* ==========================================================================
   Project card slider — up to 5 images, touch/swipe via native scroll-
   snap, no autoplay. Fills the same absolute-positioned space a plain
   <img> would inside .nec-tile-img / .nec-feature-tile-img.
   ========================================================================== */
.nec-card-slider { position: absolute; inset: 0; }
.nec-card-slider-track {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.nec-card-slider-track::-webkit-scrollbar { display: none; }
.nec-card-slider-slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; height: 100%;
}
.nec-card-slider-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.nec-tile:hover .nec-card-slider-slide img { transform: scale(1.06); }
.nec-feature-tile:hover .nec-card-slider-slide img { transform: scale(1.07); filter: brightness(1.05); }

.nec-card-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border: none; background: rgba(11,12,14,0.55);
  color: var(--nec-white); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.nec-card-slider:hover .nec-card-slider-arrow { opacity: 1; }
.nec-card-slider-arrow:hover { background: rgba(11,12,14,0.85); }
.nec-card-slider-arrow--prev { left: 8px; }
.nec-card-slider-arrow--next { right: 8px; }

.nec-card-slider-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.nec-card-slider-dot {
  width: 6px; height: 6px; padding: 7px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.5); background-clip: content-box;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.nec-card-slider-dot.is-active { background: var(--nec-white); background-clip: content-box; transform: scale(1.3); }

@media (max-width: 760px) {
  /* Touch devices: arrows aren't needed since swipe already works, and
     hover doesn't exist to reveal them anyway — keep dots only. */
  .nec-card-slider-arrow { display: none; }
}

/* ==========================================================================
   About page — side-by-side text + large image (image fills the full
   height of the text column, whichever is taller)
   ========================================================================== */
.nec-about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--nec-space-5);
  align-items: stretch;
}
.nec-about-image { position: relative; min-height: 360px; }
.nec-about-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 860px) {
  .nec-about-layout { grid-template-columns: 1fr; }
  .nec-about-image { min-height: 320px; order: -1; }
}

/* Services page — larger card variant */
.nec-services-grid-section--large { padding-block: var(--nec-space-6); }
.nec-service-card-grid--large {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--nec-space-4);
}
.nec-service-card-grid--large .nec-service-card-title { font-size: 1.4rem; }
.nec-service-card-grid--large .nec-service-card-desc { font-size: 1rem; }

/* ==========================================================================
   HUD page — dramatic animated project counter
   ========================================================================== */
.nec-hud-counter {
  background: var(--nec-ink);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(46,92,148,0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(46,92,148,0.18), transparent 55%);
  padding-block: var(--nec-space-4);
  text-align: center;
}
.nec-hud-counter-num {
  display: block;
  font-family: var(--nec-font-display); font-weight: 900;
  font-size: clamp(4.5rem, 14vw, 10rem); line-height: 0.9; letter-spacing: -0.02em;
  color: var(--nec-white);
}
.nec-hud-counter-label {
  display: block;
  font-family: var(--nec-font-mono); font-size: 0.9rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--nec-signal-bright);
  margin-top: var(--nec-space-2);
}
.nec-hud-counter-sub {
  display: block;
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  max-width: 46ch; margin: var(--nec-space-3) auto 0; line-height: 1.6;
}

/* Bidding form — tighter vertical rhythm than the site-wide CF7
   default, per project decision. Scoped to this section only so the
   Contact page's form is unaffected. */
.nec-c-bidding-section .wpcf7-form-control-wrap { margin-bottom: 1.1rem; }
.nec-c-bidding-section .wpcf7-form p { margin: 0 0 1.1rem; }
.nec-c-bidding-section .wpcf7-form label { margin-bottom: 0.35rem; }
.nec-c-bidding-section .wpcf7-form input[type="text"],
.nec-c-bidding-section .wpcf7-form input[type="email"],
.nec-c-bidding-section .wpcf7-form input[type="tel"],
.nec-c-bidding-section .wpcf7-form select,
.nec-c-bidding-section .wpcf7-form textarea {
  padding: 0.8rem 1rem;
}
.nec-c-bidding-section .wpcf7-form textarea { min-height: 110px; }

/* ==========================================================================
   Services page — full-width alternating feature rows (distinct from
   the homepage's card-grid component, same underlying CPT data)
   ========================================================================== */
.nec-service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nec-service-feature:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(11,12,14,0.3); position: relative; z-index: 2; }
.nec-service-feature--right { direction: rtl; }
.nec-service-feature--right > * { direction: ltr; }
.nec-service-feature-media { position: relative; overflow: hidden; background: var(--nec-charcoal); }
.nec-service-feature-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
.nec-service-feature:hover .nec-service-feature-media img { transform: scale(1.06); }
.nec-service-feature-media .nec-service-card-media--empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--nec-signal-bright); background: linear-gradient(135deg, var(--nec-charcoal), var(--nec-ink));
}
.nec-service-feature-media .nec-service-card-media--empty svg { width: 56px; height: 56px; }
.nec-service-feature-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nec-space-5);
  background: var(--nec-signal); color: var(--nec-white);
  transition: background 0.3s ease, color 0.3s ease;
}
.nec-service-feature:hover .nec-service-feature-body { background: var(--nec-white); color: var(--nec-ink); }
.nec-service-feature-num {
  font-family: var(--nec-font-mono); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-bottom: var(--nec-space-2);
  transition: color 0.3s ease;
}
.nec-service-feature:hover .nec-service-feature-num { color: var(--nec-signal); }
.nec-service-feature-title {
  font-family: var(--nec-font-display); font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.01em; line-height: 1.05;
  color: inherit; margin-bottom: var(--nec-space-2);
}
.nec-service-feature-desc { font-size: 1.05rem; line-height: 1.7; color: inherit; opacity: 0.85; margin-bottom: var(--nec-space-3); max-width: 46ch; }
.nec-service-feature-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: inherit;
  font-weight: 700; font-size: 0.95rem;
  border-bottom: 1.5px solid currentColor; padding-bottom: 0.3rem; width: fit-content;
  transition: opacity 0.3s ease;
}
.nec-service-feature-cta span { transition: transform 0.3s ease; }
.nec-service-feature:hover .nec-service-feature-cta span { transform: translateX(3px); }
.nec-service-features-break { min-height: 60vh; }
@media (max-width: 860px) {
  .nec-service-feature, .nec-service-feature--right { grid-template-columns: 1fr; direction: ltr; min-height: auto; }
  .nec-service-feature-media { min-height: 280px; }
  .nec-service-feature-body { padding: var(--nec-space-4) var(--nec-space-3); }
}

/* Contact form — tighter vertical rhythm than the site-wide CF7
   default. Scoped to this page only so the Bidding form's own
   (differently) tightened spacing is unaffected. */
.nec-c-contact-section .wpcf7-form-control-wrap { margin-bottom: 1.1rem; }
.nec-c-contact-section .wpcf7-form p { margin: 0 0 1.1rem; }
.nec-c-contact-section .wpcf7-form label { margin-bottom: 0.35rem; }
.nec-c-contact-section .wpcf7-form input[type="text"],
.nec-c-contact-section .wpcf7-form input[type="email"],
.nec-c-contact-section .wpcf7-form input[type="tel"],
.nec-c-contact-section .wpcf7-form select,
.nec-c-contact-section .wpcf7-form textarea {
  padding: 0.8rem 1rem;
}
.nec-c-contact-section .wpcf7-form textarea { min-height: 120px; }

/* Service page capabilities list — reuses the Contractors "Requirements"
   card styling, but on a <ul> this time, so reset default list styling */
.nec-service-capabilities-list { list-style: none; margin: var(--nec-space-3) 0 0; padding: 0; }

/* ==========================================================================
   Primary CTA button — solid, filled, for the one action per page you
   want visitors to notice immediately (e.g. "View Open Positions").
   Distinct from .nec-cinema-link (outline, secondary-weight actions).
   ========================================================================== */
.nec-btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--nec-signal-bright);
  color: var(--nec-white);
  font-family: var(--nec-font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: none;
  padding: 1.15rem 2.5rem;
  box-shadow: 0 10px 28px -10px rgba(29,53,87,0.55);
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nec-btn-primary span { transition: transform 0.25s ease; }
.nec-btn-primary:hover {
  background: var(--nec-white); color: var(--nec-ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(29,53,87,0.5);
}
.nec-btn-primary:hover span { transform: translateX(4px); }
@media (max-width: 600px) {
  .nec-btn-primary { width: 100%; justify-content: center; padding: 1.1rem 1.5rem; }
}

/* Careers application form — tighter vertical rhythm than the
   site-wide CF7 default. Scoped to this section only. */
.nec-c-careers-apply-section .wpcf7-form-control-wrap { margin-bottom: 1.1rem; }
.nec-c-careers-apply-section .wpcf7-form p { margin: 0 0 1.1rem; }
.nec-c-careers-apply-section .wpcf7-form label { margin-bottom: 0.35rem; }
.nec-c-careers-apply-section .wpcf7-form input[type="text"],
.nec-c-careers-apply-section .wpcf7-form input[type="email"],
.nec-c-careers-apply-section .wpcf7-form input[type="tel"],
.nec-c-careers-apply-section .wpcf7-form select,
.nec-c-careers-apply-section .wpcf7-form textarea {
  padding: 0.8rem 1rem;
}
.nec-c-careers-apply-section .wpcf7-form textarea { min-height: 110px; }

/* ==========================================================================
   News/blog card grid — replaces the old row-list layout
   ========================================================================== */
.nec-news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--nec-space-4);
}
.nec-news-card {
  display: block;
  background: var(--nec-white);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.nec-news-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -28px rgba(11,12,14,0.28); }
.nec-news-card-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nec-charcoal); }
.nec-news-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.nec-news-card:hover .nec-news-card-media img { transform: scale(1.06); }
.nec-news-card-badge {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: rgba(11,12,14,0.82); color: var(--nec-white);
  font-family: var(--nec-font-mono); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}
.nec-news-card-body { display: block; padding: var(--nec-space-3); }
.nec-news-card-date {
  display: block; font-family: var(--nec-font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--nec-steel);
  margin-bottom: 0.5rem;
}
.nec-news-card-title {
  display: block; font-family: var(--nec-font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.005em; line-height: 1.15; color: var(--nec-ink); margin-bottom: 0.6rem;
}
.nec-news-card-excerpt { display: block; color: var(--nec-steel); font-size: 0.92rem; line-height: 1.6; margin-bottom: var(--nec-space-2); }
.nec-news-card-link { font-size: 0.85rem; pointer-events: none; }

/* ==========================================================================
   Footer social media icons
   ========================================================================== */
.nec-footer-social { display: flex; flex-wrap: wrap; gap: var(--nec-space-2); }
.nec-footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.nec-footer-social-link svg { width: 18px; height: 18px; }
.nec-footer-social-link:hover {
  color: var(--nec-signal-bright); border-color: var(--nec-signal-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   Mobile touch-target pass — filter buttons and small interactive
   controls get more generous tap area on touch screens specifically,
   without changing their desktop appearance.
   ========================================================================== */
@media (max-width: 760px) {
  .nec-filter-btn { padding: 0.85rem 1.1rem; }
  .nec-c-faq-item summary { padding: 0.7rem 0; }
  .nec-service-card-link, .nec-news-card-link { padding: 0.4rem 0; }
}

/* ==========================================================================
   News/Blog content-category tabs — the primary way to browse,
   visually more prominent than the secondary source filter below it
   ========================================================================== */
.nec-content-tabs { display: flex; flex-wrap: wrap; gap: var(--nec-space-4); border-bottom: 2px solid var(--nec-steel-line); }
.nec-content-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--nec-font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--nec-steel);
  padding: 0 0 var(--nec-space-2);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nec-content-tab:hover { color: var(--nec-ink); }
.nec-content-tab.is-active { color: var(--nec-ink); border-bottom-color: var(--nec-signal); }

/* Category badge color variants */
.nec-news-card-badge--blog { background: rgba(46,92,148,0.88); }
.nec-news-card-badge--news { background: rgba(11,12,14,0.82); }

/* Vertically center text content within its column so it balances
   against the (usually taller) image beside it, instead of sitting
   at the top with dead space below. */
.nec-about-text { display: flex; flex-direction: column; justify-content: center; }
.nec-about-text .nec-section-eyebrow { display: block; margin-bottom: var(--nec-space-2); }
