/* =========================================================
   FOCUS MACHINE LTD. — Brand Design System v2
   Premium industrial / engineering visual language.
   Mobile-first. Semantic HTML5. Flexbox + Grid. No frameworks.

   Font loading: Space Grotesk + Inter are requested via a <link>
   tag in each page's <head>, not @import — @import blocks font
   discovery until this whole file is parsed first.
   ========================================================= */

:root {
  /* ---- Color: deep navy / steel gray / industrial blue / amber ---- */
  --navy-950: #04101f;
  --navy-900: #081b33;
  --navy-800: #0e2a4c;
  --navy-700: #16406f;
  --navy-600: #1d5590;

  --steel-700: #3c4a5c;
  --steel-500: #667a8f;
  --steel-300: #a7b6c6;
  --steel-150: #dde4eb;
  --steel-100: #eef2f6;

  --white: #ffffff;
  --paper: #fafbfc;

  --blue-600: #1e56c9;
  --blue-500: #2f6fef;
  --blue-100: #e6eefd;

  --amber-500: #ef9b1d;
  --amber-600: #cf7e0a;
  --amber-100: #fdecd2;

  --text-body: #16212e;
  --text-muted: #57677a;
  --text-on-dark: #eef3f8;
  --text-on-dark-muted: #a9bad0;

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --fs-h1: clamp(2.6rem, 3.2vw + 1.6rem, 5.25rem);
  --fs-h2: clamp(2rem, 1.6vw + 1.5rem, 3.1rem);
  --fs-h3: clamp(1.3rem, 0.6vw + 1.1rem, 1.65rem);
  --fs-lede: clamp(1.1rem, 0.4vw + 1rem, 1.3rem);
  --fs-stat: clamp(2.4rem, 2vw + 1.6rem, 3.6rem);

  /* ---- Layout ---- */
  --container: 1360px;
  --container-narrow: 820px;
  --gutter: 1.5rem;
  --section-pad: clamp(4.5rem, 7vw, 8.5rem);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(4, 16, 31, 0.08);
  --shadow-md: 0 12px 32px rgba(4, 16, 31, 0.14);
  --shadow-lg: 0 28px 64px rgba(4, 16, 31, 0.22);
  --shadow-navy: 0 20px 48px rgba(8, 27, 51, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur-med: 480ms;
  --dur-slow: 800ms;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
/* Phone-only: the shared clamp() floor still runs long hero headlines to
   4+ lines on narrow screens. Scoped here so tablet/desktop are untouched. */
@media (max-width: 480px) {
  .hero h1, .page-hero h1 { font-size: clamp(2.1rem, 8vw, 2.5rem); }
}

p { margin: 0 0 1.1em; color: var(--text-muted); }
strong { color: var(--text-body); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber-500); color: var(--navy-950);
  font-weight: 700; padding: 0.85em 1.4em; z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(239, 155, 29, 0.32);
}
.btn-cta:hover { box-shadow: 0 16px 36px rgba(239, 155, 29, 0.42); }

.btn-light {
  background: var(--white); color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--text-on-dark);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-outline-dark {
  background: transparent; border-color: var(--steel-150); color: var(--navy-900);
}
.btn-outline-dark:hover { border-color: var(--navy-800); background: var(--steel-100); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--navy-800); padding: 0; border: none; background: none;
}
.btn-text svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }
.btn-text-light { color: var(--white); }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding-block: 1.35rem;
  transition: background var(--dur-med) var(--ease), padding var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container.header-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.site-header.is-scrolled {
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 rgba(4, 16, 31, 0.06), 0 12px 32px rgba(4, 16, 31, 0.06);
  border-color: var(--steel-150);
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

/* Legacy logo, used exactly as-is. Rather than mounting it on a hard-edged
   white card (which reads as a sticker pasted on top), the logo's own light
   background is feathered into transparency at every edge, so it dissolves
   into whatever sits behind it instead of sitting in a visible box. */
.brand-plaque {
  --plaque-fade: radial-gradient(ellipse 78% 72% at 50% 50%, #000 50%, transparent 100%);
  background: #f6f5fc;
  padding: 12px 20px;
  display: inline-flex; align-items: center;
  mask-image: var(--plaque-fade);
  -webkit-mask-image: var(--plaque-fade);
  transition: transform var(--dur-med) var(--ease);
}
.is-scrolled .brand-plaque { transform: scale(0.94); }
.logo-crop { display: block; width: 168px; height: 42px; overflow: hidden; position: relative; }
.logo-crop img { position: absolute; top: -2px; left: 0; width: 305px; height: auto; max-width: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--white);
  cursor: pointer; flex: none; transition: border-color var(--dur-fast), color var(--dur-fast);
}
.is-scrolled .nav-toggle { border-color: var(--steel-150); color: var(--navy-900); }
.nav-toggle svg { width: 22px; height: 22px; }
.icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile off-canvas drawer — the only nav UI below 960px */
.site-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); height: 100vh;
  background: var(--navy-950); padding: 6.5rem 1.75rem 2rem;
  transform: translateX(110vw);
  transition: transform var(--dur-med) var(--ease);
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }

.nav-list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--text-on-dark); padding: 0.95em 0.15em; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-list a[aria-current="page"] { color: var(--amber-500); }
.nav-cta { display: block; }

/* Desktop: logo stays left, navigation reads naturally to its right */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; width: auto; height: auto; background: transparent; padding: 0;
    transform: none; display: flex; align-items: center; gap: 2.25rem; overflow: visible;
  }

  .nav-list { flex-direction: row; align-items: center; gap: 0.1rem; margin: 0; }
  .nav-list a {
    position: relative; border-bottom: none;
    font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.01em;
    padding: 0.6em 0.9em; color: var(--text-on-dark);
    transition: color var(--dur-fast) var(--ease);
  }
  .is-scrolled .nav-list a { color: var(--navy-900); }
  .nav-list a::after {
    content: ""; position: absolute; left: 50%; right: 50%; bottom: 0.35em; height: 2px;
    background: var(--amber-500); transition: left var(--dur-med) var(--ease), right var(--dur-med) var(--ease);
  }
  .nav-list a:hover::after { left: 0.9em; right: 0.9em; }
  .nav-list a[aria-current="page"] { color: var(--amber-500); }
  /* navy-900, not amber — amber-600 text on the scrolled header's near-white
     background measures 3.16:1, below the 4.5:1 WCAG AA threshold for this
     text size. The amber underline below still carries the "current page" cue. */
  .is-scrolled .nav-list a[aria-current="page"] { color: var(--navy-900); }
  .nav-list a[aria-current="page"]::after { left: 0.9em; right: 0.9em; }

  .nav-cta { flex: none; }
}

/* ---------------- Kicker / eyebrow ---------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 30px; height: 2px; background: var(--amber-500); flex: none; }
/* .kicker.kicker-light (not just .kicker-light) so this reliably beats
   .section-dark p's color rule — same specificity family, same weight. */
.kicker.kicker-light { color: var(--amber-500); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p { font-size: var(--fs-lede); }

/* ---------------- Sections ---------------- */
.section { padding-block: var(--section-pad); position: relative; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy-950); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark strong { color: var(--white); }

.section-dark {
  background-image:
    radial-gradient(900px 500px at 88% 0%, rgba(47, 111, 239, 0.18), transparent 60%),
    radial-gradient(700px 420px at 6% 100%, rgba(239, 155, 29, 0.08), transparent 60%);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--text-on-dark);
  background:
    radial-gradient(1200px 640px at 82% -8%, rgba(47, 111, 239, 0.28), transparent 58%),
    radial-gradient(900px 520px at 8% 108%, rgba(239, 155, 29, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 48%, var(--navy-800) 100%);
  overflow: hidden;
  padding-top: 6rem;
}

.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 620px at 76% 34%, #000 0%, transparent 72%);
}

.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay; }

.hero-inner {
  position: relative; width: 100%;
  padding-block: 3rem 8rem;
  display: grid; gap: 3rem;
}

.hero-copy { max-width: 44rem; }

.hero h1 { color: var(--white); margin-bottom: 0.55em; }
.hero h1 em { font-style: normal; color: var(--amber-500); }

.hero-lede { color: var(--text-on-dark-muted); font-size: var(--fs-lede); max-width: 38ch; margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 820px; margin-inline: auto;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 239, 0.32), transparent 68%);
  filter: blur(10px);
}
.hero-visual svg { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }
.hero-spin { animation: spin-slow 70s linear infinite; transform-origin: 300px 300px; }
.hero-spin-rev { animation: spin-slow-rev 90s linear infinite; transform-origin: 300px 300px; }
.hero-pulse { animation: pulse-soft 3.4s ease-in-out infinite; transform-origin: 300px 300px; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { to { transform: rotate(-360deg); } }
@keyframes pulse-soft { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-spin, .hero-spin-rev, .hero-pulse { animation: none; } }

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 0.92fr 1.08fr; align-items: center; padding-block: 4rem 10rem; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-on-dark-muted); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue svg { width: 18px; height: 18px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------------- Trust bar (glass, overlapping hero) ---------------- */
.trust-bar {
  position: relative; z-index: 5; margin-top: -6rem;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-lg);
}
.trust-item {
  background: rgba(8, 27, 51, 0.62);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
}
.trust-item strong {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}
.trust-item span { font-size: 0.82rem; color: var(--text-on-dark-muted); font-weight: 500; }
.trust-item svg { width: 26px; height: 26px; color: var(--amber-500); margin-bottom: 0.5rem; }

@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1140px) {
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------------- Split (alternating) layout ---------------- */
.split {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split.reverse .split-media { order: 2; }
  .split.reverse .split-copy { order: 1; }
}

.split-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-md);
  border: 1px solid var(--steel-150);
}
.split-media img { width: 100%; height: 100%; object-fit: contain; }
.split-media.pad { padding: 2.5rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }

/* Real photography, presented as itself — no CAD "staging" background,
   no medallion ring. A gentle contrast/saturation lift and a slight
   crop (less sky, less foreground pavement) is all it needs. */
.facility-photo { aspect-ratio: 2.4/1; }
.facility-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  filter: saturate(1.08) contrast(1.05);
}
.facility-photo-caption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(4, 16, 31, 0.72); color: var(--text-on-dark);
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.5em 0.9em; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.split-copy .stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--steel-150); }
.split-copy .stat-row div strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-900); font-weight: 700; }
.split-copy .stat-row div span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------------- Pillar / feature grid ---------------- */
.grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  background: var(--white); border: 1px solid var(--steel-150); border-radius: var(--radius-md);
  padding: 2.25rem; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  box-shadow: 0 10px 22px rgba(14, 42, 76, 0.28);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 0.5rem; color: var(--navy-900); }
.pillar p { margin-bottom: 0; font-size: 0.96rem; color: var(--text-muted); }

/* ---------------- Capability cards ---------------- */
.cap-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  border: 1px solid var(--steel-150);
}
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cap-card-media { aspect-ratio: 5/4; overflow: hidden; display:flex; align-items:center; justify-content:center; flex: none; }
.cap-card-media img { max-width: 78%; max-height: 78%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); transition: transform var(--dur-slow) var(--ease); mix-blend-mode: lighten; }
.cap-card:hover .cap-card-media img { transform: scale(1.06); }
.cap-card-body { padding: 1.75rem; background: var(--white); flex: 1; }
.cap-card-spec {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--blue-600); background: var(--blue-100);
  padding: 0.35em 0.8em; border-radius: var(--radius-pill); margin-bottom: 0.85rem;
}
.cap-card h3 { margin-bottom: 0.4rem; font-size: 1.2rem; color: var(--navy-900); }
.cap-card p { font-size: 0.92rem; margin-bottom: 0.85rem; color: var(--text-muted); }
.cap-card .btn-text { font-size: 0.85rem; }

/* ---------------- Component gallery (dark cards) ---------------- */
.component-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem; text-align: center;
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.component-card:hover { transform: translateY(-6px); border-color: rgba(239,155,29,0.4); }
.component-card img { aspect-ratio: 1/1; object-fit: contain; margin-inline: auto; margin-bottom: 1rem; }
.component-card span { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text-on-dark); }

/* ---------------- Industry chips ---------------- */
.industry-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--steel-150); border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card .icon-tile {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--amber-100); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
}
.industry-card .icon-tile svg { width: 22px; height: 22px; }
.industry-card strong { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--navy-900); }
.industry-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; display: grid; gap: 2.75rem; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--steel-150), var(--steel-150));
}
.timeline-item { position: relative; padding-left: 4.5rem; }
.timeline-num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(14, 42, 76, 0.3);
  z-index: 1;
}
.timeline-item h3 { margin-bottom: 0.4rem; }
.timeline-item p { margin-bottom: 0; }

/* Alternating spine layout once there's room either side of a centered column */
@media (min-width: 860px) {
  .timeline {
    max-width: 1020px; margin-inline: auto;
    grid-template-columns: 1fr 68px 1fr; column-gap: 0; row-gap: 3.25rem;
  }
  .timeline::before { left: 50%; top: 4px; bottom: 4px; transform: translateX(-50%); }
  .timeline-item {
    grid-column: 1; padding-left: 0; padding-right: 2.75rem; text-align: right;
  }
  .timeline-item:nth-child(even) {
    grid-column: 3; padding-right: 0; padding-left: 2.75rem; text-align: left;
  }
  .timeline-num { left: auto; right: -34px; top: 50%; transform: translateY(-50%); }
  .timeline-item:nth-child(even) .timeline-num { right: auto; left: -34px; }
}

/* Compact variant: always single-column, left-aligned — for use inside narrower columns */
.timeline-compact { display: grid; gap: 2rem; max-width: none; margin-inline: 0; }
.timeline-compact.timeline { grid-template-columns: 1fr !important; }
.timeline-compact::before { left: 23px !important; top: 6px; bottom: 6px; transform: none !important; }
.timeline-compact .timeline-item,
.timeline-compact .timeline-item:nth-child(even) {
  grid-column: 1 !important; padding-left: 3.75rem !important; padding-right: 0 !important; text-align: left !important;
}
.timeline-compact .timeline-num,
.timeline-compact .timeline-item:nth-child(even) .timeline-num {
  left: 0 !important; right: auto !important; top: 0 !important; transform: none !important;
  width: 48px; height: 48px; font-size: 0.95rem;
}

/* ---------------- Certification badge cards ---------------- */
.cert-card {
  background: linear-gradient(165deg, var(--white), var(--paper));
  border-radius: var(--radius-lg); border: 1px solid var(--steel-150);
  padding: clamp(2.25rem, 3vw, 3.25rem); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.cert-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-600); }
.cert-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-100), transparent 70%);
}
.cert-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber-500), var(--blue-600));
}
.cert-card .cert-check {
  width: 68px; height: 68px; border-radius: 50%; background: var(--navy-950); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative;
  box-shadow: 0 12px 28px rgba(4, 16, 31, 0.28);
}
.cert-card .cert-check::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px dashed var(--steel-300);
}
.cert-card .cert-check svg { width: 30px; height: 30px; }
.cert-card h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2vw, 2.1rem); margin-bottom: 0.35rem; color: var(--navy-900); }
.cert-card p { color: var(--text-muted); margin-bottom: 0; }
.cert-card .cert-scope { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--blue-600); text-transform: uppercase; margin-bottom: 1rem; display: block; }

/* ---------------- Stat strip ---------------- */
.stat-strip { display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 560px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .stat strong { display: block; font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 700; color: var(--white); white-space: nowrap; }
.stat-strip .stat span { font-size: 0.82rem; color: var(--text-on-dark-muted); letter-spacing: 0.02em; }

/* Inside a half-width split column, 4-up gets cramped — settle at 2-up until there's real room */
.split .stat-strip { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .split .stat-strip { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 380px at 90% 10%, rgba(239, 155, 29, 0.16), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-banner p { color: var(--text-on-dark-muted); margin-bottom: 0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 860px) { .cta-banner { grid-template-columns: 1.3fr auto; } }

/* ---------------- Quote / contact cards ---------------- */
.contact-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--white); border: 1px solid var(--steel-150); border-radius: var(--radius-md);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card .icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-950); color: var(--amber-500); display: flex; align-items: center; justify-content: center; }
.contact-card .icon-tile svg { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: 0.2rem; font-size: 1.05rem; color: var(--navy-900); }
.contact-card p { margin-bottom: 0; font-size: 0.92rem; color: var(--text-muted); }

.quote-checklist {
  background: var(--paper); border: 1px solid var(--steel-150); border-radius: var(--radius-md);
  padding: 2rem;
}
.quote-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.quote-checklist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-body); }
.quote-checklist li svg { width: 20px; height: 20px; color: var(--amber-600); flex: none; margin-top: 0.15em; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--navy-900); }
.field .hint { font-size: 0.76rem; color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.85em 1em; border: 1.5px solid var(--steel-150); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-body);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); outline: none;
}
fieldset { border: 1.5px solid var(--steel-150); border-radius: var(--radius-md); padding: 1.4rem; margin: 0; }
legend { font-family: var(--font-display); font-weight: 700; padding: 0 0.5em; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 500; color: var(--text-body); }
.form-note {
  font-size: 0.86rem; color: var(--text-muted); background: var(--paper);
  border-left: 3px solid var(--amber-500); padding: 1em 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.form-mailto-confirm {
  margin-top: 1.25rem; font-size: 0.9rem; color: var(--navy-900); background: var(--blue-100);
  border-left: 3px solid var(--blue-500); padding: 1em 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------------- Misc ---------------- */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-900); background: var(--steel-100); padding: 0.35em 0.85em; border-radius: var(--radius-pill);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--steel-150); border: none; margin: 0; }

.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; padding: 0; margin: 0 0 1.2rem; font-size: 0.8rem; color: var(--text-on-dark-muted); }
.breadcrumbs a { color: var(--text-on-dark-muted); }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4em; opacity: 0.6; }

.page-hero {
  position: relative; padding-block: 8.5rem 4.5rem; color: var(--text-on-dark);
  background:
    radial-gradient(900px 480px at 84% -10%, rgba(47, 111, 239, 0.24), transparent 58%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-800) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 460px at 80% 20%, #000 0%, transparent 72%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 0.45em; }
.page-hero p.lede { color: var(--text-on-dark-muted); max-width: 56ch; font-size: var(--fs-lede); margin-bottom: 0; }

/* ---------------- Gallery grid (capability detail images) ---------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--steel-150); aspect-ratio: 4/3;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img { max-width: 74%; max-height: 74%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); transition: transform var(--dur-slow) var(--ease); display: block; margin: auto; position: relative; mix-blend-mode: lighten; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item { cursor: zoom-in; position: relative; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-med) var(--ease);
  background: radial-gradient(circle at center, rgba(47,111,239,0.14), transparent 70%);
}
.gallery-item:hover::after { opacity: 1; }

/* ================================================================
   Product presentation: staged, atmospheric product photography
   ================================================================ */

/* Shared "staged" background — every product image container on the
   site draws from this one atmosphere so the presentation reads as
   one system, not four different treatments. */
.product-stage, .cap-card-media, .gallery-item {
  position: relative;
  --spot-x: 50%; --spot-y: 38%;
  background:
    radial-gradient(ellipse 70% 55% at var(--spot-x) var(--spot-y), rgba(47, 111, 239, 0.18), transparent 65%),
    linear-gradient(165deg, var(--navy-900), var(--navy-950));
  isolation: isolate;
}
.product-stage::before, .cap-card-media::before, .gallery-item::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(65% 65% at 50% 45%, #000 0%, transparent 78%);
}
.product-stage {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem);
  perspective: 900px;
}
.product-stage-figure {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: 100%;
  transform-style: preserve-3d;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* Source renders sit on a near-solid black backdrop. "lighten" keeps
     each pixel at max(pixel, stage-background) — black merges into the
     dark stage, the actual part is already brighter so it's unaffected.
     Applied here rather than on the <img> itself: the image's own
     translateZ/animation promotes it to its own compositing layer,
     which breaks mix-blend-mode in that spot. */
  mix-blend-mode: lighten;
}
.product-stage img {
  max-width: 100%; max-height: 260px; width: auto; height: auto;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5));
  animation: product-float 7s ease-in-out infinite;
  transition: transform var(--dur-slow) var(--ease);
  transform: translateZ(30px);
}
/* Medallion framing — for the small circular-crop source images where
   the crop itself can't be redone; the ring turns a hard edge into a
   deliberate presentation instead of an accidental one. */
.product-stage-figure.is-medallion img {
  border-radius: 50%;
  max-height: 190px;
  border: 3px solid rgba(239, 155, 29, 0.6);
  box-shadow: 0 0 0 9px rgba(239, 155, 29, 0.09), 0 20px 28px rgba(0, 0, 0, 0.5);
}
.product-stage-shadow {
  width: 56%; height: 16px; border-radius: 50%; flex: none;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 72%);
  animation: product-shadow 7s ease-in-out infinite;
  transition: transform 350ms ease, opacity 350ms ease;
}
@keyframes product-float { 0%, 100% { transform: translateZ(30px) translateY(0); } 50% { transform: translateZ(30px) translateY(-9px); } }
@keyframes product-shadow { 0%, 100% { transform: scaleX(1); opacity: 0.55; } 50% { transform: scaleX(0.82); opacity: 0.32; } }
@media (prefers-reduced-motion: reduce) {
  .product-stage img, .product-stage-shadow { animation: none; }
  .product-stage-figure { transition: none; }
}
/* Tilt is a desktop, fine-pointer enhancement only — never on touch */
@media (hover: none), (pointer: coarse) {
  .product-stage-figure { transform: none !important; }
}

/* ---- CNC turning schematic: an honest animated diagram, not stock
   footage — reuses the hero illustration's technical-drawing language
   (dimension lines, viewfinder corners, amber/blue accents). ---- */
.cnc-scene { padding: 1.5rem; }
.cnc-scene-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45)); }
.cnc-spin { animation: cnc-spin-ring 6s linear infinite; }
.cnc-spin-sheen { animation: cnc-sheen 2.6s ease-in-out infinite; }
.cnc-tool { animation: cnc-tool-pass 3.4s ease-in-out infinite; }
.cnc-chip { animation: cnc-chip-fly 3.4s ease-in-out infinite; }
.cnc-chip-b { animation: cnc-chip-fly-b 3.4s ease-in-out infinite; animation-delay: 0.4s; }
@keyframes cnc-spin-ring { to { transform: rotate(360deg); } }
@keyframes cnc-sheen { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.16; } }
@keyframes cnc-tool-pass { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes cnc-chip-fly {
  0%, 20% { opacity: 0; transform: translate(0, 0); }
  35% { opacity: 1; }
  60% { opacity: 0; transform: translate(14px, -16px); }
  100% { opacity: 0; }
}
@keyframes cnc-chip-fly-b {
  0%, 25% { opacity: 0; transform: translate(0, 0); }
  40% { opacity: 1; }
  65% { opacity: 0; transform: translate(-10px, -12px); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cnc-spin, .cnc-spin-sheen, .cnc-tool, .cnc-chip, .cnc-chip-b { animation: none; }
}

/* ---- CMM inspection schematic: same honest-diagram approach, themed to
   the quality/commitment copy it sits beside rather than reusing the
   turning-operation animation from the homepage. ---- */
.qc-scene { padding: 1.5rem; }
.qc-scene-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45)); }
.qc-probe { animation: qc-probe-cycle 4s ease-in-out infinite; }
.qc-pulse { animation: qc-pulse-ring 4s ease-in-out infinite; transform-origin: 360px 112px; }
.qc-readout { animation: qc-readout-fade 4s ease-in-out infinite; }
@keyframes qc-probe-cycle {
  0% { transform: translateY(0); }
  35%, 55% { transform: translateY(38px); }
  90%, 100% { transform: translateY(0); }
}
@keyframes qc-pulse-ring {
  0%, 32% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 0.9; transform: scale(1); }
  58%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes qc-readout-fade {
  0%, 33% { opacity: 0; }
  42%, 55% { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-probe, .qc-pulse, .qc-readout { animation: none; }
  .qc-readout { opacity: 1; }
}

/* Sheen sweep on hover, layered behind the product */
.product-stage::after {
  content: ""; position: absolute; top: -20%; left: -60%; width: 45%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-18deg); transition: left 850ms ease; pointer-events: none;
}

/* ---- Hero showcase card (Featured Components) ---- */
.showcase-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--steel-150); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
.showcase-card:hover, .showcase-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 34px 68px rgba(4, 16, 31, 0.3);
  border-color: var(--blue-600);
}
.showcase-card:hover .product-stage img { transform: scale(1.05); }
.showcase-card:hover .product-stage::after { left: 130%; }
.showcase-body { padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.showcase-body .eyebrow { margin-bottom: 0.5rem; }
.showcase-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.showcase-body p { font-size: 0.96rem; }
.showcase-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.25rem; }

/* ---- Compact component card, refined ---- */
.component-card { position: relative; }
.component-card .product-stage { padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1rem; aspect-ratio: 1/1; }
.component-card .product-stage img { max-height: 120px; }
.component-card:hover .product-stage img { transform: scale(1.08); }
.component-card:hover .product-stage::after { left: 130%; }

/* ---- Blur-to-focus entrance for product reveals ---- */
[data-reveal="product"] {
  opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(8px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}
[data-reveal="product"].is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal="product"] { filter: none; }
}

/* ---- Manufacturing journey stepper ---- */
.journey-strip {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: 0; row-gap: 2rem;
}
.journey-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 118px; gap: 0.65rem; flex: none;
}
.journey-step .icon-tile {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(14, 42, 76, 0.28);
}
.journey-step .icon-tile svg { width: 24px; height: 24px; }
.journey-step span { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.journey-arrow {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 32px; padding-top: 27px; color: var(--steel-300);
}
.journey-arrow svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .journey-strip { flex-direction: column; align-items: center; }
  .journey-arrow { transform: rotate(90deg); padding: 0.15rem 0; width: auto; }
  .journey-step { width: auto; max-width: 220px; }
}

/* ================================================================
   Lightbox
   ================================================================ */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(4, 16, 31, 0.94); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-med) ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(720px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox-figure img {
  max-width: 100%; max-height: 72vh; width: auto; object-fit: contain;
  border-radius: var(--radius-md); background: var(--navy-950);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  mix-blend-mode: lighten;
}
.lightbox-caption { color: var(--text-on-dark-muted); font-size: 0.85rem; font-family: var(--font-display); letter-spacing: 0.02em; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) translateY(-1px); }
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next, .lightbox-close { width: 38px; height: 38px; }
}

/* ---------------- Industry tags (capability pages) ---------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--navy-800); background: var(--steel-100);
  padding: 0.5em 0.95em; border-radius: var(--radius-pill);
  border: 1px solid var(--steel-150);
}
.section-dark .tag { color: var(--text-on-dark); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }

/* ---------------- Engineering diagram panel ---------------- */
.diagram-panel {
  background: var(--navy-950); border-radius: var(--radius-lg); border: 1px solid var(--steel-150);
  padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden;
}
.diagram-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 34px 34px;
}
.diagram-panel svg { position: relative; width: 100%; height: auto; }
.diagram-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; color: var(--text-on-dark-muted); font-family: var(--font-display); letter-spacing: 0.03em;
}

/* ---------------- Applications / benefit feature cards ---------------- */
.feature-row {
  display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--steel-150);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-tile {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-row .icon-tile svg { width: 20px; height: 20px; }
.feature-row h4 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--navy-900); margin: 0 0 0.2rem; }
.feature-row p { margin: 0; font-size: 0.9rem; }

/* ---------------- Records / traceability strip (Quality page) ---------------- */
.record-card {
  background: var(--white); border: 1px solid var(--steel-150); border-radius: var(--radius-md);
  padding: 1.5rem; text-align: center;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.record-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.record-card .icon-tile {
  width: 44px; height: 44px; border-radius: 12px; margin-inline: auto 1rem auto;
  margin: 0 auto 0.9rem; background: var(--navy-950); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
}
.record-card .icon-tile svg { width: 21px; height: 21px; }
.record-card h4 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; color: var(--navy-900); margin: 0 0 0.3rem; }
.record-card p { margin: 0; font-size: 0.82rem; }

/* ---------------- RFQ form ---------------- */
.rfq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .rfq-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.rfq-card {
  background: var(--white); border: 1px solid var(--steel-150); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--shadow-md);
}
.rfq-summary {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--text-on-dark);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
}
.rfq-summary h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.rfq-summary ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.85rem; }
.rfq-summary li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.rfq-summary li svg { width: 18px; height: 18px; color: var(--amber-500); flex: none; margin-top: 0.1em; }
.rfq-summary .divider-dark { height: 1px; background: rgba(255,255,255,0.12); border: none; margin: 1.5rem 0; }
.rfq-trust { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-block: 5rem 2rem; position: relative; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-heading { font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; }
.footer-bottom a { text-decoration: underline; }

