/* =========================================================================
   MEA / MW Ohio — Global Stylesheet
   Used across index.html and all subpages (line-card, news, careers, etc.)
   Change design tokens once here and they update everywhere.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color palette */
  --navy: #0D1B2A;
  --steel: #1C3A52;
  --mid: #2B5F8A;
  --accent: #E8520A;
  --accent-light: #F47A3C;
  --silver: #B8C8D8;
  --light: #EDF2F7;
  --white: #FFFFFF;
  --text-muted: #93AEC4;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* =========================================================================
   NAV — used on every page
   ========================================================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 120px;
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,200,216,0.1);
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo img { display: block; height: 104px; width: auto; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav ul a {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--silver); text-decoration: none;
  transition: color 0.2s;
}
nav ul a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 8px 20px; border-radius: 3px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; color: var(--white) !important; }

/* Dropdown menu (Applications submenu) */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: '▾'; margin-left: 4px; font-size: 10px; opacity: 0.6;
}
.dropdown-menu {
  position: absolute; top: 100%; left: -16px;
  background: rgba(13,27,42,0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184,200,216,0.1);
  border-radius: 3px;
  padding: 8px 0; min-width: 220px;
  display: flex !important; flex-direction: column; gap: 0 !important;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 12px !important; letter-spacing: 0.05em !important;
}
.dropdown-menu a:hover { background: rgba(232,82,10,0.1); color: var(--white); }

/* =========================================================================
   BUTTONS — used across all pages
   ========================================================================= */
.btn-primary {
  display: inline-block; padding: 15px 36px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--silver); text-decoration: none; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(184,200,216,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.btn-ghost::after { content: '→'; }

.btn-outline {
  display: inline-block; padding: 14px 32px;
  border: 1px solid rgba(184,200,216,0.3); color: var(--silver);
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* =========================================================================
   SHARED SECTION STYLES
   ========================================================================= */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px; gap: 24px; flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px);
  font-weight: 800; text-transform: uppercase; line-height: 1;
  color: var(--white);
}
.section-title em { font-style: normal; color: var(--accent); }

/* Generic page header (used on subpages: /line-card, /news, /careers) */
.page-header {
  padding: 160px 48px 80px;
  background: var(--navy);
  border-bottom: 1px solid rgba(184,200,216,0.08);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(184,200,216,0.04) 39px, rgba(184,200,216,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(184,200,216,0.04) 79px, rgba(184,200,216,0.04) 80px);
  z-index: 0;
}
.page-header-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(44px, 7vw, 80px);
  font-weight: 800; text-transform: uppercase; line-height: 0.95;
  color: var(--white); margin-bottom: 16px;
}
.page-header h1 em { font-style: normal; color: var(--accent); }
.page-header p {
  font-size: 18px; color: var(--silver); max-width: 600px; line-height: 1.65; font-weight: 300;
}

/* =========================================================================
   HERO (homepage)
   ========================================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 144px 48px 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,0.97) 0%, rgba(28,58,82,0.85) 60%, rgba(43,95,138,0.4) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(184,200,216,0.04) 39px, rgba(184,200,216,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(184,200,216,0.04) 79px, rgba(184,200,216,0.04) 80px);
}
.hero-accent-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, transparent, var(--accent) 30%, var(--accent-light) 70%, transparent);
  z-index: 1;
}
.hero-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  /* Cap the layout so the video can't sprawl wide-and-short on ultra-wide screens;
     bounds the video to ~912px wide → ~513px tall, keeping it 16:9. */
  max-width: 1560px;
}
.hero-content { max-width: 600px; align-self: center; }

/* Hero video banner (right of the headline) */
.hero-media {
  position: relative;
  border: 1px solid rgba(184,200,216,0.14);
  border-radius: 6px;
  overflow: hidden;
  background: var(--steel);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
/* Accent corner tick to match the technical-drawing motif */
.hero-media::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 40px; height: 3px; background: var(--accent);
}
.hero-video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px; background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.65;
  color: var(--silver); max-width: 540px;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}

/* Hero stat strip */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(184,200,216,0.12);
  background: rgba(8,15,22,0.5);
  opacity: 0; animation: fadeUp 0.7s 0.85s forwards;
}
.stat-item {
  padding: 28px 32px;
  border-right: 1px solid rgba(184,200,216,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 42px; font-weight: 800;
  color: var(--white); line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.04em; }

/* =========================================================================
   ABOUT / STORY (homepage)
   ========================================================================= */
.about {
  padding: 100px 48px;
  background: #080f16;
  position: relative;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1280px; margin: 0 auto;
  align-items: center;
}
.about-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.about-title {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800; text-transform: uppercase; line-height: 1;
  color: var(--white); margin-bottom: 32px;
}
.about-title em { font-style: normal; color: var(--accent); }
.about-body p {
  font-size: 16px; color: var(--silver); line-height: 1.75;
  margin-bottom: 18px; font-weight: 300;
}
.about-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  padding: 32px; background: var(--steel); border-left: 4px solid var(--accent);
}
.highlight-num {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.highlight-label {
  font-size: 13px; color: var(--silver); line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.highlight-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* =========================================================================
   CAPABILITIES (homepage)
   ========================================================================= */
.capabilities {
  padding: 100px 48px;
  background: var(--navy);
}
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cap-card {
  background: var(--steel);
  padding: 44px 36px;
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.cap-card:hover { background: #1e4060; }
.cap-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-num {
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  color: rgba(184,200,216,0.08); line-height: 1;
  position: absolute; top: 20px; right: 28px;
}
.cap-icon {
  width: 48px; height: 48px; margin-bottom: 24px;
  background: rgba(232,82,10,0.15); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.cap-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.cap-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 14px; line-height: 1.1;
}
.cap-body {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: var(--silver);
}
.cap-tags {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid rgba(184,200,216,0.15);
  padding: 3px 10px; border-radius: 2px;
}

/* =========================================================================
   SERVICES IN DETAIL (homepage) — alternating image/text rows
   ========================================================================= */
.services-detail {
  padding: 100px 48px;
  background: #080f16;
}
.services-detail-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 80px;
}
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.service-row.reverse .service-photo { order: 2; }
.service-row.reverse .service-text  { order: 1; }
.service-row[id] { scroll-margin-top: 100px; }
.service-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel);
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.92) contrast(1.05);
}
.service-row:hover .service-photo img { transform: scale(1.03); }
.service-photo::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent);
  z-index: 2;
}
.service-text .service-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 12px;
}
.service-text h3 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800; text-transform: uppercase; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.service-text h3 em { font-style: normal; color: var(--accent); }
.service-text p {
  font-size: 15px; color: var(--silver); line-height: 1.75;
  font-weight: 300; margin-bottom: 18px;
}
.service-bullets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  margin-top: 8px; list-style: none; padding: 0;
}
.service-bullets li {
  position: relative; padding: 6px 0 6px 18px;
  font-size: 13px; color: var(--silver); line-height: 1.5;
  font-weight: 300;
  border-bottom: 1px solid rgba(184,200,216,0.06);
}
.service-bullets li::before {
  content: '▸'; color: var(--accent);
  position: absolute; left: 0; top: 6px; font-size: 11px;
}
.service-text .btn-ghost { margin-top: 20px; }

/* =========================================================================
   INDUSTRIES (homepage)
   ========================================================================= */
.industries {
  padding: 100px 48px;
  background: #080f16;
}
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 56px;
}
.industry-card {
  position: relative; overflow: hidden;
  padding: 40px 28px;
  background: var(--steel);
  cursor: default;
  transition: background 0.25s;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.industry-card:hover { background: #1e4060; }
.industry-pattern {
  position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  opacity: 0.07;
}
.industry-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  text-transform: uppercase; color: var(--white); margin-bottom: 6px;
}
.industry-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* =========================================================================
   TAGLINE BAND + FEATURED PRODUCTS/STORIES (homepage)
   ========================================================================= */
.tagline-band {
  background: var(--steel);
  padding: 64px 48px;
  border-top: 1px solid rgba(184,200,216,0.10);
  border-bottom: 1px solid rgba(184,200,216,0.10);
}
.tagline {
  max-width: 1100px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--white);
}
.tagline em { font-style: normal; color: var(--accent); }

.featured { padding: 100px 48px; background: var(--navy); }
.featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.feature-card {
  display: flex; flex-direction: column;
  background: var(--steel); border-radius: 6px; overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(184,200,216,0.12);
  transition: transform 0.25s, border-color 0.25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(232,82,10,0.5); }
.feature-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.feature-card:hover .feature-photo img { transform: scale(1.04); }
.feature-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-tag {
  align-self: flex-start;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.feature-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  line-height: 1.1; color: var(--white);
}
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--silver); flex: 1; }
.feature-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent-light);
}

/* =========================================================================
   PROCESS (homepage)
   ========================================================================= */
.process {
  padding: 100px 48px;
  background: var(--navy);
}
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative; margin-top: 64px;
}
.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px; background: rgba(184,200,216,0.15); z-index: 0;
}
.process-step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--steel); border: 2px solid rgba(184,200,216,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--silver);
  transition: background 0.25s, border-color 0.25s;
}
.process-step:hover .step-circle {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.step-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; color: var(--white); margin-bottom: 8px;
}
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================================
   CONTACT (homepage)
   ========================================================================= */
.contact {
  padding: 100px 48px;
  background: var(--steel);
  position: relative; overflow: hidden;
}
.contact::before {
  content: 'CONTACT';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 240px; font-weight: 800;
  color: rgba(255,255,255,0.02); white-space: nowrap; pointer-events: none;
}
.contact-container { max-width: 1280px; margin: 0 auto; position: relative; }
.contact-header { text-align: center; margin-bottom: 64px; }
.contact-header h2 {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 16px;
}
.contact-header h2 em { font-style: normal; color: var(--accent); }
.contact-header p {
  font-size: 16px; color: var(--silver); max-width: 520px; margin: 0 auto; line-height: 1.7;
}
.contact-team {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184,200,216,0.12);
}
.contact-team-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; text-align: center;
}
.contact-team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.contact-team-card {
  text-align: center;
}
.contact-team-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,82,10,0.4);
  transition: border-color 0.25s, transform 0.25s;
  display: block; margin: 0 auto 12px;
  filter: grayscale(15%);
}
.contact-team-card:hover .contact-team-photo {
  border-color: var(--accent);
  transform: scale(1.04);
  filter: grayscale(0);
}
.contact-team-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.1;
}
.contact-team-role {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
  letter-spacing: 0.04em;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  background: rgba(13,27,42,0.6); border: 1px solid rgba(184,200,216,0.1);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
}
.contact-card h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); margin-bottom: 12px;
}
.contact-card p {
  font-size: 14px; color: var(--silver); line-height: 1.65;
  margin-bottom: 6px;
}
.contact-card a { color: var(--accent-light); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card small {
  display: block; font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; margin-bottom: 8px;
}
.hours-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px;
  font-size: 13px;
}
.hours-grid span:nth-child(odd) { color: var(--text-muted); font-weight: 500; }
.hours-grid span:nth-child(even) { color: var(--silver); }

.contact-form {
  background: rgba(13,27,42,0.6); border: 1px solid rgba(184,200,216,0.1);
  padding: 36px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(8,15,22,0.6);
  border: 1px solid rgba(184,200,216,0.15);
  color: var(--white);
  font-family: var(--font-body); font-size: 14px;
  padding: 12px 14px; border-radius: 3px;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; margin-top: 8px; }

/* =========================================================================
   FOOTER — used on every page
   ========================================================================= */
footer {
  background: #060c12;
  padding: 56px 48px 32px;
  border-top: 1px solid rgba(184,200,216,0.08);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: inline-flex; margin-bottom: 14px; }
.footer-brand .logo img { height: 88px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--silver); }
.footer-bottom {
  border-top: 1px solid rgba(184,200,216,0.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.certifications { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px;
  border: 1px solid rgba(232,82,10,0.4); border-radius: 2px; color: var(--accent);
}

/* =========================================================================
   LINE CARD PAGE
   ========================================================================= */
.line-card-section {
  padding: 80px 48px 120px;
  background: var(--navy);
}
.line-card-intro {
  max-width: 1280px; margin: 0 auto 56px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
  align-items: end;
}
.line-card-intro p {
  font-size: 16px; color: var(--silver); line-height: 1.75; font-weight: 300;
  max-width: 640px;
}
.line-card-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
}
.mfr-card {
  background: var(--white);
  aspect-ratio: 5 / 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 18px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  position: relative;
  transition: background 0.25s, transform 0.2s;
  overflow: hidden;
}
.mfr-card[href]:hover { background: var(--light); transform: translateY(-2px); }
/* Non-linked cards — no hover lift, default cursor to indicate non-interactive */
div.mfr-card { cursor: default; }
div.mfr-card:hover { background: #e8eef4; transform: none; }
.mfr-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.mfr-card:hover::before { transform: scaleX(1); }
.mfr-card[href]::after {
  content: '↗';
  position: absolute; top: 8px; right: 10px;
  font-size: 12px; color: var(--accent);
  opacity: 0; transition: opacity 0.2s;
}
.mfr-card[href]:hover::after { opacity: 1; }
.mfr-logo {
  max-width: 82%;
  max-height: 72%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.25s;
}
.mfr-card:hover .mfr-logo { transform: scale(1.04); }
/* =========================================================================
   APPLICATION / PRODUCT DETAIL PAGE (EDGE Controller)
   ========================================================================= */.product-lead {
  font-size: 18px; color: var(--silver); line-height: 1.7;
  font-weight: 300;
}
/* Dark section wrapper — used on EDGE page (Sensors, plus Controllers intro) */
.feature-cards {
  padding: 80px 48px;
  background: #080f16;
}

.product-gallery-section {
  padding: 80px 48px;
  background: var(--navy);
}
.product-gallery-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
/* Responsive video embed (16:9) */.video-container {
  max-width: 1100px; margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(184,200,216,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
/* Three-column heading row with image + bullet card (EDGE controllers section) */
.product-columns {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.product-column {
  background: var(--steel);
  display: flex; flex-direction: column;
}
.product-column-photo {
  background: var(--white);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.product-column-photo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.product-column-photo.is-video {
  padding: 0;
  background: #000;
}
.product-column-photo.is-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.product-column-body {
  padding: 28px 28px 32px;
  border-top: 3px solid var(--accent);
  flex: 1 1 auto;
}
.product-column-body h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 14px; line-height: 1.15;
}
.product-column-body p {
  font-size: 14px; color: var(--silver); line-height: 1.7;
  font-weight: 300; margin-bottom: 12px;
}
.product-column-body ul {
  list-style: none; padding: 0;
}
.product-column-body li {
  position: relative; padding: 8px 0 8px 20px;
  font-size: 14px; color: var(--silver); line-height: 1.55;
  font-weight: 300;
  border-bottom: 1px solid rgba(184,200,216,0.06);
}
.product-column-body li:last-child { border-bottom: none; }
.product-column-body li::before {
  content: '▸'; color: var(--accent);
  position: absolute; left: 0; top: 8px; font-size: 11px;
}

/* Carousel — used for Actuators section */
.mw-carousel {
  max-width: 1280px; margin: 0 auto;
  background: var(--steel);
}
.mw-carousel-stage {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.mw-carousel-photo {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  position: relative;
}
.mw-carousel-photo img {
  max-width: 100%; max-height: 480px;
  object-fit: contain;
}
.mw-carousel-text {
  padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 4px solid var(--accent);
}
.mw-carousel-slide {
  display: none;
  animation: fadeUp 0.4s ease both;
}
.mw-carousel-slide.is-active { display: block; }
.mw-carousel-slide .slide-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.mw-carousel-slide h3 {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800; text-transform: uppercase; line-height: 1.1;
  color: var(--white); margin-bottom: 18px;
}
.mw-carousel-slide h3 em { font-style: normal; color: var(--accent); }
.mw-carousel-slide p {
  font-size: 15px; color: var(--silver); line-height: 1.7;
  font-weight: 300; margin-bottom: 16px;
}
.mw-carousel-slide ul {
  list-style: none; padding: 0;
}
.mw-carousel-slide li {
  position: relative; padding: 8px 0 8px 20px;
  font-size: 14px; color: var(--silver); line-height: 1.5;
  font-weight: 300;
  border-bottom: 1px solid rgba(184,200,216,0.06);
}
.mw-carousel-slide li:last-child { border-bottom: none; }
.mw-carousel-slide li::before {
  content: '▸'; color: var(--accent);
  position: absolute; left: 0; top: 8px; font-size: 11px;
}
.mw-carousel-controls {
  display: flex; gap: 12px;
  padding: 16px;
  background: #080f16;
  border-top: 1px solid rgba(184,200,216,0.08);
  overflow-x: auto;
}
.mw-carousel-thumb {
  background: var(--steel);
  border: 2px solid transparent;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  flex: 0 0 auto;
}
.mw-carousel-thumb:hover { transform: translateY(-2px); }
.mw-carousel-thumb.is-active { border-color: var(--accent); }
.mw-carousel-thumb img {
  width: 72px; height: 72px;
  object-fit: contain;
  display: block;
  background: var(--white);
}
.mw-carousel-thumb-label {
  font-size: 10px; color: var(--silver); margin-top: 6px;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
  max-width: 90px;
}

/* Sensor gallery — three images + single caption */.sensor-tile {
  background: var(--white);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.gallery-tile {
  background: var(--steel);
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column;
  padding: 0;
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.gallery-tile-photo {
  flex: 1 1 auto;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.gallery-tile-photo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}
.gallery-tile:hover .gallery-tile-photo img { transform: scale(1.04); }
.gallery-tile-label {
  padding: 20px 28px;
  border-top: 3px solid var(--accent);
  background: var(--steel);
}
.gallery-tile-label h4 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  text-transform: uppercase; color: var(--white); margin-bottom: 6px;
}
.gallery-tile-label p {
  font-size: 13px; color: var(--silver); line-height: 1.55; font-weight: 300;
}

.downloads-section {
  padding: 80px 48px;
  background: #080f16;
}
.downloads-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 40px;
}
.download-card {
  background: var(--steel);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  text-decoration: none;
  display: flex; align-items: center; gap: 20px;
  transition: background 0.2s, transform 0.15s;
}
.download-card:hover { background: #1e4060; transform: translateY(-2px); }
.download-card svg { width: 32px; height: 32px; fill: var(--accent); flex-shrink: 0; }
.download-card-text {
  font-family: var(--font-body);
  font-size: 14px; color: var(--white); font-weight: 500;
  line-height: 1.3;
}
.download-card-text small {
  display: block; font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px; font-weight: 400;
}

/* =========================================================================
   NEWS PAGE
   ========================================================================= */
.news-section {
  padding: 80px 48px 120px;
  background: var(--navy);
}
.news-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.news-card {
  background: var(--steel);
  padding: 0;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: background 0.25s;
  position: relative; overflow: hidden;
}
.news-card:hover { background: #1e4060; }
.news-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
  z-index: 2;
}
.news-card:hover::before { transform: scaleX(1); }
.news-card-image {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(184,200,216,0.08);
  position: relative; overflow: hidden;
}
.news-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(184,200,216,0.04) 19px, rgba(184,200,216,0.04) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(184,200,216,0.04) 39px, rgba(184,200,216,0.04) 40px);
}
.news-card-image-label {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.news-card-body { padding: 28px 32px; }
.news-card-date {
  font-size: 11px; color: var(--accent); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
.news-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: var(--white); line-height: 1.15;
  margin-bottom: 10px;
}
.news-card-subtitle {
  font-size: 14px; color: var(--silver); line-height: 1.6;
  font-weight: 300;
}
.news-card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 12px; color: var(--accent); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.news-card-more::after { content: '→'; }

/* News card with a real photo (add class .has-photo to .news-card-image
   and drop an <img> inside; the category/date label becomes a corner badge) */
.news-card-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  z-index: 0;
}
.news-card-image.has-photo::after { opacity: 0.4; }
.news-card-image.has-photo .news-card-image-label {
  position: absolute; z-index: 2; bottom: 12px; left: 12px;
  padding: 6px 11px; background: rgba(13,27,42,0.82);
  color: var(--white); backdrop-filter: blur(2px);
}

/* =========================================================================
   CAREERS PAGE
   ========================================================================= */
.careers-intro {
  padding: 80px 48px 40px;
  background: var(--navy);
}
.careers-intro-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px;
  align-items: start;
}
.careers-intro p {
  font-size: 16px; color: var(--silver); line-height: 1.75;
  font-weight: 300; margin-bottom: 16px;
}
.careers-locations {
  display: flex; flex-direction: column; gap: 16px;
}
.careers-locations .contact-card { background: var(--steel); }

.openings-section {
  padding: 60px 48px 80px;
  background: var(--navy);
}
.openings-list {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
.opening-card {
  background: var(--steel);
  padding: 28px 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 24px;
  align-items: center;
  transition: background 0.2s;
}
.opening-card:hover { background: #1e4060; }
.opening-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
}
.opening-meta {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.opening-meta strong { color: var(--silver); display: block; font-weight: 600; font-size: 13px; }
.opening-placeholder {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 36px;
  background: var(--steel);
  border-left: 4px solid var(--accent);
  text-align: center;
}
.opening-placeholder h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  text-transform: uppercase; color: var(--white); margin-bottom: 12px;
}
.opening-placeholder p {
  font-size: 15px; color: var(--silver); line-height: 1.7;
  max-width: 560px; margin: 0 auto; font-weight: 300;
}

.application-section {
  padding: 100px 48px;
  background: var(--steel);
  position: relative; overflow: hidden;
}
.application-section::before {
  content: 'APPLY';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 280px; font-weight: 800;
  color: rgba(255,255,255,0.02); white-space: nowrap; pointer-events: none;
}
.application-container {
  max-width: 720px; margin: 0 auto; position: relative;
}
.application-container .section-eyebrow { text-align: center; }
.application-container .section-title { text-align: center; margin-bottom: 16px; }
.application-intro {
  text-align: center; font-size: 16px; color: var(--silver);
  line-height: 1.7; font-weight: 300; margin-bottom: 48px;
}
.application-form {
  background: rgba(13,27,42,0.6); border: 1px solid rgba(184,200,216,0.1);
  padding: 36px;
}
.application-form .form-field input[type="file"] {
  padding: 10px 14px;
  font-size: 13px; color: var(--silver);
  cursor: pointer;
}
.application-form .form-field input[type="file"]::file-selector-button {
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; margin-right: 14px;
  border: none; border-radius: 3px; cursor: pointer;
  transition: background 0.2s;
}
.application-form .form-field input[type="file"]::file-selector-button:hover {
  background: var(--accent-light);
}
.file-hint {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
  letter-spacing: 0.04em;
}

/* =========================================================================
   ARTICLE / NEWS POST PAGE
   ========================================================================= */
.article {
  padding: 60px 48px 100px;
  background: var(--navy);
}
.article-inner {
  max-width: 780px; margin: 0 auto;
}
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none; margin-bottom: 40px;
  transition: color 0.2s;
}
.article-back::before { content: '←'; }
.article-back:hover { color: var(--accent-light); }
.article-meta {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
  color: var(--white); margin-bottom: 16px;
}
.article-title em { font-style: normal; color: var(--accent); }
.article-subtitle {
  font-size: 18px; color: var(--silver); line-height: 1.6;
  font-weight: 300; margin-bottom: 40px;
}
.article-divider {
  width: 60px; height: 3px; background: var(--accent);
  border: none; margin: 0 0 40px 0;
}
.article-hero { margin: 0 0 40px; }
.article-hero img {
  display: block; width: 100%; max-width: 440px; margin: 0 auto;
  border: 1px solid rgba(184,200,216,0.1);
}
.article-hero figcaption {
  margin-top: 12px; text-align: center;
  font-size: 13px; color: var(--text-muted); font-weight: 300;
  font-style: italic;
}
.article-body { font-size: 16px; color: var(--silver); line-height: 1.85; font-weight: 300; }
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-top: 40px; margin-bottom: 16px; letter-spacing: 0.02em;
}
.article-body h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  text-transform: uppercase; color: var(--accent);
  margin-top: 32px; margin-bottom: 12px; letter-spacing: 0.06em;
}
.article-body ul {
  list-style: none; padding: 0; margin-bottom: 20px;
}
.article-body ul li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  color: var(--silver);
}
.article-body ul li::before {
  content: '▸'; color: var(--accent);
  position: absolute; left: 0; top: 0;
}
.article-body a { color: var(--accent-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 0 16px 24px;
  margin: 32px 0;
  font-size: 18px; color: var(--white); font-style: italic;
  font-weight: 300; line-height: 1.6;
}
.article-body blockquote cite {
  display: block; margin-top: 12px;
  font-size: 13px; color: var(--text-muted); font-style: normal;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.article-footer {
  margin-top: 60px; padding-top: 32px;
  border-top: 1px solid rgba(184,200,216,0.12);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.article-footer-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* =========================================================================
   ABOUT PAGE — TEAM GRID
   ========================================================================= */
.team-section {
  padding: 100px 48px;
  background: var(--navy);
}
.team-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
}
.team-card {
  background: var(--steel);
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.team-card:hover { background: #1e4060; }
.team-photo {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.02);
  transition: filter 0.3s, transform 0.5s;
}
.team-card:hover .team-photo { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.team-info {
  padding: 20px 24px 24px;
  border-top: 3px solid var(--accent);
}
.team-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  text-transform: uppercase; color: var(--white); margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.team-role {
  font-size: 12px; color: var(--accent); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.values-section {
  padding: 100px 48px;
  background: #080f16;
}
.values-grid {
  max-width: 1280px; margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.value-card {
  background: var(--steel); padding: 40px 36px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.value-card:hover { border-bottom-color: var(--accent); background: #1e4060; }
.value-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px;
}
.value-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 14px; line-height: 1.15;
}
.value-card p {
  font-size: 14px; color: var(--silver); line-height: 1.7; font-weight: 300;
}

/* =========================================================================
   MOBILE NAV / HAMBURGER
   ========================================================================= */
.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; display: block; position: absolute;
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s, top 0.3s, opacity 0.2s;
}
.nav-toggle span { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--white);
  padding: 10px 20px; z-index: 1000;
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
}
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* CTA heading — used in the final section of most pages */
.cta-heading {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; text-transform: uppercase; line-height: 1.05;
  margin-bottom: 20px;
}
.cta-heading em { font-style: normal; color: var(--accent); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Stack the hero before the main mobile breakpoint: between ~900–1100px the
   two-column hero squeezes the video too small, because the large display
   headline still needs most of the width. Go single-column sooner so the video
   sits full-width below the headline instead. */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 900px) {
  nav { padding: 0 20px; height: 84px; }
  .nav-toggle { display: block; }
  .logo img { height: 68px; }

  nav ul {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch;
    gap: 0 !important;
    background: rgba(13,27,42,0.98);
    backdrop-filter: blur(8px);
    padding: 24px 20px 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  nav ul.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  nav ul li { display: block !important; border-bottom: 1px solid rgba(184,200,216,0.08); }
  nav ul li:last-child { border-bottom: none; margin-top: 16px; }
  nav ul a {
    display: block; padding: 16px 8px;
    font-size: 15px !important;
  }
  nav ul .nav-cta {
    display: inline-block;
    width: max-content; padding: 12px 28px;
  }
  .nav-dropdown > a::after { display: none; }
  .dropdown-menu {
    position: static; opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    background: transparent; border: none;
    padding: 0 0 0 16px; min-width: 0;
  }
  .dropdown-menu a { padding: 10px 8px; font-size: 13px !important; color: var(--text-muted); }

  .hero, .about, .capabilities, .industries, .process, .contact, .page-header,
  .tagline-band, .featured,
  .line-card-section, .product-intro, .feature-cards, .product-gallery-section,
  .downloads-section, .news-section, .careers-intro, .openings-section, .application-section,
  .article, .team-section, .values-section {
    padding-left: 20px; padding-right: 20px;
  }
  .hero { padding-top: 100px; padding-bottom: 240px; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .caps-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(184,200,216,0.12); }
  .form-row { grid-template-columns: 1fr; }
  .line-card-grid { grid-template-columns: repeat(2, 1fr); }
  .line-card-intro { grid-template-columns: 1fr; gap: 24px; align-items: start; }  .product-gallery-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .opening-card { grid-template-columns: 1fr; gap: 10px; padding: 24px 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }  .product-columns { grid-template-columns: 1fr; }
  .mw-carousel-stage { grid-template-columns: 1fr; min-height: 0; }
  .mw-carousel-text { padding: 36px 24px; border-left: none; border-top: 4px solid var(--accent); }
  .mw-carousel-photo { padding: 24px; }  .sensor-caption { padding: 24px 20px; }
  .contact-team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-team-grid > :nth-child(4), .contact-team-grid > :nth-child(5) { grid-column: auto; }
  .contact-team-photo { width: 72px; height: 72px; }
  .services-detail { padding-left: 20px; padding-right: 20px; }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .service-row.reverse .service-photo { order: 0; }
  .service-row.reverse .service-text { order: 0; }
  .service-bullets { grid-template-columns: 1fr; }
}
