/* ============================================================
   Explosive Risk Management — operational style sheet
   ============================================================ */

:root {
  --bg:        #0a0d12;
  --bg-2:      #0e131a;
  --surface:   #131922;
  --surface-2: #1a212c;
  --line:      #1d2530;
  --line-2:    #2a3340;
  --text:      #e9ecf1;
  --text-dim:  #98a1ad;
  --text-mute: #5a6573;
  --accent:    #c8102e;
  --accent-2:  #e63048;
  --accent-glow: rgba(200, 16, 46, 0.22);
  --green:     #4ade80;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);

  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul { list-style: none; }
svg { display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: #06090d;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar__sep { color: var(--text-mute); }
.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
}
.topbar__tag .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0); }
}
.topbar__spacer { flex: 1; }
.topbar__ip {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  transition: color .2s, opacity .2s;
}
.topbar__ip:empty { display: none; }
.topbar__coord {
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topbar__band {
  color: var(--accent-2);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo__pill {
  display: inline-flex;
  align-items: center;
}
.logo__img {
  display: block;
  height: 56px;
  width: auto;
  filter:
    drop-shadow(0 0 14px rgba(200, 16, 46, 0.35))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: filter .25s ease, transform .25s ease;
}
.logo:hover .logo__img {
  filter:
    drop-shadow(0 0 18px rgba(200, 16, 46, 0.55))
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5))
    brightness(1.08);
  transform: translateY(-1px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9998;
}
body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(80vw, 820px);
  height: min(60vh, 320px);
  transform: translate(-50%, -50%) scale(0.92);
  background-image: url("../logo-web.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9999;
  filter:
    drop-shadow(0 0 40px rgba(200, 16, 46, 0.55))
    drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7));
}
body:has(.logo:hover, .footer__pill:hover)::before {
  opacity: 1;
}
body:has(.logo:hover, .footer__pill:hover)::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { transition: opacity .15s ease; }
  body:has(.logo:hover, .footer__pill:hover)::after {
    transform: translate(-50%, -50%) scale(1);
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav__cta {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(200, 16, 46, 0.06);
  margin-left: 6px;
}
.nav__cta:hover { background: rgba(200, 16, 46, 0.16); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 150px) 0 clamp(72px, 9vw, 130px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 30%, transparent 75%);
  opacity: 0.55;
}
.hero__glow {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  z-index: -3;
  background: radial-gradient(circle at 40% 50%, var(--accent-glow), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.hero__radar {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(720px, 110vw, 1400px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
  opacity: 1;
}
.hero__radar::before,
.hero__radar::after,
.hero__radar > .ring {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(230, 48, 72, 0.55);
  border-radius: 999px;
}
.hero__radar > .ring--2 { inset: 12%; opacity: 0.85; }
.hero__radar > .ring--3 { inset: 24%; opacity: 0.7; }
.hero__radar > .ring--4 { inset: 36%; opacity: 0.55; }
.hero__radar > .ring--5 { inset: 48%; opacity: 0.45; }
.hero__radar::before {
  border: 0;
  background:
    linear-gradient(transparent 49.6%, rgba(230, 48, 72, 0.45) 49.8%, rgba(230, 48, 72, 0.45) 50.2%, transparent 50.4%),
    linear-gradient(90deg, transparent 49.6%, rgba(230, 48, 72, 0.45) 49.8%, rgba(230, 48, 72, 0.45) 50.2%, transparent 50.4%);
}
.hero__radar::after {
  border: 0;
  background: conic-gradient(
    from 0deg,
    rgba(255, 80, 100, 0.0) 0deg,
    rgba(255, 80, 100, 0.0) 300deg,
    rgba(255, 80, 100, 0.35) 340deg,
    rgba(255, 80, 100, 0.85) 360deg
  );
  border-radius: 999px;
  mask: radial-gradient(circle at 50% 50%, black 0, black 50%, transparent 50%);
  -webkit-mask: radial-gradient(circle at 50% 50%, black 0, black 50%, transparent 50%);
  animation: radarSweep 12s linear infinite;
  filter: blur(0.4px);
}
@keyframes radarSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hero__pings {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__pings .ping {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0;
  animation: pingFlash 12s linear infinite;
}
.hero__pings .ping--a { top: 38%; left: 28%; animation-delay: 2.9s; }
.hero__pings .ping--b { top: 62%; left: 70%; animation-delay: 6.2s; }
.hero__pings .ping--c { top: 30%; left: 64%; animation-delay: 8.2s; }
.hero__pings .ping--d { top: 70%; left: 36%; animation-delay: 10s; }
@keyframes pingFlash {
  0%   { opacity: 0; transform: scale(0.6); }
  10%  { opacity: 1; transform: scale(1); }
  60%  { opacity: 0.0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.2); }
}
.hero__inner {
  text-align: center;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}
.hero__meta__sep { color: var(--accent); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 auto 28px;
  color: var(--text);
  max-width: 30ch;
}
.hero__lede {
  max-width: 780px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  margin: 0 auto 44px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 22px;
  border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  max-width: 720px;
  margin: 0 auto;
}
.hero__stats > div {
  background: var(--bg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 30%, transparent 75%);
  opacity: 0.5;
}
.page-hero__glow {
  position: absolute;
  inset: auto -10% -50% -10%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.crumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.crumb a {
  color: var(--text-dim);
  transition: color .2s;
}
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--accent); }
.page-hero__lbl {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  color: var(--text);
  max-width: 22ch;
}
.page-hero__lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   PROSE (long-form copy block on detail pages)
   ============================================================ */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-dim);
  line-height: 1.75;
}
.prose p + p { margin-top: 18px; }

/* ============================================================
   PAGE HERO — split variant (left-aligned + dossier sidebar)
   ============================================================ */
.page-hero--split { text-align: left; }
.page-hero--split .page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30%, 380px);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.page-hero--split .crumb {
  justify-content: flex-start;
  margin-bottom: 24px;
}
.page-hero--split .page-hero__title {
  margin: 0 0 22px;
  max-width: none;
}
.page-hero--split .page-hero__lede {
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 880px) {
  .page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
}

/* Dossier metadata card */
.dossier {
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--font-mono);
  position: sticky;
  top: 100px;
}
.dossier__head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  text-transform: uppercase;
}
.dossier__list { display: grid; }
.dossier__list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dossier__list > div:last-child { border-bottom: 0; }
.dossier__list dt {
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 500;
}
.dossier__list dd {
  color: var(--text);
  margin: 0;
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .dossier { position: static; } }

/* ============================================================
   DETAIL SECTIONS (numbered subsection layout)
   ============================================================ */
.detail__head {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 32px;
  align-items: baseline;
  border-top: 1px solid var(--line-2);
  padding-top: 28px;
  margin-bottom: 36px;
}
.detail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.detail__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--text);
}
.detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 340px);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.detail__body--full { grid-template-columns: 1fr; }
.detail__main p {
  font-size: clamp(16px, 1.25vw, 17px);
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 70ch;
}
.detail__main p + p { margin-top: 18px; }

@media (max-width: 880px) {
  .detail__head { grid-template-columns: 1fr; gap: 8px; }
  .detail__body { grid-template-columns: 1fr; }
}

/* Pull-quote callout in detail__body sidebar */
.callout {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-dim);
  position: sticky;
  top: 110px;
}
.callout p { margin: 0; }
@media (max-width: 880px) { .callout { position: static; } }

/* ============================================================
   APPROACH (numbered horizontal steps)
   ============================================================ */
.approach {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.approach__step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 28px 28px;
  align-items: baseline;
  transition: background .2s;
}
.approach__step:hover { background: var(--surface); }
.approach__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.approach__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.approach__body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 78ch;
}
@media (max-width: 700px) {
  .approach__step { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
}

/* ============================================================
   DETAIL ROWS (capability deep-dive blocks)
   ============================================================ */
.detail-rows {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.drow {
  background: var(--bg);
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding: 36px 32px;
  transition: background .2s;
}
.drow:hover { background: var(--surface); }
.drow__lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px dashed var(--line-2);
  padding-right: 28px;
}
.drow__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.drow__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.22;
  color: var(--text);
  letter-spacing: -0.005em;
}
.drow__body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 70ch;
}
.drow__body h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 22px 0 10px;
}
.drow__body h4:first-child { margin-top: 0; }
.drow__body ul {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  list-style: none;
}
.drow__body ul li {
  padding: 7px 0 7px 16px;
  position: relative;
  border-top: 1px dashed var(--line-2);
}
.drow__body ul li:first-child { border-top: 0; }
.drow__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 7px; height: 1px;
  background: var(--accent);
}
@media (max-width: 800px) {
  .drow { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; }
  .drow__lead {
    border-right: 0; padding-right: 0;
    border-bottom: 1px dashed var(--line-2); padding-bottom: 18px;
  }
}

/* ============================================================
   AUDIENCE / ENGAGEMENT-MODEL TILES
   ============================================================ */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience > div {
  background: var(--bg);
  padding: 28px 26px;
  transition: background .2s;
}
.audience > div:hover { background: var(--surface); }
.audience h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.audience p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   RELATED (lateral cross-link cards)
   ============================================================ */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rel {
  background: var(--bg);
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: background .2s;
}
.rel:hover { background: var(--surface); }
.rel__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.rel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.rel__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-top: 6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, gap .2s;
}
.rel:hover .rel__cta { color: var(--accent); gap: 12px; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: 960px;
  text-align: center;
}
.section__lbl {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text);
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  background: var(--bg);
  padding: 36px 30px 38px;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background .25s ease;
}
.cap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width .35s ease;
}
.cap:hover { background: var(--surface); }
.cap:hover::before { width: 100%; }
.cap__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  transition: color .25s, gap .25s;
}
a.cap:hover .cap__cta {
  color: var(--accent);
  gap: 12px;
}
.cap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 28px;
}
.cap__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  color: var(--text);
}
.cap__body {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.cap__list {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.cap__list li {
  padding: 10px 0;
  border-top: 1px dashed var(--line-2);
  position: relative;
  padding-left: 16px;
}
.cap__list li:first-child { border-top: 0; }
.cap__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.about__body p + p { margin-top: 18px; }
.about__body p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 62ch;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client {
  background: var(--bg);
  padding: 38px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  transition: background .25s ease;
}
.client:hover { background: var(--surface); }
a.client:hover .client__lbl { color: var(--text); }
.client__icon {
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--line-2);
  background: rgba(200, 16, 46, 0.06);
  transition: border-color .25s, transform .25s;
}
.client:hover .client__icon {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.client__lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.contact__lede {
  color: var(--text-dim);
  margin-top: 18px;
  max-width: 46ch;
  font-size: 16px;
}
.contact__email {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto auto;
  border: 1px solid var(--line-2);
  padding: 36px;
  background: var(--surface);
  position: relative;
  transition: border-color .25s, transform .25s, background .25s;
}
.contact__email:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.contact__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.contact__addr {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  word-break: break-word;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-top: 4px;
}
.contact__arrow {
  position: absolute;
  top: 36px; right: 36px;
  font-size: 22px;
  color: var(--text-mute);
  transition: color .25s, transform .25s;
}
.contact__email:hover .contact__arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}
@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
  .contact__email { padding: 28px; }
  .contact__arrow { top: 28px; right: 28px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: #06090d;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__pill {
  display: inline-flex;
  align-items: center;
}
.footer__logo {
  display: block;
  height: 32px;
  width: auto;
}
.footer__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer__meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.footer__sep { color: var(--line-2); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.cap.reveal:nth-child(2) { transition-delay: .08s; }
.cap.reveal:nth-child(3) { transition-delay: .16s; }
.cap.reveal:nth-child(4) { transition-delay: .24s; }
.client.reveal:nth-child(2) { transition-delay: .06s; }
.client.reveal:nth-child(3) { transition-delay: .12s; }
.client.reveal:nth-child(4) { transition-delay: .18s; }
.client.reveal:nth-child(5) { transition-delay: .24s; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .header__inner { gap: 12px; }
  .logo__img { height: 40px; }
  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 14px var(--pad) 22px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px; border: 1px solid var(--line); }
  .nav__cta { margin-left: 0; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
  }
  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform .25s, opacity .2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .topbar__inner { font-size: 10px; gap: 10px; }
  .topbar__est, .topbar__id, .topbar__ip, .topbar__coord, .topbar__band { display: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

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