/*
Theme Name:  Engineer M8
Theme URI:   https://engineerm8.com
Author:      Cortex AI Group Ltd
Description: Custom theme for Engineer M8 — intelligent fire & security technology. Dark operations-console design system. Marketing pages are hardcoded PHP templates; wp-admin exists for blog publishing (Marblism/Penny) only.
Version:     1.0.0
Requires PHP: 8.0
License:     Proprietary
Text Domain: engineerm8
*/

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS — the single source of truth.
   There is exactly ONE brand orange. Edit it here, nowhere else.
   ───────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --ink-0: #0B1117;            /* page background            */
  --ink-1: #111A24;            /* panel                      */
  --ink-2: #18242F;            /* raised panel / hover       */
  --line:  rgba(148,163,184,.13);

  /* Text */
  --text:  #E7EDF3;
  --muted: #93A1AE;

  /* Brand */
  --signal:      #F97316;      /* THE orange                 */
  --signal-soft: rgba(249,115,22,.12);
  --ok:          #2DD4A7;      /* healthy / live state       */
  --ok-soft:     rgba(45,212,167,.12);
  --warn:        #FBBF24;

  /* Type */
  --font-display: "Syne", sans-serif;
  --font-body:    "Space Grotesk", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  /* Layout */
  --container: 1140px;
  --radius: 14px;
  --radius-sm: 9px;

  /* ── Legacy token aliases ──────────────────────────────────
     The converted marketing pages keep their original scoped CSS,
     which references these old variable names. Every one resolves
     to the canonical tokens above — so the whole site recolours
     from this single block. Never redefine these per page.      */
  --black: var(--ink-0);       --deep: var(--ink-0);
  --bg: var(--ink-0);          --surface: var(--ink-1);
  --card: var(--ink-1);        --surface2: var(--ink-2);
  --border: var(--line);       --border-strong: rgba(148,163,184,.28);
  --border-sub: var(--line);
  --orange: var(--signal);     --orange-soft: #FF8A3D;
  --orange-glow: #FF8A3D;      --orange-dim: var(--signal-soft);
  --orange-border: rgba(249,115,22,.4); --orange-light: #FF8A3D;
  --cyan: var(--ok);           --cyan-dim: var(--ok-soft);
  --cyan-border: rgba(45,212,167,.4);
  --green: #22C55E;            --green-dim: rgba(34,197,94,.12);
  --green-border: rgba(34,197,94,.4);
  --red: #EF4444;              --red-dim: rgba(239,68,68,.12);
  --red-border: rgba(239,68,68,.4);
  --amber: var(--warn);        --amber-dim: rgba(251,191,36,.12);
  --amber-border: rgba(251,191,36,.4);
  --blue: #3B82F6;             --blue-dim: rgba(59,130,246,.12);
  --purple: #A78BFA;           --purple-dim: rgba(167,139,250,.12);
  --purple-border: rgba(167,139,250,.4);
  --magenta: #EC4899;
  --white: #FFFFFF;            --faint: rgba(148,163,184,.55);
  --grey: var(--muted);        --grey-dark: #5B6B7A;
  --text-muted: var(--muted);  --text-mid: var(--muted);
  --text-dim: var(--faint);
  --navy: var(--ink-0);        --navy-deep: var(--ink-0);
  --navy-soft: var(--ink-1);   --navy-card: var(--ink-1);
  --navy-mid: var(--ink-1);    --navy-light: var(--ink-2);
  --navy-900: var(--ink-0);    --navy-800: var(--ink-0);
  --navy-700: var(--ink-1);    --navy-600: var(--ink-2);
  --navy-500: #1C3554;         --navy-400: #2A4566;
  --line-strong: rgba(148,163,184,.28);
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--ink-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
em, .accent { color: var(--signal); font-style: normal; }

/* ── Signature: the status rail ───────────────────────────────
   Mono eyebrow with a live pulse dot. Marks every section,
   page header and post header across the whole site.          */
.rail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.rail::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok-soft);
  animation: pulse 2.4s infinite;
}
.rail--signal::before { background: var(--signal); box-shadow: 0 0 0 0 var(--signal-soft); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,212,167,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(45,212,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,167,0); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--signal); color: #0B0B0B; }
.btn--primary:hover { background: #FF8A3D; color: #0B0B0B; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ── Header / navigation ──────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 950;
  background: rgba(11,17,23,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* Offset for the WP admin bar when logged in */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.nav-bar {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--signal); color: #0B0B0B;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
}
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: flex; align-items: center; gap: 6px;
  font: 500 .92rem var(--font-body); color: var(--text);
  background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 8px;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li.current > a { color: var(--signal); }
.nav-menu .caret { font-size: .6rem; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px;
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-menu li.open .dropdown,
.nav-menu li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: .9rem; color: var(--text);
}
.dropdown a:hover { background: var(--ink-2); color: var(--signal); }
.dropdown a small { display: block; color: var(--muted); font-size: .75rem; margin-top: 1px; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-cta .btn { padding: 9px 18px; font-size: .88rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; position: relative; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.drawer-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
.drawer-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.nav-menu .mobile-only { display: none; }

/* Mobile drawer */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-cta { display: none; }
  /* The drawer hangs off the sticky header (absolute, not fixed):
     position:fixed breaks here because backdrop-filter makes the
     header the containing block. Absolute + top:100% is immune to
     that AND self-corrects for the WP admin bar offset. */
  .site-header.drawer-open .nav-menu {
    display: block; position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: var(--ink-0);
    border-top: 1px solid var(--line);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 24px 60px; margin: 0;
    z-index: 960;
  }
  body.admin-bar .site-header.drawer-open .nav-menu { height: calc(100vh - 68px - 46px); height: calc(100dvh - 68px - 46px); }
  .site-header.drawer-open .nav-menu > li { border-bottom: 1px solid var(--line); }
  .site-header.drawer-open .nav-menu > li > a,
  .site-header.drawer-open .nav-menu > li > button { width: 100%; padding: 15px 4px; font-size: 1.05rem; justify-content: space-between; }
  .site-header.drawer-open .dropdown {
    position: static; opacity: 1; visibility: hidden; transform: none;
    display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 12px;
  }
  .site-header.drawer-open li.open .dropdown { display: block; visibility: visible; }
  .site-header.drawer-open .nav-menu .mobile-only { display: block; }
  .site-header.drawer-open .nav-menu .mobile-cta { border-bottom: 0; padding-top: 18px; }
  .site-header.drawer-open .nav-menu .mobile-cta .btn { width: 100%; justify-content: center; }
}

/* ── Hero (front page) ────────────────────────────────────── */
.hero { padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%;
  background: radial-gradient(ellipse at center, var(--signal-soft), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--signal); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 38px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: .85rem; }

/* Console mockup */
.console {
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.console-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted);
}
.console-top .live { color: var(--ok); }
.console-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.console-metrics .m { background: var(--ink-1); padding: 14px; }
.console-metrics .m b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.console-metrics .m span { font-size: .72rem; color: var(--muted); }
.console-metrics .m .up { color: var(--ok); }
.console-feed { padding: 8px; }
.console-feed .ev {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: var(--radius-sm);
}
.console-feed .ev + .ev { margin-top: 4px; }
.console-feed .ev:hover { background: var(--ink-2); }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ev-dot--alert { background: var(--signal); }
.ev-dot--warn { background: var(--warn); }
.ev-dot--ok { background: var(--ok); }
.ev-body b { display: block; font-size: .88rem; }
.ev-body span { font-size: .78rem; color: var(--muted); }
.ev-time { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

/* ── Card grids ───────────────────────────────────────────── */
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,.45); }
.card .k {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 12px; display: block;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card .more { font-size: .9rem; font-weight: 600; color: var(--signal); }
.card--flag { border-color: rgba(249,115,22,.5); position: relative; }
.card--flag::after {
  content: "FLAGSHIP"; position: absolute; top: 18px; right: 18px;
  font: 600 .62rem var(--font-mono); letter-spacing: .16em;
  color: var(--signal); background: var(--signal-soft);
  padding: 4px 9px; border-radius: 999px;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.step { counter-increment: step; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  content: "0" counter(step);
  font: 700 .8rem var(--font-mono); color: var(--signal);
  display: inline-block; margin-bottom: 14px;
  border-bottom: 2px solid var(--signal); padding-bottom: 6px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.tile { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-1); }
.tile h3 { font-size: .98rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .86rem; margin: 0; }

/* Quote / award */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700; line-height: 1.4; margin: 0 0 22px;
}
.quote cite { font-family: var(--font-mono); font-style: normal; font-size: .75rem; letter-spacing: .16em; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink-1), var(--ink-2));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 64px 48px; text-align: center;
}
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ── Page header (interior pages & blog) ──────────────────── */
.page-head { padding: 76px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 6px; }

/* ── Blog listing ─────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.post-card {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(249,115,22,.45); }
.post-card .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .thumb--empty {
  aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-2), var(--ink-1));
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: var(--muted);
}
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-card .meta b { color: var(--signal); font-weight: 500; }
.post-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card h2 a:hover { color: var(--signal); }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.post-card .more { font-size: .88rem; font-weight: 600; color: var(--signal); }

.post-feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 48px;
}
.post-feature .body { padding: 40px; align-self: center; }
.post-feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.post-feature .thumb { height: 100%; min-height: 300px; object-fit: cover; width: 100%; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers {
  font-family: var(--font-mono); font-size: .85rem;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}
.pagination .page-numbers.current { background: var(--signal); border-color: var(--signal); color: #0B0B0B; }
.pagination a.page-numbers:hover { border-color: var(--signal); color: var(--signal); }

/* ── Single post ──────────────────────────────────────────── */
.post-head { padding: 76px 0 44px; text-align: center; border-bottom: 1px solid var(--line); }
.post-head h1 { max-width: 850px; margin-inline: auto; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-head .meta { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.post-hero-img { max-width: 900px; margin: 48px auto 0; padding: 0 24px; }
.post-hero-img img { border-radius: var(--radius); border: 1px solid var(--line); }

.entry-content { max-width: 720px; margin: 56px auto 0; padding: 0 24px; font-size: 1.06rem; }
.entry-content h2 { font-size: 1.65rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.7em; }
.entry-content a { color: var(--signal); border-bottom: 1px solid rgba(249,115,22,.35); }
.entry-content a:hover { border-bottom-color: var(--signal); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--signal); }
.entry-content blockquote {
  margin: 1.6em 0; padding: 18px 24px;
  border-left: 3px solid var(--signal);
  background: var(--ink-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-style: italic;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1.6em 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 8px; text-align: center; }
.entry-content code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--ink-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px;
}
.entry-content pre {
  background: var(--ink-1); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px; overflow-x: auto;
}
.entry-content pre code { background: none; border: 0; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--ink-1); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.post-foot { max-width: 720px; margin: 64px auto 0; padding: 28px 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-foot .tags a {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-right: 6px; color: var(--muted);
}
.post-foot .tags a:hover { border-color: var(--signal); color: var(--signal); }

.post-cta { max-width: 720px; margin: 56px auto 0; padding: 0 24px; }
.post-cta .cta-band { padding: 44px 34px; }
.post-cta h2 { font-size: 1.4rem; }

/* ── Generic page content ─────────────────────────────────── */
.page-content { padding: 56px 0 0; }
.page-content .entry-content { margin-top: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-1); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid .about { color: var(--muted); font-size: .9rem; max-width: 300px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid li a { font-size: .9rem; color: var(--text); }
.footer-grid li a:hover { color: var(--signal); }
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  color: var(--ok); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; margin-top: 18px;
}
.footer-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 22px 0;
  color: var(--muted); font-size: .82rem;
}
.footer-legal nav a { color: var(--muted); margin-left: 18px; font-size: .82rem; }
.footer-legal nav a:hover { color: var(--signal); }

/* ── 404 ──────────────────────────────────────────────────── */
.err { text-align: center; padding: 140px 0; }
.err .code { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; color: var(--signal); }

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid--4, .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .thumb { min-height: 220px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--4, .tiles, .steps, .post-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .console-metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { padding: 44px 24px; }
}
