/* ============================================================
   DMATICS — Cyber Operations
   Design system: void black / graphite / white / signal red
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (telemetry)
   ============================================================ */

:root {
  /* --- DARK-GREY THEME (experiment) — to revert to black, restore the #0a0a0c set --- */
  --void: #131316;      /* orig black #0a0a0c → grey #1b1b1f → darker grey now */
  --carbon: #1a1a1f;    /* orig #101014 */
  --graphite: #222228;  /* orig #17171d */
  --line: #4b4b53;      /* orig #232329 → #32323a for grey bg → brightened again, borders/dividers were hard to see */
  --line-soft: #3a3a40; /* orig #1b1b21 → #26262c for grey bg → brightened again */
  --steel: #ccccd6;     /* orig #8f8f9a → #9a9aa6 → #b8b8c2 → brightened again, body text still too dim */
  --steel-dim: #5c5c66;
  --white: #f2f2f5;
  --signal: #e5484d;
  --signal-dim: rgba(229, 72, 77, 0.12);
  --font-display: "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --nav-h: 72px;
  --max-w: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: rgba(16, 16, 20, 0.55);
  --glass-line: rgba(255, 255, 255, 0.08);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: #fff; }

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
/* Headline sizes reduced 20% across the board (July 2026, client request) —
   each clamp() number scaled by 0.8, so the responsive min/preferred/max
   proportions are unchanged, just smaller throughout. */
.h-hero { font-size: clamp(2.08rem, 4.8vw, 4rem); text-wrap: balance; }
.h-xl { font-size: clamp(1.6rem, 3.36vw, 2.56rem); }
.h-lg { font-size: clamp(1.2rem, 2.08vw, 1.68rem); }
.h-md { font-size: 1rem; letter-spacing: -0.01em; }

.lede { color: var(--steel); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; max-width: 62ch; }
.muted { color: var(--steel); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--signal); border-color: var(--signal); }
.btn-primary:hover { background: #f0555a; border-color: #f0555a; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.btn-ghost:hover { border-color: var(--steel); background: rgba(255, 255, 255, 0.06); }

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: var(--carbon);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 60;
}
.ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.ticker-track span b { color: var(--white); font-weight: 500; }
.ticker-track .dot { color: var(--signal); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 22, 0.72); /* grey theme — was rgba(10,10,12,0.72) */
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--glass-shine);
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would create
   a backdrop root and break the mega menus' own glass blur (Chromium) */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}
/* Scroll progress line pinned under the nav (driven by --scroll from main.js) */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  pointer-events: none;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo .pulse {
  width: 8px; height: 8px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
/* Brand logo: the white DMATICS wordmark from the client's deck (transparent PNG),
   sized for the nav. A navy variant lives at dmatics-logo-navy.png for light use. */
.logo { cursor: default; }
.logo-img { height: 45px; width: auto; display: block; }
footer .logo-img { height: 35px; }
/* Text wordmark is the fallback shown only if the logo image is missing
   (an inline onerror handler flips this to inline-flex). */
.logo-text { display: none; align-items: center; gap: 12px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.5); }
  50% { box-shadow: 0 0 0 7px rgba(229,72,77,0); }
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 26px 16px;
  font-size: 0.9rem;
  color: var(--steel);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li.open > a { color: var(--white); }
.nav-links > li > a .caret { font-size: 0.6rem; margin-left: 5px; opacity: 0.6; }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.98);
  transform-origin: top center;
  background: rgba(13, 13, 16, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--glass-line);
  min-width: 300px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  box-shadow: var(--glass-shine), 0 24px 60px rgba(0,0,0,0.6);
}
.mega.wide { min-width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
li.open .mega, .nav-links > li:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega a {
  display: block;
  padding: 12px 14px;
  transition: background 0.2s, transform 0.2s;
  border-left: 2px solid transparent;
}
.mega a:hover { background: rgba(255, 255, 255, 0.05); border-left-color: var(--signal); }
.mega a .t { display: block; font-size: 0.9rem; font-weight: 600; }
.mega a .d { display: block; font-size: 0.76rem; color: var(--steel-dim); margin-top: 2px; }
.mega .mega-head {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
  padding: 10px 14px 4px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.72rem; }

/* Mobile nav */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 24px; height: 2px; background: var(--white); transition: 0.3s var(--ease); }
.mobile-panel { display: none; }

@media (max-width: 1040px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .mobile-panel {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(19, 19, 22, 0.88); /* grey theme — was rgba(10,10,12,0.88) */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    z-index: 49;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
    overflow-y: auto;
    padding: 24px 32px 64px;
  }
  .mobile-panel.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-panel h5 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
    margin: 28px 0 8px;
  }
  .mobile-panel a { display: block; padding: 9px 0; color: var(--steel); font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .mobile-panel a:active { color: var(--white); }
  body.nav-lock { overflow: hidden; }
  .burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.x span:nth-child(2) { opacity: 0; }
  .burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  /* Shorter than the viewport so the next section peeks, cueing visitors to scroll */
  min-height: calc(100vh - 330px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
#fabric {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* Faded SOC/NOC command-center photo behind the hero */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
/* Left-to-right darkening keeps the headline readable while revealing the scene on the right */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--void) 6%, rgba(19, 19, 22, 0.72) 40%, rgba(19, 19, 22, 0.32) 100%);
  z-index: 1;
  pointer-events: none;
}
/* This element also carries .wrap's class (max-width:1280px; padding:0 32px).
   .hero is a flex row, so by default .hero-content's box would centre via
   flex auto-margins around its own content-derived width — not simply
   centred edge-to-edge like a normal block. That's why it reads as
   "practically centred" rather than offset. Overriding to a fixed
   margin-left (not auto) anchors the box a set distance from the hero's own
   left edge regardless of viewport width, giving a real, predictable left
   lean — clamped so it's ~32px on narrow/mobile screens (matching every
   other section's inset there) and grows gently on wide desktop screens
   without ever reaching flush-left against the nav. This is the one
   deliberate exception on the site; nav/trust-bar/every section stays
   centered as before. */
.hero-content { position: relative; z-index: 2; padding: 32px; margin-left: clamp(32px, 8vw, 140px); margin-right: auto; }
/* Scroll cue: bouncing chevron, added only by main.js and only when the next
   section is entirely below the fold (see .needs-scroll-cue there) */
.hero.needs-scroll-cue::before, .page-hero.needs-scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 16px; height: 16px;
  border-right: 2px solid var(--steel-dim);
  border-bottom: 2px solid var(--steel-dim);
  z-index: 3;
  pointer-events: none;
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(-3px); opacity: 0.35; }
  50%      { transform: translateX(-50%) rotate(45deg) translateY(3px);  opacity: 0.9; }
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--glass-line);
  padding: 8px 16px;
  margin-bottom: 32px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--glass-shine);
}
.hero-kicker .live { width: 7px; height: 7px; background: var(--signal); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 .accent { color: var(--signal); }
.hero .sub {
  font-family: var(--font-mono);
  color: var(--steel);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  margin-top: 28px;
  max-width: 56ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* Trust badges under hero */
/* Trust bar: sits directly under the nav on every page */
.trust-row {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line-soft);
  background: var(--carbon);
  box-shadow: var(--glass-shine);
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-left: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.trust-item:last-child { border-right: 1px solid var(--line-soft); }
.trust-item svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--signal); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section.tint { background: var(--carbon); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
/* First section after a hero sits close so it peeks above the fold, cueing visitors to scroll */
.hero + .section, .page-hero + section.section { padding-top: 36px; }
/* Spotlight: featured section (VAPT & Compliance) — faint red top-glow for emphasis */
.section.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(229, 72, 77, 0.07), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.section.spotlight > .wrap { position: relative; z-index: 1; }
.section.spotlight .card { background: var(--carbon); }
.section.spotlight .card:hover { background: var(--graphite); }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head .lede { margin-top: 18px; }
.head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--carbon);
}
.stat {
  padding: 36px 28px;
  border-left: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .num .unit { font-size: 0.5em; color: var(--signal); font-weight: 700; }
.stat .lab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-top: 8px;
}

/* ---------- Card grid (services / generic) ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
/* grid-3 uses flex, not grid: with an item count that isn't a multiple of 3
   (e.g. 10 services, 8 AMC capabilities, 7 partners), CSS Grid leaves empty
   trailing cells in the last row that show the container's own background
   color as an ugly blank block. Flex + justify-content:center naturally
   centers a short last row with no phantom cells, since flex never
   reserves track space for columns nothing occupies.
   The container's own background/border is dropped here (unlike .grid)
   because even centered, a short last row still leaves empty flex space
   beside it that would otherwise show that background as a stray lighter
   block. Each card draws its own hairline border via box-shadow instead,
   so gaps, real or leftover, always show the page background, never grey. */
.grid-3 { display: flex; flex-wrap: wrap; justify-content: center; background: none; border: 0; gap: 0; }
.grid-3 > * { flex: 0 0 33.333%; box-shadow: 0 0 0 1px var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--void);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s var(--ease);
  overflow: hidden;
}
.card:hover { background: var(--graphite); }
.glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,72,77,0.10), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
}
.card:hover .glow, .step:hover .glow, .industry:hover .glow,
.badge:hover .glow, .stat:hover .glow { opacity: 1; }
/* Line-art icon at the top of a card. Grey at rest, red on hover (matches
   the arrow's hover-accent) so the accent stays inside the ≤5% budget.
   The reveal margin nudges the mono .idx label snug under the icon. */
.card-icon {
  width: 30px;
  height: 30px;
  color: var(--steel);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card-icon { color: var(--signal); transform: translateY(-2px); }
.card .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel-dim);
  letter-spacing: 0.14em;
}
.card-icon + .idx { margin-top: -4px; }
.card h3 { font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 .arr { color: var(--steel-dim); transition: 0.3s var(--ease); font-family: var(--font-mono); font-weight: 400; }
.card:hover h3 .arr { color: var(--signal); transform: translateX(4px); }
.card p { color: var(--steel); font-size: 0.92rem; }

/* Expanding reveal list inside cards */
.card .reveal-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s;
  opacity: 0;
}
.card:hover .reveal-list, .card:focus-within .reveal-list { max-height: 220px; opacity: 1; }
.card .reveal-list li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--steel);
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
}
.card .reveal-list li::before { content: "+"; color: var(--signal); }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-list { list-style: none; margin-top: 32px; }
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--steel);
  font-size: 0.95rem;
}
.feature-list li b { color: var(--white); font-weight: 600; }
.feature-list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
}

/* Console panel graphic */
.console {
  border: 1px solid var(--line);
  background: var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--steel-dim);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.console-bar .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.console-bar .d.r { background: var(--signal); }
.console-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.console-row { display: flex; justify-content: space-between; gap: 16px; color: var(--steel); padding: 8px 10px; background: var(--graphite); border-left: 2px solid var(--line); }
.console-row.alert { border-left-color: var(--signal); }
.console-row .ok { color: #58d68d; }
.console-row .warn { color: var(--signal); }
.console-row .time { color: var(--steel-dim); }
.bar-track { height: 6px; background: var(--graphite); position: relative; margin-top: 6px; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--signal); width: 0; transition: width 1.4s var(--ease); }

/* ---------- Steps (engagement) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.step { background: var(--void); padding: 32px 24px; position: relative; overflow: hidden; transition: background 0.3s; }
.step:hover { background: var(--graphite); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.step h4 { font-family: var(--font-display); font-size: 1rem; margin: 14px 0 10px; }
.step p { color: var(--steel); font-size: 0.84rem; }
.step .dur { font-family: var(--font-mono); font-size: 0.66rem; color: var(--steel-dim); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 14px; display: block; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.marquee-track {
  display: flex;
  gap: 84px;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--white); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Compliance badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.badge {
  background: var(--void);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.badge:hover { background: var(--graphite); }
.badge .shield { margin: 0 auto 14px; width: 34px; height: 34px; color: var(--steel); }
.badge:hover .shield { color: var(--signal); }
.badge h4 { font-family: var(--font-display); font-size: 0.95rem; }
.badge p { font-family: var(--font-mono); font-size: 0.66rem; color: var(--steel-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Industry tiles ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.industry {
  background: var(--void);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.industry::before {
  content: attr(data-code);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--steel-dim);
}
.industry .card-icon {
  position: absolute;
  top: 22px; left: 32px;
  width: 28px; height: 28px;
  color: var(--steel);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.industry:hover .card-icon { color: var(--signal); transform: translateY(-2px); }
.industry h3 { font-size: 1.3rem; transition: transform 0.35s var(--ease); }
.industry p { color: var(--steel); font-size: 0.85rem; max-height: 0; opacity: 0; transition: 0.4s var(--ease); }
.industry:hover { background: var(--graphite); }
.industry:hover p { max-height: 90px; opacity: 1; }
.industry .ln { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease); }
.industry:hover .ln { transform: scaleY(1); }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(229,72,77,0.10), transparent 70%),
    var(--carbon);
  text-align: center;
  padding: 130px 0;
}
.cta-band .cert-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 24px;
}
.cta-band .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); background: var(--void); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.foot-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 18px;
}
.foot-grid ul { list-style: none; }
.foot-grid li a { display: block; padding: 5px 0; color: var(--steel); font-size: 0.88rem; transition: color 0.2s; }
.foot-grid li a:hover { color: var(--white); }
.foot-brand p { color: var(--steel); font-size: 0.88rem; margin-top: 16px; max-width: 40ch; }
.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--steel-dim);
  text-transform: uppercase;
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, transparent 0%, var(--void) 85%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 28px;
}
.crumbs a:hover { color: var(--white); }
.crumbs .sep { color: var(--signal); margin: 0 8px; }
.page-hero .lede { margin-top: 18px; }
.page-hero .hero-ctas { margin-top: 24px; }

/* Meta chips on subpages */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--glass-line);
  padding: 7px 14px;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: var(--glass-shine);
}

/* ---------- Reveal on scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rvd, 0s);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ---------- Page-load entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > *, .page-hero .wrap > * { animation: rise 0.95s var(--ease) backwards; }
  .hero-content > *:nth-child(1), .page-hero .wrap > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2), .page-hero .wrap > *:nth-child(2) { animation-delay: 0.16s; }
  .hero-content > *:nth-child(3), .page-hero .wrap > *:nth-child(3) { animation-delay: 0.27s; }
  .hero-content > *:nth-child(4), .page-hero .wrap > *:nth-child(4) { animation-delay: 0.38s; }
  .hero-content > *:nth-child(5), .page-hero .wrap > *:nth-child(5) { animation-delay: 0.49s; }
  .trust-row { animation: fade 1.1s var(--ease) 0.45s backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; }
.contact-info .item { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.contact-info .item h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-dim); margin-bottom: 6px; }
.contact-info .item a, .contact-info .item span { font-size: 1.05rem; }
.contact-info .item a:hover { color: var(--signal); }
form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-dim); margin-bottom: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--signal); }
.contact-form textarea { min-height: 140px; resize: vertical; }
/* Honeypot: exists in the DOM for bots to auto-fill, invisible and
   unreachable for real visitors (off-screen, not display:none — some bots
   skip display:none fields specifically to evade this exact trick). */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 1.2em; font-family: var(--font-mono); font-size: 0.82rem; }
.contact-status.success { color: #58d68d; }
.contact-status.error { color: var(--signal); }

/* ---------- Resource cards ---------- */
.res-card { border-left: 2px solid var(--line); padding-left: 24px; transition: border-color 0.3s; }
.res-card:hover { border-left-color: var(--signal); }
.res-card .tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.res-card h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.res-card p { color: var(--steel); font-size: 0.9rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  padding: 26px 8px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
}
.faq-item button .pm { font-family: var(--font-mono); color: var(--signal); flex-shrink: 0; }
.faq-item .ans { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-item .ans p { color: var(--steel); padding: 0 8px 26px; max-width: 72ch; }
.faq-item .ans .feature-list { padding: 0 8px 26px; margin-top: 4px; }
.faq-item.open .ans { max-height: 320px; }
.faq-item.tall.open .ans { max-height: 900px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid-3 > * { flex-basis: 50%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .section { padding: 72px 0; }
  .grid-3 > * { flex-basis: 100%; }
  .grid-2, .steps, .industries { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr; padding: 0 20px; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line-soft); padding: 16px 4px; }
  form.contact-form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

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