/* ==========================================================================
   RUACH INFO-SEC — WEBSITE THEME
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --void:        #0B0D10;   /* primary background */
  --panel:       #14171C;   /* card / section panel */
  --panel-line:  #262B33;   /* hairline borders on dark */
  --crimson:     #A31621;   /* brand red, from mark */
  --crimson-hi:  #E63946;   /* bright accent / hover / alert */
  --steel:       rgba(255, 255, 255, 0.82);   /* secondary text on dark — clean white, no gray */
  --steel-dim:   #FF5A64;   /* tertiary text / meta — red accent, no gray */
  --paper:       #F3F2EE;   /* light section background */
  --paper-line:  #DFDCD3;   /* hairline borders on light */
  --ink:         #14171C;   /* dark text on light sections */
  --sweep-rgb:   230, 57, 70; /* current radar sweep color, cycled by JS */

  /* Type */
  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body:    "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Smooth color transitions for the rotating theme (js/main.js swaps the
   CSS custom properties above every 2 seconds). Elements with their own
   more specific `transition` rule keep that instead. */
body, header, footer, section, div, span, a, h1, h2, h3, h4, p, ul, li,
input, select, textarea, button {
  transition: background-color 0.9s ease, border-color 0.9s ease, color 0.9s ease, box-shadow 0.9s ease;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--crimson-hi);
  outline-offset: 3px;
}

/* ---- Eyebrow / labels ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(10.5px, 1.17vw, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-hi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--crimson-hi);
}
.eyebrow.on-light { color: var(--crimson); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.08;
}

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(17px, 1.92vw, 23px); }

p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--steel);
  max-width: 60ch;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.25vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}
.btn-solid:hover { background: var(--crimson-hi); border-color: var(--crimson-hi); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--panel-line);
}
.btn-ghost:hover { border-color: var(--steel); }

.btn-ghost.on-light {
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-ghost.on-light:hover { border-color: var(--ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
.brand img { height: 38px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }

/* ---- Dynamic brand mark: shield logo recolored live to match the
   active theme palette (--crimson-hi), which the site already rotates
   every 2s in js/main.js). Rendered as a CSS mask so a single flat-red
   PNG can be tinted with zero extra JS or image variants. ---- */
.brand-mark {
  --mark-h: clamp(34px, 4.6vw, 46px);
  display: block;
  flex: 0 0 auto;
  height: var(--mark-h);
  width: calc(var(--mark-h) * 1.1254); /* locked to source aspect ratio */
  background-color: var(--crimson-hi);
  -webkit-mask-image: var(--mark-src);
  mask-image: var(--mark-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 0 10px rgba(var(--sweep-rgb), 0.55)) drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  transition: background-color 0.9s ease, filter 0.9s ease, transform 0.25s ease;
  will-change: background-color;
}
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-mark-fallback { display: none; height: 38px; width: auto; }
/* If the browser can't do CSS masking, fall back to the static red PNG */
@supports not ((mask-image: none) or (-webkit-mask-image: none)) {
  .brand-mark { display: none; }
  .brand-mark-fallback { display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark { transition: none; }
}
@media (max-width: 980px) {
  .brand-mark, .brand-mark-fallback { height: 30px; width: calc(30px * 1.1254); }
}
.brand-text {
  font-family: var(--f-display);
  font-size: clamp(11.5px, 1.29vw, 15.5px);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-text small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: clamp(7px, 0.88vw, 10.5px);
  letter-spacing: 0.14em;
  color: var(--steel-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.17vw, 14px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--crimson-hi);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--paper); }
.main-nav a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.site-notice {
  border-top: 1px solid var(--panel-line);
  background: rgba(0, 0, 0, 0.18);
}
.site-notice .wrap {
  padding-top: 6px;
  padding-bottom: 6px;
  font-family: var(--f-mono);
  font-size: clamp(8px, 0.96vw, 11.5px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
  text-align: left;
}

/* Header "Request Assessment" — smaller, aligned to nav link scale */
.nav-cta .btn-solid {
  font-size: clamp(9.5px, 1.08vw, 13px);
  padding: 10px 18px;
  letter-spacing: 0.06em;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--panel-line);
  color: var(--paper);
  width: 44px; height: 44px;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile { display: none; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.55);
  z-index: 90;
}
.nav-scrim[hidden] { display: none; }

/* ==========================================================================
   HERO — signature radar-sweep motif
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 0.5cm;
  border-bottom: 1px solid var(--panel-line);
}

.radar {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(760px, 70vw);
  height: min(760px, 70vw);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.9;
}
.radar-ring {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}
.radar-ring.r2 { top: 12%; right: 12%; bottom: 12%; left: 12%; }
.radar-ring.r3 { top: 24%; right: 24%; bottom: 24%; left: 24%; }
.radar-ring.r4 { top: 36%; right: 36%; bottom: 36%; left: 36%; }
.radar-ring.r5 { top: 48%; right: 48%; bottom: 48%; left: 48%; border-style: dashed; border-color: rgba(230, 57, 70, 0.55); }

.radar-cross {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}
.radar-cross::before, .radar-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
}
.radar-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.radar-sweep {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--sweep-rgb), 0.42), rgba(var(--sweep-rgb), 0) 26%, rgba(var(--sweep-rgb), 0) 100%);
  animation: sweep 7s linear infinite;
  mix-blend-mode: screen;
  transition: background 0.4s ease;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--crimson-hi);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(230,57,70,0.7);
  animation: blip 2.4s ease-in-out infinite;
}
.radar-blip.b1 { top: 30%; left: 62%; animation-delay: 0.2s; }
.radar-blip.b2 { top: 68%; left: 40%; animation-delay: 1.1s; }
.radar-blip.b3 { top: 22%; left: 30%; animation-delay: 1.9s; }
.radar-blip.b4 { top: 50%; left: 78%; animation-delay: 0.7s; }
.radar-blip.b5 { top: 78%; left: 66%; animation-delay: 1.5s; }
@keyframes blip { 0%,100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.3); } }

/* ---- Threat labels on radar blips ---- */
.radar-label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: clamp(9.5px, 1.08vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
  text-shadow: 0 0 6px rgba(230,57,70,0.9), 0 1px 2px rgba(0,0,0,0.8);
  animation: label-pulse 2.4s ease-in-out infinite;
}
.radar-blip.b1 .radar-label { animation-delay: 0.2s; }
.radar-blip.b2 .radar-label { animation-delay: 1.1s; }
.radar-blip.b3 .radar-label { animation-delay: 1.9s; }
.radar-blip.b4 .radar-label { animation-delay: 0.7s; }
.radar-blip.b5 .radar-label { animation-delay: 1.5s; }
@keyframes label-pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; background: conic-gradient(from 0deg, rgba(var(--sweep-rgb),0.18), rgba(var(--sweep-rgb),0) 40%); }
  .radar-blip { animation: none; opacity: 0.6; }
  .radar-label { animation: none; opacity: 0.9; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin-top: 22px;
  color: var(--paper);
}
.hero h1 span { color: var(--crimson-hi); }
.hero p.lede { margin-top: 22px; }
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats {
  border-bottom: 1px solid var(--panel-line);
  background: var(--panel);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 30px var(--gutter);
  border-left: 1px solid var(--panel-line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--f-mono);
  font-size: clamp(22.5px, 2.46vw, 29.5px);
  color: var(--crimson-hi);
  letter-spacing: 0.02em;
}
.stat .label {
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.12vw, 13.5px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-top: 6px;
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */
section { padding: 0.5cm 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 14px; }

/* ==========================================================================
   CAPABILITIES GRID
   ========================================================================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--panel-line);
  border-left: 1px solid var(--panel-line);
}
.cap-card {
  padding: 40px 34px;
  border-right: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  position: relative;
  transition: background 0.2s ease;
}
.cap-card:hover { background: var(--panel); }
.cap-card .idx {
  font-family: var(--f-mono);
  font-size: clamp(10.5px, 1.17vw, 14px);
  color: var(--steel-dim);
}
.cap-card h3 { margin-top: 18px; color: var(--paper); }
.cap-card p {
  margin-top: 12px;
  color: var(--steel);
  font-size: clamp(12.5px, 1.38vw, 16.5px);
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--crimson-hi);
  transition: width 0.25s ease;
}
.cap-card:hover::before { width: 100%; }

/* ==========================================================================
   APPROACH (process — numbering justified: real sequence)
   ========================================================================== */
.approach { background: var(--paper); color: var(--ink); }
.approach .eyebrow { color: var(--crimson); }
.approach .eyebrow::before { background: var(--crimson); }
.approach h2 { color: var(--ink); }
.approach .lede { color: #2A1416; }

.approach-list {
  margin-top: 20px;
  border-top: 1px solid var(--paper-line);
}
.approach-item {
  display: grid;
  grid-template-columns: 110px 1fr 2fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
.approach-item .step {
  font-family: var(--f-mono);
  font-size: clamp(29px, 3.25vw, 39px);
  color: var(--crimson);
}
.approach-item h3 { color: var(--ink); }
.approach-item p { color: #2A1416; font-size: clamp(12.5px, 1.38vw, 16.5px); }

/* ==========================================================================
   SECTORS
   ========================================================================== */
.sectors { border-bottom: 1px solid var(--panel-line); border-top: 1px solid var(--panel-line);}
.sector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.sector-chip {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.17vw, 14px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--panel-line);
  padding: 12px 20px;
  color: var(--steel);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-copy p { color: var(--steel); margin-top: 18px; font-size: clamp(13.5px, 1.46vw, 17.5px); max-width: 52ch; }
.about-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.about-mark {
  background: var(--void);
  padding: 26px;
}
.about-mark .num { font-family: var(--f-mono); color: var(--crimson-hi); font-size: clamp(19px, 2.08vw, 25px); }
.about-mark .cap { font-family: var(--f-mono); font-size: clamp(9.5px, 1.08vw, 13px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-dim); margin-top: 8px; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  background: var(--crimson);
  color: #fff;
  overflow: hidden;
  padding: 90px 0;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
}
.cta-banner .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; max-width: 620px; }
.cta-banner .eyebrow { color: rgba(255,255,255,0.85); }
.cta-banner .eyebrow::before { background: #fff; }
.cta-banner .btn-solid { background: #fff; color: var(--crimson); border-color: #fff; }
.cta-banner .btn-solid:hover { background: var(--void); color: #fff; border-color: var(--void); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--panel);
  padding: 70px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--panel-line);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: var(--steel); font-size: clamp(12px, 1.33vw, 16px); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.12vw, 13.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 18px;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--steel);
  font-size: clamp(12px, 1.33vw, 16px);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.12vw, 13.5px);
  color: var(--steel-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Tablet: tighten grids, shrink radar slightly ---- */
@media (max-width: 1024px) {
  .radar { width: min(600px, 66vw); height: min(600px, 66vw); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Below 980px: hamburger navigation takes over ---- */
@media (max-width: 980px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--void);
    border-bottom: 1px solid var(--panel-line);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 95;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 18px var(--gutter);
    width: 100%;
    border-bottom: 1px solid var(--panel-line);
    font-size: clamp(12px, 1.33vw, 16px);
  }
  .main-nav a::after { display: none; }
  .nav-cta-mobile {
    display: flex;
    justify-content: center;
    margin: 18px var(--gutter) 22px;
    width: auto;
  }
  .nav-toggle { display: inline-flex; }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-item { grid-template-columns: 60px 1fr; gap: 20px; }
  .approach-item p { grid-column: 1 / -1; }
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--panel-line); padding-left: 0; }
  .stat:first-child { border-top: none; }
}

/* ---- Small tablet / large phone ---- */
@media (max-width: 768px) {
  section { padding: 0.5cm 0; }
  .hero { padding: 70px 0 0.5cm; }
  .section-head { gap: 24px; }
}

@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .radar { opacity: 0.32; width: 100vw; height: 100vw; right: -30%; }
  .radar-label { font-size: clamp(8.5px, 1vw, 12px); }
  section { padding: 0.5cm 0; }
  .hero { padding: 60px 0 0.5cm; }
  .cta-banner .wrap { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .approach-item { grid-template-columns: 1fr; gap: 8px; }
  .approach-item .step { font-size: clamp(22.5px, 2.46vw, 29.5px); }
}

/* ---- Header: brand + CTA scale down on smaller viewports ---- */
@media (max-width: 560px) {
  .site-header .header-bar { height: 66px; }
  .brand { gap: 8px; }
  .brand img { height: 30px; }
  .brand-text { font-size: clamp(9.5px, 1.08vw, 13px); }
  .brand-text small { font-size: clamp(7px, 0.79vw, 9.5px); letter-spacing: 0.1em; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-solid { font-size: clamp(8px, 0.96vw, 11.5px); padding: 8px 12px; }
  .nav-toggle { width: 38px; height: 38px; }
  .main-nav { max-height: calc(100vh - 110px); }
}

.nav-cta .btn-solid .btn-short { display: none; }

@media (max-width: 380px) {
  .nav-cta .btn-solid .btn-full { display: none; }
  .nav-cta .btn-solid .btn-short { display: inline; }
  .radar { opacity: 0.22; }
  .eyebrow { font-size: clamp(9.5px, 1.08vw, 13px); }
  .sector-chip { padding: 10px 14px; font-size: clamp(10px, 1.12vw, 13.5px); }
}

/* ---- Prevent any edge-case horizontal scroll from decorative elements ---- */
html, body { overflow-x: hidden; }
.hero, .site-header { max-width: 100vw; }

/* ==========================================================================
   TEAM STRUCTURE — Org Chart
   ========================================================================== */
.team { background: var(--paper); color: var(--ink); border-top: 1px solid var(--paper-line); }
.team .eyebrow { color: var(--crimson); }
.team .eyebrow::before { background: var(--crimson); }
.team h2 { color: var(--ink); }
.team .lede { color: #2A1416; }

.org-chart { margin-top: 50px; }

.org-top {
  max-width: 520px;
  margin: 0 auto;
  background: var(--void);
  border: 1px solid var(--panel-line);
  padding: 22px 30px;
  text-align: center;
}
.org-top h3 { color: #fff; font-size: clamp(15.5px, 1.71vw, 20.5px); letter-spacing: 0.02em; }
.org-top span {
  display: block;
  margin-top: 8px;
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(12px, 1.33vw, 16px);
  font-weight: 500;
  color: #D9B04C;
  text-transform: none;
  letter-spacing: 0;
}

.org-stem { width: 1px; height: 26px; background: var(--crimson); margin: 0 auto; }

.org-row-label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: clamp(9.5px, 1.08vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 30px 0 6px;
}

.org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  position: relative;
  padding-top: 26px;
}
.org-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--crimson);
}
.org-row .org-card::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 1px;
  height: 26px;
  background: var(--crimson);
}

.org-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: 0 10px 24px rgba(20, 23, 28, 0.06);
}
.org-card-head {
  background: var(--crimson);
  color: #fff;
  padding: 16px 20px;
}
.org-card-head h3 { color: #fff; font-size: clamp(14px, 1.5vw, 18px); }
.org-card-head span {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(11px, 1.25vw, 15px);
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.9);
}
.org-card-body { padding: 18px 20px 20px; background: #EAF0F6; }
.org-card-body li {
  position: relative;
  padding-left: 16px;
  font-size: clamp(12px, 1.33vw, 16px);
  color: #333A42;
  margin-bottom: 12px;
}
.org-card-body li:last-child { margin-bottom: 0; }
.org-card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
}

/* ==========================================================================
   SERVICES — Explore Our Services & Solutions
   ========================================================================== */
.services { background: var(--void); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--panel-line);
  margin-top: 46px;
  border: 1px solid var(--panel-line);
}
.service-card {
  background: var(--void);
  padding: 34px 26px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--panel); }
.service-icon { font-size: clamp(24px, 2.67vw, 32px); line-height: 1; }
.service-card h3 { margin-top: 16px; color: var(--paper); font-size: clamp(14.5px, 1.62vw, 19.5px); }
.service-card p { margin-top: 10px; color: var(--steel); font-size: clamp(12px, 1.33vw, 16px); }

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.certifications { background: var(--paper); color: var(--ink); border-top: 1px solid var(--paper-line); }
.certifications .eyebrow { color: var(--crimson); }
.certifications .eyebrow::before { background: var(--crimson); }
.certifications h2 { color: var(--ink); }
.certifications .lede { color: #2A1416; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.cert-badge {
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 140px;
}
.cert-badge img { max-height: 60px; width: auto; margin: 0 auto; }
.cert-badge .cert-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px dashed var(--panel-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: clamp(9.5px, 1.08vw, 13px);
  color: var(--steel-dim);
}
.cert-badge .cert-name {
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.12vw, 13.5px);
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 500;
}

/* ---- Risk Matrix ---- */
.risk-matrix-wrap { margin-top: 60px; max-width: 100%; }
.risk-matrix-wrap h3 { color: var(--ink); font-size: clamp(15.5px, 1.71vw, 20.5px); margin-bottom: 6px; }
.risk-matrix-wrap p.small { color: #2A1416; font-size: clamp(12px, 1.33vw, 16px); margin-bottom: 22px; max-width: 60ch; }

.risk-matrix-scroll {
  width: 100%;
  max-width: 640px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.risk-matrix-scroll::-webkit-scrollbar { height: 6px; }
.risk-matrix-scroll::-webkit-scrollbar-track { background: var(--paper); }
.risk-matrix-scroll::-webkit-scrollbar-thumb { background: var(--paper-line); border-radius: 3px; }

.risk-matrix {
  display: grid;
  grid-template-columns: 82px repeat(5, minmax(72px, 1fr));
  width: 100%;
  min-width: 460px;
  border: 1px solid var(--paper-line);
  font-family: var(--f-mono);
  font-size: clamp(9.5px, 1.08vw, 13px);
}
.risk-matrix .rm-cell {
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.35);
  color: #14171C;
  font-weight: 600;
  word-break: keep-all;
  white-space: nowrap;
}
.risk-matrix .rm-axis {
  background: var(--void);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8.5px, 1vw, 12px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 4px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.risk-matrix .rm-corner { background: var(--void); }
.rm-low     { background: #6FA96C; }
.rm-medium  { background: #E0C34C; }
.rm-high    { background: #E08A3C; }
.rm-severe  { background: var(--crimson); color: #fff; }

@media (max-width: 560px) {
  .risk-matrix { min-width: 400px; grid-template-columns: 68px repeat(5, minmax(64px, 1fr)); font-size: clamp(8.5px, 1vw, 12px); }
  .risk-matrix .rm-cell { padding: 8px 4px; }
  .risk-matrix .rm-axis { font-size: clamp(7px, 0.88vw, 10.5px); padding: 6px 3px; }
}

/* ==========================================================================
   TEAM ORG-CHART — small-screen stacking
   (placed after the base org-chart rules above so it wins the cascade)
   ========================================================================== */
@media (max-width: 768px) {
  .org-card { flex: 1 1 100%; max-width: 480px; margin: 0 auto; }
  .org-row { padding-top: 20px; gap: 40px; }
  .org-row::before { left: 50%; width: 1px; height: 20px; top: -20px; }
  .org-row .org-card::before { display: none; }
}

