/* ============================================================
   SPIKE SECURITY — Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS / CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* ── v2 "Night Watch" palette ─────────────────────────────
     Obsidian & Bone. Signal amber as the one accent. Legacy
     token names are preserved as aliases so existing markup
     (inline styles, older components) keeps resolving. */

  /* New canonical tokens */
  --obsidian:        #0B0C0E;
  --obsidian-2:      #131417;
  --obsidian-3:      #1C1E23;
  --bone:            #EEEAE0;
  --bone-2:          #E4DFD2;
  --ink:             #0B0C0E;
  --signal:          #FF5B1A;
  --signal-dim:      #C9440F;
  --signal-soft:     #FF7A3D;
  --led:             #34D399;

  --hairline-dark:   rgba(238, 234, 224, 0.12);
  --hairline-light:  rgba(11, 12, 14, 0.12);
  --mute-dark:       rgba(238, 234, 224, 0.62);
  --mute-light:      rgba(11, 12, 14, 0.60);
  --grid-dark:       rgba(238, 234, 224, 0.04);
  --grid-light:      rgba(11, 12, 14, 0.04);

  /* Legacy aliases → remapped to v2 palette */
  --color-navy:       var(--obsidian);
  --color-navy-light: var(--obsidian-2);
  --color-navy-dark:  #05060A;
  --color-gold:       var(--signal);
  --color-gold-dark:  var(--signal-dim);
  --color-gold-light: var(--signal-soft);
  --color-white:      var(--bone);
  --color-off-white:  var(--bone-2);
  --color-text:       var(--ink);
  --color-muted:      #6B6558;
  --color-border:     #D8D2C3;
  --color-success:    var(--led);
  --color-error:      #D63031;

  /* Typography — v2 "Night Watch"
     Display serif does the heavy lifting; Manrope carries UI &
     body; JetBrains Mono marks data/labels/status. */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Font weights */
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Border radius — v2 is hard-edged. Only the pill
     survives for LEDs, job tags and status chips. */
  --radius-sm:   0px;
  --radius-md:   0px;
  --radius-lg:   0px;
  --radius-xl:   0px;
  --radius-pill: 999px;

  /* Shadows — v2 replaces drop shadows with hairline rules.
     Kept as no-op defaults so older rules don't explode. */
  --shadow-sm:   none;
  --shadow-md:   none;
  --shadow-lg:   none;
  --shadow-gold: none;

  /* Hairline rule (used in place of cards' full borders) */
  --rule:        1px solid var(--hairline-light);
  --rule-dark:   1px solid var(--hairline-dark);

  /* Transitions */
  --transition: 0.18s ease;
  --transition-slow: 0.3s ease;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 72px;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 24px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-white);
  /* Graph-paper grid — 48px cells, very subtle. Gives the
     whole page a control-room draughtsman feel. */
  background-image:
    linear-gradient(to right, var(--grid-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-light) 1px, transparent 1px);
  background-size: 48px 48px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-gold);
  color: var(--color-navy);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  font-style: normal !important;
  font-variation-settings: 'wght' 300;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  line-height: 1.08;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  font-variation-settings: "opsz" 48;
}
h4 {
  font-size: 1.25rem;
  letter-spacing: -0.008em;
  line-height: 1.2;
  font-variation-settings: "opsz" 36;
}
h5 { font-size: 1.1rem; letter-spacing: -0.005em; }

/* A single italicised emphasis phrase is the one editorial move
   the display serif is allowed. Usage: <span class="emph">word</span>
   — also aliased to the existing .highlight and .text-gold hooks. */
.emph,
h1 .highlight,
h2 .highlight,
h3 .highlight,
.text-gold {
  font-style: italic;
  font-weight: 500;
  color: var(--signal);
  font-variation-settings: "opsz" 96;
}

p { line-height: 1.7; }

.text-gold  { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-muted); }
.text-navy  { color: var(--color-navy); }

.text-center { text-align: center; }
.text-upper  { text-transform: uppercase; letter-spacing: 0.08em; }

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-3xl);
}

.section-sm {
  padding-block: var(--space-2xl);
}

.section-alt {
  background: var(--color-off-white);
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Fade-in on scroll reveal — 500ms rise over 12px with a
   60ms sibling stagger per the style guide. */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(0.2, 0, 0, 1),
              transform 500ms cubic-bezier(0.2, 0, 0, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — 60ms between siblings, capped at 6 items. */
.fade-in:nth-child(2) { transition-delay: 60ms; }
.fade-in:nth-child(3) { transition-delay: 120ms; }
.fade-in:nth-child(4) { transition-delay: 180ms; }
.fade-in:nth-child(5) { transition-delay: 240ms; }
.fade-in:nth-child(6) { transition-delay: 300ms; }

/* ------------------------------------------------------------
   5. COMPONENTS
   ------------------------------------------------------------ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 28px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--signal);
  color: var(--obsidian);
  border-color: var(--signal);
}
.btn-primary:hover {
  background: var(--obsidian);
  color: var(--signal);
  border-color: var(--signal);
}

/* v2 ghost button (canonical) */
.btn-ghost,
.btn-secondary,
.btn-outline-gold,
.btn-navy {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-ghost:hover,
.btn-secondary:hover,
.btn-outline-gold:hover {
  background: var(--signal);
  color: var(--obsidian);
  border-color: var(--signal);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Caret flourish — the arrow that sits inside primary CTAs and
   eases forward on hover. Opt-in via .btn-submit or wrap with
   <span class="btn-caret">. */
.btn-caret {
  font-family: var(--font-mono);
  font-weight: 500;
  transition: transform var(--transition);
  display: inline-block;
}

.btn:hover .btn-caret {
  transform: translateX(4px);
}

.btn-lg {
  padding: 20px 36px;
  font-size: 0.875rem;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  transition: background var(--transition), border-color var(--transition);
}

.card:hover {
  border-top-color: var(--signal);
  background: var(--color-off-white);
}

.card-dark {
  background: var(--color-navy-light);
  border-top-color: var(--hairline-dark);
  border-bottom-color: var(--hairline-dark);
  color: var(--color-white);
}

.card-dark h3, .card-dark h4 {
  color: var(--color-white);
}

/* ── Service Icon ── */
.service-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
  font-size: 1.65rem;
  border: 1px solid var(--hairline-light);
  transition: background 240ms cubic-bezier(0.2, 0, 0, 1),
              color 240ms cubic-bezier(0.2, 0, 0, 1),
              border-color 240ms cubic-bezier(0.2, 0, 0, 1),
              transform 320ms cubic-bezier(0.2, 0, 0, 1);
}

.service-icon .material-symbols-outlined {
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1);
}

.card:hover .service-icon,
.service-card:hover .service-icon {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.service-card:hover .service-icon .material-symbols-outlined {
  transform: scale(1.06);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.badge-gold {
  background: rgba(255,91,26,.15);
  color: var(--color-gold-dark);
}

.badge-navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.badge-white {
  background: rgba(238,234,224,.15);
  color: var(--color-white);
  border: 1px solid rgba(238,234,224,.25);
}

/* ── Section heading decoration ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--signal);
  display: block;
  margin-bottom: var(--space-md);
  text-align: left;
}
.section-label::before {
  content: "▸ ";
  opacity: 0.6;
}

.section-heading {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
}

.section-subtitle.centered {
  margin-inline: auto;
}

/* ── Divider ── */
.divider-gold {
  width: 72px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: var(--space-lg);
}

/* ── Section stamp ──
   The left-aligned three-line header: mono label / short rule /
   Fraunces headline. This replaces the old centred text block
   wrappers used throughout the site. */
.section-stamp {
  text-align: left;
  margin-bottom: var(--space-2xl);
  max-width: 720px;
}

.section-stamp .section-heading {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-stamp .section-subtitle {
  margin-inline: 0;
}

.section-stamp .divider-gold {
  margin-top: var(--space-sm);
}

.divider-gold.centered {
  margin-inline: auto;
}

/* ── Check list ── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 1.05rem;
}

.check-list li::before {
  content: 'check_circle';
  font-family: 'Material Symbols Outlined';
  font-size: 1.35rem;
  color: var(--color-gold);
  line-height: 1;
  margin-top: 1px;
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  transition: border-color var(--transition);
}

.form-control:focus {
  border-bottom-color: var(--color-gold);
}

.form-control.error {
  border-bottom-color: var(--color-error);
}

.form-control::placeholder {
  color: var(--color-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 0.82rem;
  color: var(--color-error);
  display: none;
}

.form-error.visible {
  display: block;
}

/* ── Steps (Editorial log) ──
   A horizontal three-column log. Each step leads with a huge
   italic Fraunces numeral, then a short hairline, then the title
   and body. Columns are separated by vertical hairline rules. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--hairline-light);
  margin-top: var(--space-xl);
}

.step {
  text-align: left;
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-xl) 0;
}

.step + .step {
  padding-left: var(--space-xl);
  border-left: 1px solid var(--hairline-light);
}

.step-number {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--signal);
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
  display: block;
  margin: 0 0 var(--space-md) 0;
}

.step-number::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin-top: var(--space-md);
}

.step h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

/* Dark context overrides for the step log */
.section-dark .steps { border-top-color: var(--hairline-dark); }
.section-dark .step + .step { border-left-color: var(--hairline-dark); }

/* ── Accordion (Careers) ── */
.accordion-item {
  border-top: 1px solid var(--hairline-light);
  transition: background var(--transition);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--hairline-light);
}

.accordion-item:hover {
  background: var(--color-off-white);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.accordion-header:hover {
  background: var(--color-off-white);
}

.accordion-header.open {
  background: var(--color-navy);
  color: var(--color-white);
}

.accordion-header.open h4,
.accordion-header.open .accordion-meta span {
  color: var(--color-white);
}

.accordion-title {
  flex: 1;
}

.accordion-title h4 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.accordion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.accordion-meta > span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Job code pill — amber inline marker */
.accordion-meta > span:last-child {
  color: var(--signal);
}

.accordion-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--hairline-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  margin-left: var(--space-lg);
}

.accordion-header.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

/* Smooth open/close using max-height + padding transition so
   the body actually slides down rather than jumping open. */
.accordion-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: calc(var(--space-xl) + 8px);
  padding-right: var(--space-xl);
  background: var(--color-off-white);
  border-top: 1px solid transparent;
  border-left: 2px solid transparent;
  transition: max-height 420ms cubic-bezier(0.2, 0, 0, 1),
              padding-top 420ms cubic-bezier(0.2, 0, 0, 1),
              padding-bottom 420ms cubic-bezier(0.2, 0, 0, 1),
              border-top-color 300ms ease,
              border-left-color 300ms ease;
}

.accordion-body.open {
  max-height: 800px;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-top-color: var(--hairline-light);
  border-left-color: var(--signal);
}

/* ------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: var(--color-navy);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.navbar-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  color: var(--color-white);
  line-height: 1.05;
  font-variation-settings: "opsz" 36;
}

.navbar-wordmark span {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(238,234,224,.78);
  transition: color var(--transition), background var(--transition);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.nav-link:hover {
  color: var(--color-white);
  background: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-white);
  background: transparent;
}

.navbar-cta {
  margin-left: var(--space-lg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-navy-dark);
  padding: var(--space-lg);
  z-index: 999;
  border-top: 1px solid rgba(238,234,224,.08);
  animation: slideDown 0.25s ease;
}

.mobile-nav.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav .nav-link {
  display: block;
  padding: 14px var(--space-md);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--hairline-dark);
}

.mobile-nav .btn {
  justify-content: flex-start;
  margin-top: var(--space-md);
}

/* Spacer so content doesn't hide under fixed navbar */
.navbar-spacer { height: var(--navbar-height); }

/* ── Preview-build notice ──
   Thin strip under the navbar declaring the site is an in-progress
   preview. Bone background, signal-amber eyebrow glyph, mono copy,
   hairline rules above and below. */
.dev-notice {
  background: var(--bone-2);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  padding: 10px 0;
  text-align: center;
}

.dev-notice-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.dev-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal);
  font-weight: 500;
}

.dev-notice-tag::before {
  content: "◉";
  font-size: 0.65rem;
}

.dev-notice-sep {
  color: rgba(11, 12, 14, 0.25);
}

@media (max-width: 768px) {
  .dev-notice-inner { padding-inline: var(--space-md); font-size: 0.62rem; letter-spacing: 0.08em; }
}

/* ------------------------------------------------------------
   7. HERO SECTIONS
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.hero-main {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid var(--hairline-dark);
}

.hero-page {
  padding-block: var(--space-3xl);
  padding-bottom: calc(var(--space-3xl) + 48px);
  border-bottom: 1px solid var(--hairline-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-url);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.15) brightness(0.7);
  z-index: 0;
}

/* Obsidian scrim over the hero image so text is always legible. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 14, 0.55) 0%,
    rgba(11, 12, 14, 0.85) 100%
  );
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,91,26,.10) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,91,26,.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.hero h1 {
  color: var(--color-white);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  color: var(--color-gold);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(238,234,224,.75);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}


.hero-sub-urgent {
  display: inline-block;
  background: transparent;
  border-left: 2px solid var(--signal);
  padding: 6px 14px;
  margin-top: calc(var(--space-xl) * -0.45);
  margin-bottom: var(--space-xl);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: var(--fw-medium);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.03);
}

.hero-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: var(--space-md) var(--space-lg);
}

.hero-image-badge .badge-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}

.hero-image-badge p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
}


.hero-main-full {
  min-height: 78vh;
  padding-block: var(--space-4xl) var(--space-3xl);
}

/* Asymmetric hero split — 7fr headline + CTA, 5fr ops panel. */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-grid .hero-content {
  max-width: none;
}

/* ── Ops panel (right column of hero) ──
   A stack of mono readouts framed by hairlines. Looks like
   a status readout pulled off a dispatcher's console. */
.ops-panel {
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  padding: var(--space-lg) 0 var(--space-md);
  font-family: var(--font-mono);
}

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ops-panel-title {
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-panel-meta {
  color: rgba(238, 234, 224, 0.55);
}

.ops-readouts {
  display: flex;
  flex-direction: column;
}

.ops-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--hairline-dark);
  gap: var(--space-md);
}

.ops-row:last-child {
  border-bottom: none;
}

.ops-row .ops-k {
  color: rgba(238, 234, 224, 0.55);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ops-row .ops-v {
  color: var(--bone);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.ops-panel-foot {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 234, 224, 0.45);
}

.hero-bg-brand {
  background: radial-gradient(circle at 10% 15%, rgba(255,91,26,0.2), transparent 35%),
              radial-gradient(circle at 75% 10%, rgba(255,91,26,0.14), transparent 40%),
              linear-gradient(120deg, #0B0C0E 0%, #131417 55%, #1C1E23 100%);
  opacity: 1;
}

/* ------------------------------------------------------------
   8. STATS BAR
   ------------------------------------------------------------ */
/* ── Stats bar (dark elevated panel) ──
   Sits between the obsidian hero and the obsidian services
   section as a slightly lighter dark panel — a whisper of
   separation without breaking the dominant-dark rhythm. */
.stats-bar {
  background: var(--obsidian-2);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-right: 1px solid var(--hairline-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--signal);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  position: relative;
  padding-bottom: var(--space-sm);
}

.stat-number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(238, 234, 224, 0.62);
}

/* ------------------------------------------------------------
   9. SERVICES SECTION
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: service;
  border-top: 1px solid var(--hairline-light);
  border-left: 1px solid var(--hairline-light);
}

.service-card {
  position: relative;
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + var(--space-md));
  padding-right: calc(var(--space-xl) + var(--space-md));
  background: var(--color-white);
  border-right: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  counter-increment: service;
  transition: background var(--transition);
}

/* Huge editorial numeral — dominant compositional element.
   Sits top-right, Fraunces italic, signal amber on hover. */
.service-card::before {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5rem);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(11, 12, 14, 0.10);
  pointer-events: none;
  transition: color 300ms ease;
}

.service-card:hover {
  background: var(--color-off-white);
}

.service-card:hover::before {
  color: var(--signal);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  transition: transform 400ms cubic-bezier(0.2, 0, 0, 1);
}

.service-card:hover h3 {
  transform: translateX(8px);
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--signal);
  transition: gap var(--transition);
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ── SIA Callout ── */
.sia-callout {
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding: var(--space-2xl);
  text-align: center;
  background: transparent;
  max-width: 760px;
  margin-inline: auto;
}

.sia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 auto var(--space-lg);
}

/* ------------------------------------------------------------
   10. WHY CHOOSE US
   ------------------------------------------------------------ */
.why-image-wrap {
  position: relative;
}

.why-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.03);
}

.why-image-accent {
  display: none;
}

/* ------------------------------------------------------------
   11. INDUSTRIES STRIP
   ------------------------------------------------------------ */
.industries-scroll {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--hairline-light);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}

.industry-pill:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   12. CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: left;
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner h2 .highlight { color: var(--color-gold); }

.cta-banner p {
  color: rgba(238,234,224,.7);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

/* CTA banner is now dark, so the default navy button would
   disappear. Re-skin to gold and lift text legibility. */
.cta-banner .btn-navy {
  background: var(--color-gold);
  color: var(--color-navy);
}
.cta-banner .btn-navy:hover {
  background: var(--color-gold-dark);
  color: var(--color-navy);
}

/* ------------------------------------------------------------
   13. ABOUT PAGE
   ------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value-card {
  background: var(--color-white);
  padding: var(--space-xl);
  text-align: left;
  border-top: 2px solid var(--color-gold);
  border-bottom: 1px solid var(--hairline-light);
  transition: background var(--transition);
}

.value-card:hover {
  background: var(--color-off-white);
}

.value-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}

/* ------------------------------------------------------------
   14. CAREERS PAGE
   ------------------------------------------------------------ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.benefit-card {
  text-align: left;
  padding: var(--space-xl);
  background: transparent;
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background var(--transition);
}

.benefit-card:hover {
  background: rgba(238,234,224,.04);
}

.benefit-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-md);
}

.benefit-card h4 {
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  color: rgba(238,234,224,.7);
  font-size: 0.95rem;
}

/* ── Job type tags ── */
.job-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.job-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.job-tag-type {
  background: rgba(255,91,26,.12);
  color: var(--color-gold-dark);
}

.job-tag-location {
  background: var(--color-off-white);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   15. CONTACT PAGE
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  background: var(--color-navy);
  padding: var(--space-2xl);
  color: var(--color-white);
  border-top: 1px solid var(--color-gold);
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-xl);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-dark);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail-text strong {
  display: block;
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.contact-detail-text span {
  color: rgba(238,234,224,.8);
  font-size: 0.95rem;
}

.map-placeholder {
  background: var(--color-navy-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(238,234,224,.4);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: var(--space-xl);
  border: 1px dashed var(--hairline-dark);
}

.map-embed {
  height: 260px;
  margin-top: var(--space-xl);
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  position: relative;
  background: var(--obsidian);
}

.map-embed iframe,
.map-embed #map,
.map-embed .leaflet-container {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Leaflet override — Night Watch dark theme ── */
.leaflet-container {
  background: var(--obsidian);
  font-family: var(--font-body);
  outline: none;
}

/* Pulsing signal-amber marker */
.spike-marker { background: transparent; border: none; }
.spike-marker-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--signal);
  border: 2px solid var(--obsidian);
  box-shadow: 0 0 0 4px rgba(255, 91, 26, 0.25);
  animation: led-pulse 2s ease-in-out infinite alternate;
}

/* Popup chrome */
.leaflet-popup-content-wrapper {
  background: var(--obsidian-2);
  color: var(--bone);
  border: 1px solid var(--hairline-dark);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 0;
}

.leaflet-popup-content {
  margin: var(--space-md);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(238, 234, 224, 0.78);
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.leaflet-popup-content .map-popup-addr {
  display: block;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1.4;
  font-variation-settings: "opsz" 36;
  margin-bottom: var(--space-sm);
}

.leaflet-popup-content .map-popup-link {
  display: inline-block;
  margin-top: 4px;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  transition: color var(--transition);
}

.leaflet-popup-content .map-popup-link:hover {
  color: var(--bone);
}

.leaflet-popup-tip {
  background: var(--obsidian-2);
  border: 1px solid var(--hairline-dark);
  box-shadow: none;
}

.leaflet-popup-close-button {
  color: var(--bone) !important;
  font-size: 18px !important;
  padding: 6px 8px 0 0 !important;
  opacity: 0.6;
}
.leaflet-popup-close-button:hover { opacity: 1; }

/* Zoom + attribution chrome */
.leaflet-control-zoom a {
  background: var(--obsidian-2) !important;
  color: var(--bone) !important;
  border: 1px solid var(--hairline-dark) !important;
  border-radius: 0 !important;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.leaflet-control-zoom a + a { margin-top: -1px; }
.leaflet-control-zoom a:hover {
  background: var(--signal) !important;
  color: var(--obsidian) !important;
}

.leaflet-control-attribution {
  background: rgba(11, 12, 14, 0.7) !important;
  color: rgba(238, 234, 224, 0.55) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em;
  border: none !important;
}
.leaflet-control-attribution a {
  color: var(--signal) !important;
}


.response-promise-card {
  border-top: 2px solid var(--color-gold);
  border-bottom: 1px solid var(--hairline-light);
  background: var(--bone-2);
}

.response-promise-card h4 {
  color: var(--color-navy);
}

.response-promise-card p {
  color: var(--color-text);
}

/* ── Form card ── */
.form-card {
  background: transparent;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
}

.form-card h3 {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--signal);
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-success {
  display: none;
  background: rgba(52,211,153,.08);
  border-left: 3px solid var(--color-success);
  padding: var(--space-lg);
  color: var(--color-success);
  font-weight: var(--fw-semibold);
  text-align: left;
  margin-top: var(--space-lg);
}

.form-success.visible {
  display: block;
}

/* ------------------------------------------------------------
   16. FOOTER — minimal
   A single-row rule. Copyright notice left, legal links right.
   Nothing else. Hard edges, hairline top.
   ------------------------------------------------------------ */
.footer {
  background: var(--color-navy);
  color: rgba(238,234,224,.7);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--hairline-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238,234,224,.5);
  margin: 0;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238,234,224,.6);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-gold);
}

/* ------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .container { padding-inline: var(--space-lg); }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-main { min-height: auto; padding-block: var(--space-3xl); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --space-3xl: 64px; --space-2xl: 40px; }
  .container { padding-inline: var(--space-md); }
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .hero-main { min-height: 70vh; padding-bottom: var(--space-3xl); }
  .hero-page { padding-bottom: var(--space-2xl); }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: none; border-top: 1px solid var(--hairline-light); }
  .section-dark .step + .step { border-top-color: var(--hairline-dark); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image-badge { left: 10px; bottom: -16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}


/* When .stat-number carries an icon, drop the italic numeral
   styling and render a clean signal-amber glyph instead. */
.stat-number.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-size: 2rem;
  color: var(--signal);
  padding-bottom: var(--space-sm);
}
.stat-number.material-symbols-outlined::after {
  width: 24px;
}

/* Stat-item right-border housekeeping when the grid wraps */
@media (max-width: 1024px) {
  .stat-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--hairline-dark); }
  .stat-item:last-child { border-bottom: none; }
}

.industry-pill .material-symbols-outlined { font-size: 1.15rem; }

/* ------------------------------------------------------------
   18. FOCUS & ACCESSIBILITY
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-navy);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  z-index: 10000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------
   19. OPS INTERFACE — ticker, live pill, grain, motion
   ------------------------------------------------------------ */

/* Ticker strip sits above the navbar. Pinned fixed. */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--obsidian);
  border-bottom: 1px solid var(--hairline-dark);
  overflow: hidden;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  gap: var(--space-lg);
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
  padding-left: var(--space-xl);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--signal);
  text-transform: uppercase;
}

.ticker-sep {
  color: rgba(238, 234, 224, 0.35);
  font-size: 0.55rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Push the navbar down by the ticker height, and size the spacer so
   body content starts below both. */
.navbar { top: 28px; }
.navbar-spacer { height: calc(var(--navbar-height) + 28px); }

/* Mobile nav also shifts down */
.mobile-nav { top: calc(var(--navbar-height) + 28px); }

/* Scroll padding accounts for ticker too */
html { scroll-padding-top: calc(var(--navbar-height) + 28px + 24px); }

/* LIVE pill — dispatcher's status indicator in the navbar. */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--hairline-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(238, 234, 224, 0.9);
  text-transform: uppercase;
  margin-left: var(--space-md);
  margin-right: var(--space-sm);
}

.live-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
  animation: led-pulse 2s ease-in-out infinite alternate;
}

@keyframes led-pulse {
  from { opacity: 0.45; box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25); }
  to   { opacity: 1;    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);    }
}

/* Grain overlay — inline SVG noise, 3% opacity, fixed across viewport.
   Sits above content, below modal/skip-link. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Hero headline reveal — a single 600ms clip-path wipe on load. */
.hero h1 {
  animation: headline-reveal 600ms cubic-bezier(0.2, 0, 0, 1) 160ms both;
}

@keyframes headline-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}

/* Hero entrance choreography — the eyebrow, sub-copy, buttons and
   ops panel rise in around the headline's wipe. Each step is a
   gentle 600ms rise with a staged delay so the hero composes
   itself rather than appearing all at once. */
.hero .hero-eyebrow,
.hero .hero-sub,
.hero .hero-actions,
.hero .ops-panel,
.hero .ops-panel-head,
.hero .ops-readouts .ops-row,
.hero .ops-panel-foot {
  opacity: 0;
  animation: hero-rise 600ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

.hero .hero-eyebrow { animation-delay: 80ms; }
.hero .hero-sub     { animation-delay: 340ms; }
.hero .hero-actions { animation-delay: 420ms; }
.hero .ops-panel-head     { animation-delay: 520ms; }
.hero .ops-readouts .ops-row:nth-child(1) { animation-delay: 580ms; }
.hero .ops-readouts .ops-row:nth-child(2) { animation-delay: 640ms; }
.hero .ops-readouts .ops-row:nth-child(3) { animation-delay: 700ms; }
.hero .ops-readouts .ops-row:nth-child(4) { animation-delay: 760ms; }
.hero .ops-readouts .ops-row:nth-child(5) { animation-delay: 820ms; }
.hero .ops-panel-foot     { animation-delay: 900ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entry hover — service card gets a signal rule that slides across
   the bottom over 400ms. */
.service-card {
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(0.2, 0, 0, 1);
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ── Dark-section contextual overrides ──
   When a section has .section-dark applied, any grid and cards
   inside it need hairline-dark rules and bone text. */
.section-dark .services-grid {
  border-top-color: var(--hairline-dark);
  border-left-color: var(--hairline-dark);
}

.section-dark .service-card {
  background: transparent;
  border-right-color: var(--hairline-dark);
  border-bottom-color: var(--hairline-dark);
}

.section-dark .service-card h3 { color: var(--bone); }

.section-dark .service-card p {
  color: rgba(238, 234, 224, 0.72);
}

.section-dark .service-card::before {
  color: rgba(238, 234, 224, 0.10);
}

.section-dark .service-card:hover {
  background: rgba(238, 234, 224, 0.03);
}

.section-dark .service-icon {
  border-color: var(--hairline-dark);
  color: var(--signal);
}

.section-dark .section-subtitle {
  color: rgba(238, 234, 224, 0.72);
}

.section-dark .card-link {
  color: var(--signal);
}

/* Value cards on dark — borrow the entry treatment vocabulary. */
.section-dark .value-card {
  background: transparent;
  border-bottom-color: var(--hairline-dark);
}

.section-dark .value-card h3,
.section-dark .value-card h4 { color: var(--bone); }

.section-dark .value-card p {
  color: rgba(238, 234, 224, 0.72);
}

.section-dark .value-card:hover {
  background: rgba(238, 234, 224, 0.03);
}

/* Industry pills on dark */
.section-dark .industry-pill {
  border-color: var(--hairline-dark);
  color: rgba(238, 234, 224, 0.82);
}

.section-dark .industry-pill:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--color-navy);
}

/* Check-list glyph on dark */
.section-dark .check-list li { color: var(--bone); }
.section-dark .check-list li::before { color: var(--signal); }

/* ── Editorial image treatment ──
   Content photography reads like a monochrome control-room feed:
   grayscale, contrast pumped, highlights pulled down. A signal
   amber wash sits over everything at low opacity. A hairline rule
   above and below. On hover the wash fades. */
.img-editorial,
.hero-image img,
.why-image-wrap img {
  filter: grayscale(1) contrast(1.12) brightness(0.92);
  transition: filter 400ms ease;
}

.img-editorial {
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
}

.section-dark .img-editorial {
  border-top-color: var(--hairline-dark);
  border-bottom-color: var(--hairline-dark);
}

.img-editorial-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.img-editorial-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 14, 0.15) 0%,
    rgba(11, 12, 14, 0.45) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.img-editorial-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 91, 26, 0.06);
  mix-blend-mode: color;
  pointer-events: none;
  transition: opacity 400ms ease;
  z-index: 1;
}

.img-editorial-wrap:hover .img-editorial,
.img-editorial-wrap:hover img {
  filter: grayscale(0.6) contrast(1.08);
}

/* Responsive overrides for ops chrome */
@media (max-width: 768px) {
  .live-pill { display: none; }
  .ticker { height: 24px; }
  .ticker-item { font-size: 0.62rem; letter-spacing: 0.14em; }
  .navbar { top: 24px; }
  .navbar-spacer { height: calc(var(--navbar-height) + 24px); }
  .mobile-nav { top: calc(var(--navbar-height) + 24px); }
  html { scroll-padding-top: calc(var(--navbar-height) + 24px + 16px); }
}

/* ── Long-form prose (legal / privacy) ── */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-light);
}

.prose p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.prose a {
  color: var(--signal);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.prose a:hover {
  border-bottom-color: var(--signal);
}

.prose strong { font-weight: 600; color: var(--color-text); }

.prose-list {
  margin: 0 0 var(--space-lg) var(--space-md);
  padding-left: var(--space-md);
}

.prose-list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  list-style: none;
  line-height: 1.7;
}

.prose-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--signal);
  font-size: 0.72rem;
  line-height: 1.8;
}

/* Draft / working-copy note inside long-form pages */
.prose-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  margin-bottom: var(--space-xl);
  border-left: 2px solid var(--signal);
  background: var(--bone-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.prose-note .dev-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal);
  font-weight: 500;
}

.prose-note .dev-notice-tag::before {
  content: "◉";
  font-size: 0.65rem;
}

/* ── Back-to-top button ──
   Floating fixed-position button injected by main.js. Appears
   after the user scrolls past the first viewport, fades back
   out near the top. Square obsidian panel with hairline border;
   flips to signal amber on hover. */
.back-to-top {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  width: 44px;
  height: 44px;
  background: var(--obsidian-2);
  border: 1px solid var(--hairline-dark);
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 300ms ease,
              transform 300ms cubic-bezier(0.2, 0, 0, 1),
              background var(--transition),
              color var(--transition),
              border-color var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--signal);
  color: var(--color-navy);
  border-color: var(--signal);
}

.back-to-top .material-symbols-outlined {
  font-size: 20px;
}

@media (max-width: 768px) {
  .back-to-top { right: var(--space-md); bottom: var(--space-md); width: 40px; height: 40px; }
}

/* Respect reduced-motion preferences globally. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .live-led,
  .hero h1,
  .fade-in {
    animation: none !important;
  }
  .live-led { opacity: 1; }
  .hero h1  { clip-path: none; opacity: 1; }
  .service-card::after { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
