/**
 * Agilient Lens Diagram — Widget CSS
 * Extracted from prototype index.html
 * 
 * NOTE: CSS variables (:root) phải global.
 * Tất cả diagram-specific selectors đã được namespace bởi
 * class names unique (.diagram-card, .zone-shape, .panel, v.v.)
 * nên không conflict với theme mặc định.
 * 
 * Các sections như .nav, .hero h1, .articles, .footer, .ctaband
 * đã được loại bỏ vì chúng thuộc global theme.
 */

:root {
  --brand-blue: #296187;
  --brand-slate: #7896AB;
  --brand-light: #F1F1F2;
  --brand-white: #FFFFFF;
  --brand-charcoal: #2D2D2F;
  --bg: #102A3A;
  --bg-2: #081923;
  --navy-2: #183F58;
  --navy-3: var(--brand-blue);
  --line: #315F7C;
  --ice: var(--brand-light);
  --muted: var(--brand-slate);
  --accent: var(--brand-blue);
  --accent-2: var(--brand-slate);
  --gold: var(--brand-light);
  --white: var(--brand-white);
  --warm: var(--brand-light);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

section,
footer {
  scroll-margin-top: 92px;
}

:focus-visible {
  outline: 3px solid #F1F1F2;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--brand-white);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 24, 47, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--ice);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 56px 32px 32px;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(120, 150, 171, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.hero-head {
  text-align: center;
  margin-bottom: 22px;
}

.hero-eyebrow {
  color: var(--accent-2);
  letter-spacing: 4px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -1px;
  line-height: 1.05;
}

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

.hero-sub {
  color: var(--ice);
  margin: 0 auto;
  font-size: 17px;
  max-width: 720px;
  line-height: 1.55;
}

.hero-trust-line {
  color: rgba(241, 241, 242, 0.78);
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ice);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--white);
}

.picker-wrap {
  text-align: center;
  margin: 18px 0 14px;
}

.picker-label {
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.asset-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.asset-btn {
  background: rgba(41, 97, 135, 0.4);
  border: 1px solid var(--line);
  color: var(--ice);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
}

.asset-btn:hover {
  border-color: var(--accent);
  color: var(--white);
}

.asset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(120, 150, 171, 0.35);
}

.stage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 14px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

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

.diagram-card {
  background:
    radial-gradient(ellipse at top, rgba(120, 150, 171, 0.06), transparent 60%),
    linear-gradient(180deg, #183F58 0%, #081923 100%);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 840px;
  margin: 0 auto;
}

svg.diagram-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}

.zone {
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.diagram.dim .zone:not(.active) {
  opacity: 0.4;
}

.zone.active {
  filter: drop-shadow(0 0 18px rgba(120, 150, 171, 0.65));
}

/* Diagram interaction and icon treatment */
@keyframes ringPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(120, 150, 171, 0.55)) drop-shadow(0 0 16px rgba(120, 150, 171, 0.30));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(120, 150, 171, 0.95)) drop-shadow(0 0 26px rgba(120, 150, 171, 0.55));
  }
}

.zone-shape.active .zone-ring,
.zone-shape.active>rect:first-child {
  animation: ringPulse 2.4s ease-in-out infinite;
}

/* Photoreal icons get a uniform high-contrast drop shadow so they pop */
.map-icon {
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.icon-pad {
  pointer-events: none;
}

/* === Strategic X-Ray modes: single building_shell.svg image, side/elevation
       shell + floorplan/hardware reveal beneath when shell fades on Layer 4 === */
.building-shell,
.building-internals {
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

/* Soft drop-shadow on the building — angle matches perimeter equipment */
.building-shell-img {
  filter: drop-shadow(2px 6px 6px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 2px rgba(120, 150, 171, 0.35));
}

/* Layers 1-3: building solid; floorplan hidden beneath */
.building-mode-exterior .building-internals,
.building-mode-exterior .zone-shape[data-zone="core"] {
  opacity: 0;
  pointer-events: none;
}

.building-mode-exterior .building-shell {
  opacity: 1;
}

/* Layer 4 (Building Envelope): shell removed entirely, clean top-down floorplan */
.building-mode-xray .building-shell {
  opacity: 0;
  pointer-events: none;
}

.building-mode-xray .building-internals {
  opacity: 1;
}

/* Layer 5 (The Asset): shell hidden; floorplan zoomed slightly, asset core glows */
.building-mode-core .building-shell {
  opacity: 0;
  pointer-events: none;
}

.building-mode-core .building-internals {
  opacity: 1;
  transform-origin: 300px 300px;
  transform: scale(1.08);
}

.building-mode-core .zone-shape[data-zone="core"] {
  filter: drop-shadow(0 0 10px rgba(241, 241, 242, 0.95)) drop-shadow(0 0 24px rgba(241, 241, 242, 0.55));
}

/* Refined zone-name tags */
.zone-tag-rect {
  fill: rgba(16, 42, 58, 0.78);
  stroke: rgba(120, 190, 235, 0.55);
  stroke-width: 0.7;
}

.zone-shape.active~.zone-tag-group .zone-tag-rect {
  stroke: #7896AB;
}

.zone-tag-text {
  fill: #F1F1F2;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  pointer-events: none;
  text-anchor: middle;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.zone-tag-sub {
  fill: rgba(220, 235, 255, 0.85);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.6px;
  pointer-events: none;
  text-anchor: middle;
}

.zone-label {
  fill: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 3.5px;
}

.zone-sublabel {
  fill: #F1F1F2;
  font-size: 8.5px;
  font-weight: 500;
  pointer-events: none;
  letter-spacing: 0.6px;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 2.5px;
}

.micro-label {
  fill: #ffffff;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 1.5px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.panel {
  background: linear-gradient(180deg, var(--navy-2), #0D2432);
  border-radius: 16px;
  padding: 28px 32px;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.panel-eyebrow {
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-eyebrow .num {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* New: domain tabs (PSPF) */
.tab {
  background: rgba(41, 97, 135, 0.4);
  border: 1px solid var(--line);
  color: var(--ice);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover:not(.disabled) {
  border-color: var(--accent);
  color: var(--white);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(120, 150, 171, 0.35);
}

.tab.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tab .badge {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.tab.active .badge {
  background: rgba(24, 63, 88, 0.18);
  color: var(--bg);
}

.lens-mark {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.lens-mark::before,
.lens-mark::after,
.lens-mark i {
  content: '';
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.lens-physical::before {
  width: 12px;
  height: 13px;
  bottom: 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 1px 1px;
  opacity: 0.9;
}

.lens-physical::after {
  width: 2px;
  height: 8px;
  bottom: 3px;
  background: currentColor;
  box-shadow: -4px 0 0 currentColor, 4px 0 0 currentColor;
  opacity: 0.65;
}

.lens-information::before {
  width: 11px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: translateY(1px);
}

.lens-information::after {
  width: 6px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
  transform: translateY(1px);
}

.lens-technology::before {
  width: 14px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  top: 2px;
}

.lens-technology::after {
  width: 10px;
  height: 1.5px;
  background: currentColor;
  bottom: 1px;
}

.lens-personnel::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  top: 2px;
  left: 2px;
  box-shadow: 7px 0 0 currentColor;
}

.lens-personnel::after {
  width: 14px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  bottom: 2px;
}

.lens-governance::before {
  width: 13px;
  height: 1.5px;
  background: currentColor;
  top: 5px;
}

.lens-governance::after {
  width: 1.5px;
  height: 13px;
  background: currentColor;
  top: 1px;
  box-shadow: -4px 5px 0 -0.2px currentColor, 4px 5px 0 -0.2px currentColor;
}

.lens-risk::before {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.lens-risk::after {
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* New: layer carousel */
.layer-arrow:hover {
  background: rgba(120, 150, 171, 0.15);
  color: var(--accent);
}

.layer-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ice);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.layer-btn:hover:not(.disabled) {
  background: rgba(120, 150, 171, 0.1);
  color: var(--white);
}

.layer-btn.active {
  background: var(--navy-3);
  border-color: var(--accent);
  color: var(--white);
}

.layer-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.layer-btn .step {
  font-size: 9px;
  color: var(--accent-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Hotspots on scene */
.hotspot {
  cursor: pointer;
  transition: transform 0.18s ease;
}

.hotspot:hover {
  transform: scale(1.15);
}

.hotspot.active .hot-bg {
  fill: var(--gold);
}

.hot-bg {
  fill: var(--accent);
  stroke: var(--white);
  stroke-width: 2;
  transition: fill 0.18s;
}

.hot-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.6;
  animation: pulse 2.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hotspot.active .hot-pulse {
  stroke: var(--gold);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.hot-num {
  fill: var(--white);
  font-size: 12;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

/* Panel additions */
.panel-tag {
  color: var(--gold);
  font-size: 13px;
  font-style: italic;
  margin: 0 0 16px;
}

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 241, 242, 0.1);
  border: 1px solid rgba(241, 241, 242, 0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.panel-section {
  margin-bottom: 22px;
}

.panel-section h3 {
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
}

.panel-route-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(241, 241, 242, 0.22);
  border-left: 3px solid var(--gold);
  background: rgba(241, 241, 242, 0.075);
  color: rgba(212, 226, 247, 0.92);
  font-size: 12.5px;
  line-height: 1.45;
}

.panel-route-note b {
  color: var(--white);
}

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.standards span {
  background: rgba(120, 150, 171, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(120, 150, 171, 0.25);
  padding: 4px 11px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
}

.examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.example {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 6px;
}

.example-label {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 4px;
}

.example p {
  color: var(--ice);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.panel-blurb {
  color: var(--ice);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-list a {
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.18s ease;
}

.service-list a:hover {
  background: linear-gradient(180deg, rgba(120, 150, 171, 0.12), rgba(120, 150, 171, 0.05));
  border-left-color: var(--gold);
  transform: translateX(2px);
}

.service-list .svc-name {
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-list .svc-name::after {
  content: '\2192';
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.service-list a:hover .svc-name::after {
  transform: translateX(4px);
  color: var(--gold);
}

.service-list .svc-desc {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 5px;
  line-height: 1.5;
}

/* ===== TRUST STRIP ===== */
.trust {
  background: var(--bg-2);
  padding: 36px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.trust-eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.65;
}

.trust-logos span {
  color: var(--ice);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.credential-badge {
  width: 168px;
  height: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 7px;
  border: 1px solid rgba(241, 241, 242, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, 0.70);
  overflow: hidden;
}

.credential-badge img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.credential-badge.asis {
  background: #67bfd0;
}

.credential-badge.asial img {
  transform: scale(1.38);
}

.credential-badge.asis img {
  transform: scale(1.08);
}

/* ===== STATS ===== */
.stats {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  padding: 72px 32px;
}

.stats-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.stats-eyebrow {
  color: var(--accent-2);
  letter-spacing: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
}

.stats-head h2 {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.stats-head p {
  color: var(--ice);
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  background: linear-gradient(180deg, var(--navy-2), #0D2432);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 26px 24px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.stat:hover {
  border-color: rgba(241, 241, 242, 0.32);
  background: linear-gradient(180deg, #296187, #0D2432);
  transform: translateY(-2px);
}

.stat .num {
  color: var(--accent);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.stat .lbl {
  color: var(--ice);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.4;
}

.seo-services {
  grid-column: 1 / -1;
  width: 100%;
  margin: 10px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  align-items: stretch;
  gap: 22px;
}

.seo-service-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: rgba(8, 25, 35, 0.20);
  border: 1px solid rgba(241, 241, 242, 0.065);
  padding: 18px;
}

.seo-service-block.locations {
  border-top: 1px solid rgba(241, 241, 242, 0.065);
}

.seo-services h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.seo-services p {
  color: rgba(212, 226, 247, 0.74);
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 860px;
}

.seo-service-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seo-service-block.locations .seo-service-grid {
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
}

.seo-service-block.locations h3 {
  font-size: 13px;
  letter-spacing: 1.45px;
  color: var(--white);
}

.seo-service-block.locations p {
  margin-bottom: 16px;
  max-width: none;
  color: rgba(212, 226, 247, 0.74);
}

.seo-service-block.locations .seo-service-grid a {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 16px;
  background: rgba(16, 42, 58, 0.30);
  border-color: rgba(241, 241, 242, 0.10);
}

.seo-service-grid a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--ice);
  text-decoration: none;
  border: 1px solid rgba(241, 241, 242, 0.10);
  background: rgba(16, 42, 58, 0.30);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.seo-service-grid a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-top: 1px solid rgba(241, 241, 242, 0.65);
  border-right: 1px solid rgba(241, 241, 242, 0.65);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.seo-service-grid a:hover {
  color: var(--white);
  border-color: rgba(241, 241, 242, 0.28);
  background: rgba(41, 97, 135, 0.26);
}

.seo-service-grid a:hover::after {
  border-color: var(--gold);
}

/* ===== ARTICLES ===== */
.articles {
  padding: 72px 32px;
  background: var(--bg);
}

.articles-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.articles-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.articles-head h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}

.articles-head a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.article {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  color: inherit;
  display: block;
  text-decoration: none;
}

.article:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.article .img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #296187, #0D2432);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

.article .meta {
  padding: 18px 22px;
}

.article .meta::after {
  content: 'Read insight';
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-2);
  font-size: 16px;
  font-weight: 700;
}

.article:hover .meta::after {
  color: var(--gold);
}

.article .tag {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.article h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.article p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ===== CTA BAND ===== */
.ctaband {
  background: linear-gradient(135deg, var(--accent) 0%, #296187 100%);
  padding: 56px 32px;
  text-align: center;
}

.ctaband h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--bg);
  letter-spacing: -0.5px;
}

.ctaband p {
  color: rgba(6, 24, 47, 0.85);
  margin: 0 0 22px;
  font-size: 16px;
}

.ctaband .btn-primary {
  background: var(--bg);
  color: var(--white);
}

.ctaband .btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  padding: 48px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1.05fr 1.05fr 1.35fr 1fr;
  gap: 34px;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer h3 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: 0 0 8px;
}

.footer a {
  color: var(--ice);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-tag {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-meta-list {
  color: var(--ice);
  font-size: 12px;
  line-height: 1.55;
}

.footer-meta-list li {
  margin-bottom: 7px;
}

.footer-meta-list span {
  color: var(--muted);
}

.footer-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-credentials .credential-badge {
  width: 112px;
  height: 68px;
  padding: 8px 10px;
}

.footer-bottom {
  max-width: 1320px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ===== Interactive layered diagram ===== */
.tab-caption {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 24px 0 8px;
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 auto 18px;
  max-width: 1100px;
}

.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin-top: 18px;
}

.zone-shape {
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.diagram.dim .zone-shape:not(.active) {
  opacity: 0.45;
}

.zone-shape.active {
  filter: drop-shadow(0 0 18px rgba(120, 150, 171, 0.65));
}

.room-label {
  fill: #1a2530;
  font-size: 4.6px;
  font-weight: 800;
  letter-spacing: 0.4px;
  pointer-events: none;
  text-anchor: middle;
}

.zone-tag {
  font-size: 3.6px;
  font-weight: 800;
  letter-spacing: 0.4px;
  pointer-events: none;
  text-anchor: middle;
}

.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.phase-pill {
  background: rgba(241, 241, 242, 0.1);
  border: 1px solid rgba(241, 241, 242, 0.3);
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Risk-domain step boxes */
.risk-step {
  cursor: pointer;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.diagram.dim .risk-step:not(.active) {
  opacity: 0.45;
}

.risk-step.active {
  filter: drop-shadow(0 0 18px rgba(120, 150, 171, 0.65));
}

.risk-step-label {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.risk-step-sub {
  fill: #F1F1F2;
  font-size: 9px;
  font-weight: 500;
  pointer-events: none;
  letter-spacing: 0.4px;
}

.risk-num {
  fill: #102A3A;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
}

.risk-arc-label {
  fill: #F1F1F2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  pointer-events: none;
}


/* ===== Threat picture (per cell) ===== */
.threat-block {
  display: grid;
  gap: 10px;
}

.threat-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: start;
}

.threat-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 4px;
}

.threat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.threat-pill {
  font-size: 14px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid;
}

.threat-actor {
  background: rgba(220, 80, 80, 0.10);
  border-color: rgba(220, 80, 80, 0.35);
  color: #F1F1F2;
}

.threat-act {
  background: rgba(242, 201, 76, 0.10);
  border-color: rgba(242, 201, 76, 0.35);
  color: #F1F1F2;
}


/* ===== Domain header inside the diagram card ===== */
.domain-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  background: rgba(120, 150, 171, 0.15);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.domain-header .dh-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 12px currentColor;
}

.domain-header .dh-icon {
  font-size: 22px;
  flex: 0 0 auto;
}

.domain-header .dh-icon.lens-mark {
  width: 22px;
  height: 22px;
  font-size: 0;
}

.domain-header .dh-text {
  flex: 1 1 auto;
  min-width: 0;
}

.domain-header .dh-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.domain-header .dh-tag {
  color: var(--ice);
  font-size: 16px;
  font-weight: 400;
  margin-top: 3px;
  line-height: 1.4;
  opacity: 0.85;
}


/* ===== Equipment-info panel additions ===== */
.panel-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0 14px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(120, 150, 171, 0.10);
  border: 1px solid rgba(120, 150, 171, 0.25);
  transition: all 0.15s ease;
}

.panel-back:hover {
  background: rgba(120, 150, 171, 0.22);
  color: var(--white);
}

.equip {
  transition: filter 0.18s ease;
}

.equip:hover {
  filter: drop-shadow(0 0 6px var(--gold)) brightness(1.2);
}

.control-room-priority {
  pointer-events: none;
}

.floor-hotspot {
  cursor: pointer;
  pointer-events: all;
}

.floor-hotspot rect,
.floor-hotspot circle {
  fill: rgba(255, 255, 255, 0.001);
  stroke: none;
}

.floor-hotspot:hover rect,
.floor-hotspot:hover circle {
  filter: drop-shadow(0 0 5px rgba(240, 194, 123, 0.65));
}


/* ===== Methodology pills + info card ===== */
.meth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meth-pill {
  background: rgba(241, 241, 242, 0.10);
  border: 1px solid rgba(241, 241, 242, 0.40);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.3px;
}

.meth-pill:hover {
  background: rgba(241, 241, 242, 0.22);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.meth-principles {
  margin: 0;
  padding-left: 18px;
  color: var(--ice);
  font-size: 14.5px;
  line-height: 1.6;
}

.meth-principles li {
  margin-bottom: 9px;
}


/* ===== Threat-info markers (clickable threat scenes) ===== */
.threat-info-marker {
  transition: filter 0.18s ease;
}

.threat-info-marker:hover {
  filter: drop-shadow(0 0 8px #dc6e5e) brightness(1.15);
}


/* ===== Car-park: small default, larger on hover ===== */
.car-park-anchor {
  transition: filter 0.18s ease;
}

.car-park-anchor:hover {
  filter: drop-shadow(0 0 6px var(--gold));
}

.car-park-hit {
  pointer-events: all;
}

.cp-small {
  opacity: 1;
  transition: filter 0.2s ease;
}

.cp-large {
  display: none;
}

.car-park-anchor:hover .cp-small {
  filter: brightness(1.08);
}


/* ===== Room hit-areas — hover highlight ===== */
.room rect {
  transition: filter 0.18s ease, fill 0.18s ease;
}

.room:hover rect {
  filter: brightness(1.45) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

/* ===== Map icons (SVG <image> assets) ===== */
.map-icon {
  filter: drop-shadow(1.5px 1.5px 1px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease, filter 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.equip:hover .map-icon {
  transform: scale(1.22);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.55)) brightness(1.15);
}

.threat-info-marker:hover .map-icon {
  transform: scale(1.15);
  filter: drop-shadow(2px 2px 1.5px rgba(0, 0, 0, 0.5)) brightness(1.10);
}

/* ===== Diagram-first hero ===== */
.hero {
  min-height: calc(100vh - 71px);
  padding: 30px 32px 38px;
  background:
    radial-gradient(ellipse 900px 520px at 28% 8%, rgba(120, 150, 171, 0.14), transparent 72%),
    radial-gradient(ellipse 800px 480px at 82% 38%, rgba(241, 241, 242, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0C2230 56%, var(--bg-2) 100%);
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: end;
  text-align: left;
  margin-bottom: 18px;
}

.hero-copy {
  max-width: 770px;
}

.hero-eyebrow {
  margin-bottom: 10px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.8px;
}

.hero-sub {
  max-width: 700px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.hero-ctas {
  justify-content: flex-start;
  margin-top: 18px;
}

.hero-assurance {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 63, 88, 0.72), rgba(8, 25, 35, 0.74));
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.assurance-label {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assurance-item {
  min-height: 74px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.assurance-item strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  margin-bottom: 7px;
  letter-spacing: -0.2px;
}

.assurance-item span {
  display: block;
  color: var(--ice);
  font-size: 16px;
  line-height: 1.35;
}

.hero-control-row {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 6px 0 14px;
}

.interaction-primer {
  color: var(--ice);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}

.interaction-primer b {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}

.interaction-primer span {
  display: block;
}

.interaction-steps {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.interaction-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(241, 241, 242, 0.12);
  background: rgba(16, 42, 58, 0.42);
  color: rgba(241, 241, 242, 0.80);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.domain-tabs {
  justify-content: flex-end;
  margin: 0;
}

.stage {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 20px;
  align-items: start;
  margin-top: 0;
}

.diagram-card,
.panel {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.09);
}

.diagram-card {
  padding: 12px;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(120, 150, 171, 0.10), transparent 58%),
    linear-gradient(180deg, rgba(24, 63, 88, 0.92) 0%, rgba(8, 25, 35, 0.96) 100%);
}

.diagram {
  max-width: 760px;
}

.domain-header {
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: 8px;
}

.legend {
  margin-top: 8px;
}

.footnote {
  margin: 9px 0 0;
}

.panel {
  min-height: 0;
  overflow: auto;
  padding: 24px 26px;
}

@media (max-width: 1100px) {

  .hero-head,
  .hero-control-row,
  .stage {
    grid-template-columns: 1fr;
  }

  .domain-tabs {
    justify-content: flex-start;
  }

  .hero-assurance {
    max-width: none;
  }

  .stage {
    gap: 16px;
  }

  .panel {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 18px 16px 28px;
  }

  .hero-head {
    gap: 16px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    text-align: center;
  }

  .hero-assurance {
    padding: 12px;
  }

  .assurance-label {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .assurance-item {
    min-height: 0;
    padding: 9px 10px;
  }

  .assurance-item strong {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .assurance-item span {
    font-size: 16px;
    line-height: 1.25;
  }

  .hero-control-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .interaction-primer {
    font-size: 12.5px;
  }

  .tab {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 8px 10px;
  }

  .diagram-card {
    padding: 8px;
  }

  .domain-header {
    padding: 9px 10px;
    gap: 10px;
  }

  .domain-header .dh-name {
    font-size: 14px;
    letter-spacing: 1.8px;
  }

  .domain-header .dh-tag {
    font-size: 10.5px;
  }

  .diagram {
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  svg.diagram-svg {
    min-width: 520px;
  }

  .legend {
    justify-content: flex-start;
    font-size: 10px;
  }

  .footnote {
    text-align: left;
    font-size: 14px;
  }

  .panel {
    padding: 20px 18px;
    max-height: none;
  }

  .panel h2 {
    font-size: 25px;
  }

  .panel-blurb {
    font-size: 14px;
  }

  .panel-section h3 {
    letter-spacing: 1.8px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 34px;
  }

  .assurance-grid {
    grid-template-columns: 1fr;
  }

  .tab {
    flex-basis: 100%;
  }

  svg.diagram-svg {
    min-width: 500px;
  }
}

/* ===== Diagram polish pass: calmer technical illustration ===== */
.zone-shape.active .zone-ring,
.zone-shape.active>rect:first-child {
  animation: none;
}

svg.diagram-svg {
  background:
    radial-gradient(circle at 50% 44%, rgba(120, 150, 171, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(6, 24, 47, 0.20), rgba(8, 25, 35, 0.34));
}

.zone-shape.active {
  filter: drop-shadow(0 0 10px rgba(120, 150, 171, 0.45));
}

.diagram.dim .zone-shape:not(.active) {
  opacity: 0.62;
}

.zone-tag-rect {
  fill: rgba(16, 42, 58, 0.66);
  stroke: rgba(241, 241, 242, 0.42);
}

.zone-tag-text {
  fill: rgba(245, 250, 255, 0.92);
  font-size: 7.6px;
  letter-spacing: 1.8px;
}

.zone-tag-sub {
  fill: rgba(212, 226, 247, 0.72);
  font-size: 6.2px;
}

.map-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.equip {
  opacity: 0.94;
}

.equip:hover {
  filter: drop-shadow(0 0 4px rgba(241, 241, 242, 0.65)) brightness(1.12);
}

.domain-header {
  background: linear-gradient(90deg, rgba(120, 150, 171, 0.16), rgba(120, 150, 171, 0.055));
  border-left-width: 3px;
}

.domain-header .dh-icon {
  font-size: 20px;
}

.domain-header .dh-name {
  font-size: 14px;
  letter-spacing: 2.3px;
}

.domain-header .dh-tag {
  font-size: 11.5px;
  opacity: 0.78;
}

.legend {
  gap: 12px;
  font-size: 14px;
  opacity: 0.82;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.footnote {
  color: rgba(212, 226, 247, 0.70);
  font-size: 11.5px;
}

.domain-badge {
  cursor: pointer;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.domain-badge .badge-halo {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.domain-badge:hover,
.domain-badge.active {
  filter: drop-shadow(0 0 8px rgba(241, 241, 242, 0.38));
}

.domain-badge.active .badge-halo {
  opacity: 0.22;
}

.domain-badge .badge-num {
  fill: rgba(245, 250, 255, 0.84);
  font-size: 4.8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-anchor: middle;
  pointer-events: none;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.domain-badge.active .badge-num {
  fill: #102A3A;
}

.domain-badge .badge-glyph {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.panel {
  background: linear-gradient(180deg, rgba(24, 63, 88, 0.96), rgba(16, 42, 58, 0.98));
  scrollbar-color: rgba(241, 241, 242, 0.5) rgba(255, 255, 255, 0.05);
  scroll-behavior: auto;
  overflow-anchor: none;
}

.panel::-webkit-scrollbar {
  width: 6px;
}

.panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(241, 241, 242, 0.24);
  border-radius: 999px;
  border: 1px solid rgba(16, 42, 58, 0.98);
}

.panel::-webkit-scrollbar-thumb:hover {
  background: rgba(241, 241, 242, 0.52);
}

.panel-eyebrow {
  margin-bottom: 12px;
  color: rgba(241, 241, 242, 0.92);
  letter-spacing: 2.8px;
}

.panel h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.panel-tag {
  color: #F1F1F2;
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.panel-blurb {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245, 250, 255, 0.88);
}

.panel-section {
  margin-bottom: 18px;
  padding-top: 4px;
}

.panel-section h3 {
  color: rgba(241, 241, 242, 0.95);
  font-size: 16px;
  letter-spacing: 2.3px;
}

.standards span,
.phase-pill,
.threat-pill {
  border-radius: 5px;
}

.example {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.service-list a {
  border-radius: 8px;
  padding: 12px 15px;
}

/* ===== Below-fold conversion polish ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  opacity: 1;
  text-align: left;
}

.audience-grid span {
  position: relative;
  display: block;
  min-height: 132px;
  padding: 22px 18px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 63, 88, 0.76), rgba(8, 25, 35, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.audience-grid span::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2), rgba(241, 241, 242, 0.8));
  opacity: 0.82;
}

.audience-grid span::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(241, 241, 242, 0.16);
  background: radial-gradient(circle at 35% 35%, rgba(241, 241, 242, 0.22), transparent 62%);
}

.audience-grid b {
  display: block;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 9px;
  padding-right: 42px;
}

.audience-grid small {
  display: block;
  color: rgba(212, 226, 247, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.stat .lbl b {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.stat {
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: '';
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 241, 242, 0.28), transparent);
}

.stat .num {
  font-size: 34px;
  color: rgba(241, 241, 242, 0.92);
}

.article .img {
  position: relative;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 18px;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  font-size: 0;
}

.article .img::before {
  content: '';
  position: absolute;
  inset: 32px 34px 46px;
  opacity: 0.9;
  z-index: 1;
}

.article .img::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  right: -32px;
  top: -30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(22deg);
  z-index: 1;
}

.insight-threat {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 76% 34%, rgba(220, 110, 94, 0.30), transparent 28%),
    linear-gradient(135deg, #296187, #183F58);
}

.insight-threat::before {
  inset: auto;
  left: 50%;
  top: 48%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(220, 110, 94, 0.62);
  border-radius: 50%;
  box-shadow:
    0 0 0 20px rgba(220, 110, 94, 0.08),
    0 0 34px rgba(220, 110, 94, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(241, 241, 242, 0.55) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(241, 241, 242, 0.55) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.insight-continuity {
  background:
    linear-gradient(135deg, transparent 46%, rgba(241, 241, 242, 0.18) 46% 48%, transparent 48%),
    radial-gradient(circle at 28% 36%, rgba(95, 211, 168, 0.22), transparent 30%),
    linear-gradient(135deg, #296187, #183F58);
}

.insight-continuity::before {
  inset: auto 56px 82px;
  height: 40px;
  border-top: 2px solid rgba(241, 241, 242, 0.52);
  background:
    radial-gradient(circle at 0 0, rgba(95, 211, 168, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 0, rgba(241, 241, 242, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 100% 0, rgba(241, 241, 242, 0.95) 0 5px, transparent 6px);
}

.insight-compliance {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 78% 24%, rgba(241, 241, 242, 0.24), transparent 28%),
    linear-gradient(135deg, #296187, #183F58);
}

.insight-compliance::before {
  inset: 34px 76px 46px;
  border: 1px solid rgba(241, 241, 242, 0.46);
  border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(90deg, rgba(241, 241, 242, 0.48) 0 22%, transparent 22%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 13px);
}

.ctaband {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(241, 241, 242, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(24, 63, 88, 0.98), rgba(8, 25, 35, 0.98));
  border-top: 1px solid rgba(241, 241, 242, 0.18);
  border-bottom: 1px solid rgba(241, 241, 242, 0.12);
  position: relative;
  overflow: hidden;
}

.ctaband::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(241, 241, 242, 0.08) 12% 12.1%, transparent 12.1%),
    linear-gradient(90deg, transparent 0 88%, rgba(241, 241, 242, 0.08) 88% 88.1%, transparent 88.1%);
  pointer-events: none;
}

.ctaband h2,
.ctaband p,
.ctaband a {
  position: relative;
  z-index: 1;
}

.ctaband h2 {
  color: var(--white);
}

.ctaband p {
  color: rgba(212, 226, 247, 0.86);
}

.ctaband .btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.ctaband .btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (max-width: 980px) {
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-services {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seo-service-block.locations .seo-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .audience-grid span {
    min-height: 0;
  }

  .stats,
  .articles {
    padding: 52px 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .seo-service-grid,
  .seo-service-block.locations .seo-service-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Fifth pass: diagram-first homepage tightening ===== */
.hero {
  padding-top: 38px;
}

.hero-head {
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 30px;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(38px, 4.45vw, 58px);
  line-height: 1.01;
}

.hero-sub {
  max-width: 670px;
}

.hero-assurance {
  align-self: end;
  padding: 15px;
}

.assurance-grid {
  gap: 8px;
}

.assurance-item {
  min-height: 66px;
  padding: 12px 13px;
}

.assurance-item strong {
  font-size: 18px;
  margin-bottom: 6px;
}

.assurance-item span {
  font-size: 16px;
}

.hero-control-row {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(16, 42, 58, 0.42);
  margin-bottom: 12px;
}

.interaction-primer {
  font-size: 16px;
  color: rgba(212, 226, 247, 0.84);
}

.tab {
  padding: 8px 14px;
  min-height: 38px;
}

.diagram-card {
  padding: 10px;
}

.diagram {
  max-width: 735px;
}

.domain-header {
  min-height: 52px;
  align-items: center;
}

.domain-header .dh-tag {
  max-width: 620px;
}

.panel {
  padding: 22px 24px;
  max-height: none;
}

.panel h2 {
  font-size: 28px;
}

.panel-section {
  margin-bottom: 16px;
}

.standards,
.phases,
.meth-pills,
.threat-pills {
  gap: 7px;
}

.footnote {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 28px;
  }

  .hero-head {
    gap: 18px;
  }

  .hero-control-row {
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-control-row {
    border-radius: 8px;
    grid-template-columns: none;
    background: rgba(16, 42, 58, 0.34);
  }

  .domain-tabs {
    gap: 7px;
  }

  .tab {
    min-height: 40px;
    font-size: 14px;
  }

  .diagram {
    border-radius: 8px;
  }

  .panel h2 {
    font-size: 24px;
  }
  body .hero-control-row {
    grid-template-columns: none;
  }

}

/* ===== Eighth pass: product-ready badge and mobile polish ===== */
.hero-control-row {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
}

.interaction-primer {
  max-width: 360px;
}

.tab {
  border-color: rgba(241, 241, 242, 0.20);
  background: rgba(16, 42, 58, 0.54);
}

.tab:hover:not(.disabled) {
  background: rgba(41, 97, 135, 0.72);
}

.tab.active {
  box-shadow: 0 6px 18px rgba(120, 150, 171, 0.22);
}

.diagram-card {
  box-shadow: 0 26px 54px -34px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.domain-header {
  border-left-width: 4px;
}

.panel-section:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
}

@media (max-width: 1100px) {
  .interaction-primer {
    max-width: none;
  }

  .domain-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero-control-row {
    padding: 10px;
  }

  .interaction-primer {
    max-width: 100%;
  }

  .domain-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tab {
    width: 100%;
    min-width: 0;
  }

  .tab span:not(.lens-mark):not(.badge) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .domain-header .dh-dot {
    display: none;
  }
}

/* ===== Eighteenth pass: quieter proof rail and advisory panel chrome ===== */
.hero-assurance {
  position: relative;
  overflow: hidden;
  border-color: rgba(241, 241, 242, 0.13);
  background:
    linear-gradient(90deg, rgba(120, 150, 171, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(13, 34, 64, 0.68), rgba(5, 18, 35, 0.72));
}

.hero-assurance::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2), rgba(241, 241, 242, 0.72));
  opacity: 0.9;
}

.assurance-label {
  letter-spacing: 3px;
  color: rgba(241, 241, 242, 0.94);
}

.assurance-item {
  min-height: 60px;
  border-color: rgba(241, 241, 242, 0.10);
  background: rgba(255, 255, 255, 0.026);
}

.assurance-item strong {
  font-size: 17px;
}

.assurance-item span {
  color: rgba(212, 226, 247, 0.86);
}

.hero-control-row {
  background:
    linear-gradient(90deg, rgba(120, 150, 171, 0.055), transparent 54%),
    rgba(16, 42, 58, 0.40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.interaction-primer {
  color: rgba(212, 226, 247, 0.78);
}

.interaction-primer b {
  color: rgba(255, 255, 255, 0.94);
}

.panel {
  position: relative;
  background:
    radial-gradient(ellipse 440px 220px at 16% 0%, rgba(120, 150, 171, 0.09), transparent 68%),
    linear-gradient(180deg, rgba(24, 63, 88, 0.95), rgba(16, 42, 58, 0.985));
  scrollbar-color: rgba(241, 241, 242, 0.28) transparent;
  box-shadow:
    0 26px 54px -34px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel::-webkit-scrollbar {
  width: 4px;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(241, 241, 242, 0.18);
  border: 0;
}

.panel:hover::-webkit-scrollbar-thumb {
  background: rgba(241, 241, 242, 0.38);
}

.panel-eyebrow {
  color: rgba(241, 241, 242, 0.86);
}

.panel h2 {
  letter-spacing: -0.45px;
}

.panel-tag {
  max-width: 44rem;
}

.panel-section h3 {
  color: rgba(241, 241, 242, 0.88);
}

@media (max-width: 720px) {
  .hero-assurance::before {
    width: 2px;
  }

  .assurance-item strong {
    font-size: 14.5px;
  }
}

/* ===== Production responsive finish ===== */
.nav-cta,
.btn-primary,
.btn-ghost {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-inner {
    gap: 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-head {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
    gap: 20px;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(38px, 5.2vw, 44px);
    max-width: 560px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-ctas {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    padding-inline: 20px;
  }

  .hero-assurance {
    padding: 13px;
  }

  .assurance-item {
    padding: 10px 11px;
  }

  .assurance-item strong {
    font-size: 16px;
  }

  .assurance-item span {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .hero-head {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .zone-shape.active .zone-ring,
  .zone-shape.active>rect:first-child,
  .hot-pulse {
    animation: none !important;
  }
}

/* ===== Mobile and footer production polish ===== */
.footer-inner>div {
  min-width: 0;
}

.footer-inner {
  grid-template-columns: 1.35fr 0.95fr 1fr 1.55fr 0.82fr;
  align-items: start;
}

.footer-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.footer-meta-list li {
  margin-bottom: 5px;
}

.footer-credentials {
  padding-top: 12px;
  border-top: 1px solid rgba(241, 241, 242, 0.08);
}

.footer-credentials .credential-badge {
  width: 104px;
  height: 62px;
  padding: 7px 9px;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 30px;
  }

  .footer-inner>div:nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 999px) {
  .interaction-steps span {
    font-size: 12px;
    padding: 4px 8px 6px;
  }
  .footer {
    padding: 40px 24px 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 30px;
  }

  .footer-inner>div:first-child,
  .footer-inner>div:nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer-tag {
    max-width: 520px;
  }

  .footer-meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
  }

  .footer-credentials {
    max-width: 250px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {

  section,
  footer {
    scroll-margin-top: 74px;
  }

  .nav-inner {
    padding: 10px 16px;
  }

  .logo img {
    max-width: 150px;
    height: auto !important;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 16px 16px 24px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.02;
  }

  .hero-trust-line {
    font-size: 14px;
    margin-top: 10px;
  }

  .interaction-steps span {
    flex: 1 1 auto;
    justify-content: center;
    white-space: normal;
  }

  .stage {
    gap: 14px;
  }

  svg.diagram-svg {
    min-width: 480px;
  }

  .stats,
  .articles {
    padding: 46px 16px;
  }

  .stats-head h2,
  .articles-head h2,
  .ctaband h2 {
    font-size: 30px;
    line-height: 1.14;
  }

  .seo-service-block {
    padding: 14px;
  }

  .seo-services h3 {
    font-size: 13px;
    letter-spacing: 1.4px;
  }

  .seo-service-grid a {
    min-height: 40px;
    padding: 10px 11px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-inner>div:nth-child(4) {
    grid-column: auto;
  }

  .footer-meta-list {
    grid-template-columns: 1fr;
  }

  .footer-credentials {
    max-width: none;
  }

  .footer-bottom {
    margin-top: 28px;
  }
}

@media (max-width: 430px) {
  .hero-assurance {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  svg.diagram-svg {
    min-width: 440px;
  }

  .panel h2 {
    font-size: 23px;
  }

  .footer {
    padding-inline: 18px;
  }
}