/* ===================================================================
   Elitez Integrated Command Center — Interpol concept design system
   "Global Operations" register: institutional, multilateral, precise.
   Light theme · standard-width Barlow · steel-blue + notice red.
   Layered on Tailwind CSS (CDN). All charts/sims hook these tokens.
   =================================================================== */

:root {
  --paper:#eef1f5;
  --card:#ffffff;
  --ink:#14233b;
  --ink-2:#0f1b2d;
  --blue:#00337a;
  --blue-d:#002356;
  --blue-l:#1e5fa8;
  --steel:#5a6b85;
  --red:#d8232a;
  --line:#d4dae3;
  --green:#15875a;
  --amber:#d98a2b;
  --teal:#0e8a9e;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

h1, h2, h3, .disp {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---- Reference / eyebrow label ------------------------------------ */
.ref {
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 11px;
}

/* ---- Top utility bar ---------------------------------------------- */
.util-bar {
  background: var(--ink-2);
  color: #9fb0c8;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  position: relative;
}
.util-bar::after {
  content: '';
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.5;
}
.u-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--teal);
  animation: glow-pulse 1.9s ease-in-out infinite;
}

/* ---- Navigation --------------------------------------------------- */
.gov-nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.gov-nav.scrolled { box-shadow: 0 10px 30px -20px rgba(20, 35, 59, 0.5); }

.nav-link {
  position: relative;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  font-size: 12px;
  color: var(--steel);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -22px;
  height: 3px; width: 0;
  background: var(--blue);
  transition: width 0.26s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--ink); }

/* ---- Seal logo ---------------------------------------------------- */
.seal {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.seal::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}
.seal span {
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
}
.seal.on-dark { border-color: #e7cd76; }
.seal.on-dark::before { border-color: #e7cd76; }
.seal.on-dark span { color: #e7cd76; }

/* ---- Buttons ------------------------------------------------------ */
.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-p:hover { background: var(--blue-d); transform: translateY(-2px); }

.btn-s {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-s:hover { background: var(--blue); color: #fff; }

.btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.5); }

.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Globe ring backdrop ------------------------------------------ */
.globe-bg {
  background-image:
    radial-gradient(circle at 88% 14%, transparent 119px, rgba(0,51,122,.07) 120px, transparent 121px),
    radial-gradient(circle at 88% 14%, transparent 179px, rgba(0,51,122,.06) 180px, transparent 181px),
    radial-gradient(circle at 88% 14%, transparent 249px, rgba(0,51,122,.05) 250px, transparent 251px),
    radial-gradient(circle at 88% 14%, transparent 329px, rgba(0,51,122,.04) 330px, transparent 331px);
}

/* ---- Barcode accent ----------------------------------------------- */
.barcode {
  height: 26px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 11px);
  opacity: 0.6;
}

/* ---- Notice tab --------------------------------------------------- */
.notice { border-left: 4px solid var(--blue); padding-left: 10px; }
.notice-red { border-left: 4px solid var(--red); padding-left: 10px; }

/* ---- Image placeholder -------------------------------------------- */
.img-ph {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.img-ph::before {
  content: '';
  position: absolute; inset: 9px;
  border: 1px solid var(--line);
}
.img-ph span {
  position: relative; z-index: 2;
  font-family: 'Barlow', sans-serif;
  font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; font-weight: 600;
  color: var(--blue);
  background: var(--card);
  padding: 7px 13px;
  border: 1px solid var(--blue);
}
.img-ph.on-dark { background: #15233a; border-color: #2c3e5c; }
.img-ph.on-dark::before { border-color: #2c3e5c; }
.img-ph.on-dark span { background: #15233a; }

/* ---- Page heroes -------------------------------------------------- */
.hero-light { background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%); }
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 380px at 84% 10%, rgba(14, 138, 158, 0.20), transparent 70%),
    linear-gradient(165deg, var(--ink-2) 0%, var(--blue-d) 120%);
}
.page-hero::before {
  content: ''; position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 168, 216, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 168, 216, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 520px at 80% 4%, #000 0%, transparent 80%);
          mask-image: radial-gradient(900px 520px at 80% 4%, #000 0%, transparent 80%);
  animation: grid-drift 26s linear infinite;
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 170px;
  z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(14, 138, 158, 0.15), transparent);
  animation: scan-y 7.5s linear infinite;
}
.page-hero > * { position: relative; z-index: 1; }

/* ---- Section helpers ---------------------------------------------- */
.section-pad { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.divider { height: 3px; width: 54px; background: var(--blue); }
.stat-num { font-weight: 700; line-height: 1; }

/* ---- Drawer ------------------------------------------------------- */
.drawer {
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---- Scroll reveal ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* ---- Cards -------------------------------------------------------- */
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.svc:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 24px 44px -30px rgba(20, 35, 59, 0.45);
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 24px 44px -30px rgba(20, 35, 59, 0.45);
}
.service-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 51, 122, 0.08);
  color: var(--blue);
}

.audience-card {
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 50px -32px rgba(20, 35, 59, 0.5);
}

.bu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bu, var(--blue));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -30px rgba(20, 35, 59, 0.45);
}
.bu-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bu, var(--blue));
}

.flow-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
}
.flow-step .flow-num { font-weight: 700; color: var(--blue); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
}

/* ---- Command Center video wall (dark device on a light page) ------ */
.video-wall {
  background: #0d1626;
  border: 1px solid #2c3e5c;
  box-shadow: 0 40px 80px -44px rgba(20, 35, 59, 0.7);
}
.feed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1a2942 0%, #0e1726 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  aspect-ratio: 16 / 10;
}
.feed::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30,95,168,.2) 50%, transparent 100%);
  height: 38%;
  animation: scan 5.2s linear infinite;
}
.feed::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
@keyframes scan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(320%); }
}
.feed-id {
  position: absolute; top: 7px; left: 8px; z-index: 3;
  font: 600 0.58rem 'Barlow', sans-serif;
  letter-spacing: 0.08em;
  color: #8fa6c4;
}
.feed-rec {
  position: absolute; top: 7px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  font: 600 0.55rem 'Barlow', sans-serif;
  color: #ff6b6b;
}
.rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5252;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.alert-badge {
  position: absolute;
  left: 8px; bottom: 8px; right: 8px; z-index: 4;
  font: 600 0.62rem 'Barlow', sans-serif;
  padding: 5px 8px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(190, 28, 28, 0.94);
  color: #fff;
  animation: badge-pulse 1.8s ease-in-out infinite;
}
.alert-badge.ok   { background: rgba(20, 120, 80, 0.94); }
.alert-badge.warn { background: rgba(180, 110, 18, 0.96); }
@keyframes badge-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.66; } }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.feed-blip {
  position: absolute;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(30, 95, 168, 0.95);
  animation: blip 2.6s ease-out infinite;
  z-index: 3;
}
@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(30,95,168,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(30,95,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,95,168,0); }
}
.status-banner {
  background: #0a1322;
  border: 1px solid #2c3e5c;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ---- Data tables -------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); font-weight: 600;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
}
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem; color: #36465c;
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.16s ease; }
.data-table tbody tr:hover { background: #f3f6fa; }

/* ---- Cost comparison bars ----------------------------------------- */
.cost-bar {
  height: 46px;
  display: flex; align-items: center;
  padding: 0 16px;
  color: #fff; font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
  transform-origin: left;
  animation: grow-bar 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Subsidy progress bars ---------------------------------------- */
.prog-track {
  height: 12px;
  background: #dde2ea;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- ROI calculator ----------------------------------------------- */
.roi-toggle {
  display: inline-flex;
  background: #dfe4ec;
  padding: 4px;
}
.roi-toggle button {
  border: none; background: transparent;
  font: 600 0.78rem 'Barlow', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 22px;
  cursor: pointer;
  color: var(--steel);
  transition: background 0.2s ease, color 0.2s ease;
}
.roi-toggle button.active { background: var(--blue); color: #fff; }
.roi-mode { display: none; }
.roi-mode.active { display: block; }
input[type="range"].roi-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: #d3d9e2;
  outline: none;
}
input[type="range"].roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 3px 9px -2px rgba(20, 35, 59, 0.6);
  cursor: pointer;
}
input[type="range"].roi-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; cursor: pointer;
}
.roi-output { background: var(--card); border: 1px solid var(--line); }
.roi-output .roi-val { font-weight: 700; line-height: 1; }

/* --- Vertical-keyed accent system on #roiCalc --- */
#roiCalc {
  --accent: var(--blue);
  --accent-d: var(--blue-d);
  --accent-soft: rgba(0, 51, 122, 0.10);
  --accent-line: rgba(0, 51, 122, 0.22);
}
#roiCalc[data-v="merch"] {
  --accent: var(--amber);
  --accent-d: #b96f1c;
  --accent-soft: rgba(217, 138, 43, 0.12);
  --accent-line: rgba(217, 138, 43, 0.28);
}
#roiCalc[data-v="serviceops"] {
  --accent: var(--teal);
  --accent-d: #0b6e7e;
  --accent-soft: rgba(14, 138, 158, 0.12);
  --accent-line: rgba(14, 138, 158, 0.28);
}
#roiCalc[data-v="project"] {
  --accent: var(--green);
  --accent-d: #106a45;
  --accent-soft: rgba(21, 135, 90, 0.12);
  --accent-line: rgba(21, 135, 90, 0.28);
}

/* Input panel ambient frame */
.roi-panel { position: relative; }
.roi-panel::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.roi-panel::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

/* Step sections */
.roi-step { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.roi-step:first-of-type { margin-top: 28px; }
.roi-step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.roi-step-n {
  font: 700 0.72rem 'Spline Sans Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  align-self: flex-start;
  transition: color 0.25s ease, background 0.25s ease;
}
.roi-step-label {
  flex: 1;
  font: 600 0.78rem 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.roi-step-val {
  font: 700 0.92rem 'Barlow', sans-serif;
  color: var(--accent);
  transition: color 0.25s ease;
}
.roi-step-hint {
  font-size: 11px;
  color: var(--steel);
  line-height: 1.5;
  margin-top: 10px;
}

/* Re-skin segs + chips to track accent */
.roi-segs button.active { background: var(--accent); color: #fff; }
.roi-chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Slider thumb follows accent */
input[type="range"].roi-slider::-webkit-slider-thumb {
  background: var(--accent);
  box-shadow: 0 3px 9px -2px var(--accent-line);
}
input[type="range"].roi-slider::-moz-range-thumb { background: var(--accent); }

/* Summary strip */
.roi-summary {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  font: 600 0.7rem 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.roi-summary-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: 0 0 8px;
}
.roi-summary-text { line-height: 1.4; }

/* Hero output — HUD frame + accent stripe */
.roi-hero {
  position: relative;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 65%);
  border-top: 3px solid var(--accent);
}
.roi-hero::before, .roi-hero::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  z-index: 2; pointer-events: none;
  transition: border-color 0.25s ease;
}
.roi-hero::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.roi-hero::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.roi-hero-val {
  font: 700 3rem/1 'Barlow', sans-serif;
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

/* KPI hierarchy */
.roi-kpi { position: relative; }
.roi-kpi::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px; pointer-events: none;
}
.roi-kpi-primary::before { background: var(--ink); }
.roi-kpi-accent::before { background: var(--accent); transition: background 0.25s ease; }
.roi-kpi-accent-val { color: var(--accent) !important; transition: color 0.25s ease; }

/* Segmented selectors (vertical + hours) */
.roi-segs {
  display: grid;
  gap: 4px;
  background: #dfe4ec;
  padding: 4px;
}
.roi-segs-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .roi-segs-4 { grid-template-columns: repeat(4, 1fr); } }
.roi-segs-5 { grid-template-columns: repeat(5, 1fr); }
.roi-segs button {
  border: none; background: transparent;
  font: 600 0.74rem 'Barlow', sans-serif;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 8px;
  cursor: pointer;
  color: var(--steel);
  transition: background 0.18s ease, color 0.18s ease;
  text-align: center;
  white-space: nowrap;
}
.roi-segs button.active { background: var(--blue); color: #fff; }
.roi-segs button:hover:not(.active) { background: #cdd5e0; color: var(--ink); }

/* Service-mix chips */
.roi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.roi-chips button {
  border: 1px solid var(--line);
  background: #fff;
  font: 600 0.73rem 'Barlow', sans-serif;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--steel);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.roi-chips button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.roi-chips button:hover:not(.active) {
  border-color: #8a97ab;
  color: var(--ink);
}

/* ---- Contact band ------------------------------------------------- */
.contact-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 16% 8%, rgba(14, 138, 158, 0.24), transparent 70%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-d) 100%);
}
.contact-band::before {
  content: ''; position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: grid-drift 34s linear infinite;
}
.contact-band > * { position: relative; z-index: 1; }

/* ---- Footer links ------------------------------------------------- */
.footer-link { color: var(--steel); transition: color 0.2s ease; }
.footer-link:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed::before, .alert-badge, .rec-dot, .feed-blip, .live-dot, .cost-bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   FUTURISTIC INSTRUMENTATION LAYER
   HUD framing, scan sweeps, animated grids — over the Interpol base.
   =================================================================== */

/* ---- HUD corner frame (images, panels) ---------------------------- */
.hud-frame { position: relative; }
.hud-frame::before,
.hud-frame::after {
  content: ''; position: absolute; width: 26px; height: 26px;
  z-index: 3; pointer-events: none;
}
.hud-frame::before { top: -2px; left: -2px;
  border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.hud-frame::after { bottom: -2px; right: -2px;
  border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }

/* ---- Scan line over a framed image -------------------------------- */
.scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(14, 138, 158, 0.85), transparent);
  box-shadow: 0 0 14px rgba(14, 138, 158, 0.7);
  animation: scan-img 6s ease-in-out infinite;
}

/* ---- Telemetry text ----------------------------------------------- */
.tele { font-family: 'Spline Sans Mono', ui-monospace, monospace; letter-spacing: 0.04em; }

/* ---- Card hover — HUD corner draws in ----------------------------- */
.svc, .service-card, .audience-card, .bu-card, .flow-step, .roi-output { position: relative; }
.svc::after, .service-card::after, .audience-card::after, .flow-step::after {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 0; height: 0; z-index: 2; pointer-events: none;
  border-top: 2px solid var(--teal); border-left: 2px solid var(--teal);
  opacity: 0;
  transition: width 0.28s ease, height 0.28s ease, opacity 0.28s ease;
}
.svc:hover::after, .service-card:hover::after,
.audience-card:hover::after, .flow-step:hover::after {
  width: 22px; height: 22px; opacity: 1;
}

/* ---- Primary button — sheen sweep on hover ------------------------ */
.btn-p { position: relative; overflow: hidden; }
.btn-p::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-p:hover::after { animation: sheen 0.7s ease; }

/* ---- Keyframes ----------------------------------------------------- */
@keyframes grid-drift { to { background-position: 46px 46px, 46px 46px; } }
@keyframes scan-y { 0% { transform: translateY(-170px); } 100% { transform: translateY(720px); } }
@keyframes scan-img {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { top: calc(100% - 2px); opacity: 1; }
  90% { opacity: 1; }
}
@keyframes glow-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sheen { to { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after, .contact-band::before,
  .scanline, .u-dot, .btn-p::after { animation: none; }
  .scanline { display: none; }
}

/* ===================================================================
   DIAGRAMS & PROCESS FLOWS
   =================================================================== */

/* ---- Vertical connected timeline ---------------------------------- */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 23px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--teal), var(--notice));
}
.tl-item { position: relative; padding-left: 70px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--node, var(--blue));
  border: none;
  color: #fff;
  font: 700 0.95rem 'Spline Sans Mono', monospace;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 5px var(--node, var(--blue)),
    0 10px 22px -8px var(--node, var(--blue));
  z-index: 2;
}
.tl-card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--node, var(--blue));
  padding: 16px 20px;
}
/* HUD corner brackets on the right of each step card */
.tl-card::before, .tl-card::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  pointer-events: none;
}
.tl-card::before {
  top: -1px; right: -1px;
  border-top: 2px solid var(--node, var(--teal));
  border-right: 2px solid var(--node, var(--teal));
}
.tl-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--node, var(--teal));
  border-right: 2px solid var(--node, var(--teal));
}
/* vertical connector — tinted by the step's node colour */
.tl-item::before {
  content: "";
  position: absolute;
  left: 23px; top: 56px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--node, var(--blue)) 0%, rgba(212,218,227,0.7) 78%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}
.tl-item:last-child::before { display: none; }
/* step thumbnail — flex-sized wrapper hosts the chaser + img */
.tl-thumb-wrap { flex-shrink: 0; width: 92px; height: 92px; line-height: 0; }
.tl-thumb {
  width: 100%; height: 100%; object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
/* tactical step-kind label */
.tl-kind {
  display: inline-block;
  font: 700 10px/1 'Spline Sans Mono', monospace;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--node, var(--blue));
  padding: 4px 8px;
  border: 1px solid currentColor;
  margin-bottom: 8px;
}

/* ===== Stage grid — six-stage operating loop, 3×2 process diagram ===== */
.stage-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--node, var(--blue));
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.stage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -28px rgba(20, 35, 59, 0.4);
}
.stage-card::after {
  content: ""; position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--node, var(--teal));
  border-right: 2px solid var(--node, var(--teal));
  pointer-events: none;
}
.stage-num {
  position: absolute;
  top: 12px; left: 12px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--node, var(--blue));
  color: #fff;
  font: 700 0.95rem/1 'Spline Sans Mono', monospace;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 8px 16px -4px rgba(20, 35, 59, 0.5);
  z-index: 3;
}

/* ===== Neon chaser border (feature photos)
   Colour: var(--chase) on the wrapper -> var(--node) inherited from parent
           card -> #2ad4ff blue-turquoise default.
   Geometry: ~190deg of visible arc (peak at 175deg with a long fading
   tail behind, sharp leading edge ahead) — reads as a chasing comet.
   ============================================================ */
.neon-chase { position: relative; isolation: isolate; }
.neon-chase::before {
  content: "";
  position: absolute; inset: 0;
  background: conic-gradient(from var(--neon-a, 0deg),
    transparent 0deg,
    transparent 30deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 10%, transparent)  65deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 28%, transparent) 100deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 50%, transparent) 130deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 78%, transparent) 160deg,
    var(--chase, var(--node, #2ad4ff)) 175deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 50%, transparent) 188deg,
    color-mix(in srgb, var(--chase, var(--node, #2ad4ff)) 12%, transparent) 208deg,
    transparent 222deg,
    transparent 360deg);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 4.5px;
  pointer-events: none;
  animation: neon-chase 4s linear infinite;
  z-index: 2;
}
@property --neon-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes neon-chase { to { --neon-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .neon-chase::before { animation: none; } }

/* ---- Horizontal process flow -------------------------------------- */
.proc { display: flex; flex-wrap: nowrap; align-items: stretch; }
.proc-step { flex: 1 1 0; min-width: 0; }
.proc-link {
  flex: 0 0 38px; align-self: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.proc-link svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .proc { flex-direction: column; }
  .proc-step { flex: 1 1 auto; }
  .proc-link { flex-basis: 30px; }
  .proc-link svg { transform: rotate(90deg); }
}

/* ---- Architecture schematic --------------------------------------- */
.arch { display: flex; flex-direction: column; align-items: center; }
.arch-label {
  font: 600 0.66rem 'Spline Sans Mono', monospace;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 12px;
}
.arch-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.arch-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line);
  padding: 9px 14px;
  font: 600 0.78rem 'Barlow', sans-serif; color: var(--ink);
}
.arch-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.arch-conn {
  width: 2px; height: 30px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}
.arch-node {
  background: linear-gradient(150deg, var(--ink-2), var(--blue-d));
  color: #fff; text-align: center;
  padding: 22px 34px; position: relative;
  border: 1px solid var(--blue);
}
.arch-node::before, .arch-node::after {
  content: ''; position: absolute; width: 16px; height: 16px;
}
.arch-node::before { top: -1px; left: -1px;
  border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.arch-node::after { bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.arch-layer {
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  padding: 16px 20px; text-align: center; flex: 1 1 160px;
}

/* ---- Admin / intelligence desk ------------------------------------ */
.util-bar.restricted { background: #1a1416; }
.classified {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--notice); color: var(--notice);
  font: 600 10px 'Spline Sans Mono', ui-monospace, monospace;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px;
}
.intel-card {
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.intel-card:hover {
  transform: translateY(-5px); border-color: var(--blue);
  box-shadow: 0 24px 44px -30px rgba(20, 35, 59, 0.45);
}
.bar-track { height: 10px; background: #dde2ea; }
.bar-fill { height: 100%; }
.score-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---- Division panel (capabilities page) --------------------------- */
.div-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.8rem 'Barlow', sans-serif;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--steel);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.div-tab:hover { color: var(--ink); border-color: var(--div); }
.div-tab.active { color: #fff; background: var(--div); border-color: var(--div); }
.div-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--div); flex-shrink: 0; }
.div-tab.active .div-dot { background: #fff; }

/* ============================================================
   SERVICE DETAIL DRAWER — slide-in bento card from the right
   ============================================================ */
.svc-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 27, 45, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 290;
}
.svc-backdrop.open { opacity: 1; pointer-events: auto; }

.svc-drawer {
  position: fixed; top: 0; right: 0;
  height: 100vh;
  width: 100%; max-width: 720px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px -22px rgba(15, 27, 45, 0.55);
  overflow: hidden;
}
.svc-drawer.open { transform: translateX(0); }

.svc-drawer-head {
  background: var(--ink);
  color: #fff;
  padding: 22px 56px 24px 28px;
  position: relative;
  flex-shrink: 0;
  border-bottom: 3px solid var(--svc-accent, var(--blue));
}
.svc-drawer-head .svc-eyebrow {
  font: 700 11px/1 'Spline Sans Mono', monospace;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--svc-accent, #9fc0ee);
  display: block; margin-bottom: 10px;
}
.svc-drawer-head h2 {
  font-size: 1.7rem; font-weight: 700; line-height: 1.12;
  margin: 0;
}
.svc-drawer-head .svc-summary {
  margin-top: 10px; color: #bcd0e8;
  font-size: 0.92rem; line-height: 1.55;
}
.svc-drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.svc-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.svc-drawer-close svg { width: 16px; height: 16px; }

.svc-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 22px 24px 90px;
}

.svc-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.svc-bento .tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
}
.svc-bento .tile::after {
  content: ""; position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border-bottom: 2px solid var(--svc-accent, var(--teal));
  border-right: 2px solid var(--svc-accent, var(--teal));
  pointer-events: none;
}
.svc-bento .tile.full { grid-column: 1 / -1; }
.svc-bento .tile-label {
  font: 700 10px/1 'Spline Sans Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--svc-accent, var(--blue));
  display: block; margin-bottom: 9px;
}
.svc-bento .tile h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  margin: 0 0 6px;
}
.svc-bento .tile p {
  font-size: 0.84rem; line-height: 1.55; color: var(--steel);
  margin: 0;
}
.svc-bento .tile ul {
  margin: 0; padding: 0; list-style: none;
}
.svc-bento .tile li {
  font-size: 0.84rem; line-height: 1.5; color: var(--steel);
  padding-left: 13px; position: relative; margin-bottom: 5px;
}
.svc-bento .tile li:last-child { margin-bottom: 0; }
.svc-bento .tile li::before {
  content: "›"; position: absolute; left: 0; top: -1px;
  color: var(--svc-accent, var(--blue)); font-weight: 700;
}
.svc-bento .tile strong { color: var(--ink); }

.svc-drawer-cta {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--svc-accent, var(--blue));
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  justify-content: space-between;
}
.svc-drawer-cta p { margin: 0; color: var(--steel); font-size: 0.85rem; line-height: 1.5; flex: 1 1 220px; }
.svc-drawer-cta .btn-p { padding: 10px 18px; font-size: 0.82rem; }

body.svc-drawer-open { overflow: hidden; }

.service-card { cursor: pointer; }
.service-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .svc-drawer { max-width: 100%; }
  .svc-drawer-head { padding: 18px 52px 20px 20px; }
  .svc-drawer-body { padding: 18px 16px 80px; }
  .svc-bento { grid-template-columns: 1fr; }
  .svc-bento .tile.full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-drawer, .svc-backdrop { transition: none; }
}

/* ===================================================================
   COMMAND CENTER FEATURE OVERLAY (desktop-only futuristic lightbox)
   =================================================================== */

/* Trigger affordance on the hero photo */
.cc-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  position: relative;
}
.cc-trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.cc-trigger-hint {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.66rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #d6f1f6;
  background: rgba(15, 27, 45, 0.82);
  border: 1px solid rgba(14, 138, 158, 0.55);
  padding: 6px 10px;
  pointer-events: none;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cc-trigger:hover .cc-trigger-hint,
.cc-trigger:focus-visible .cc-trigger-hint {
  opacity: 1; transform: translateY(0);
}
.cc-trigger:hover img { filter: brightness(1.04) saturate(1.08); }

/* Mobile (< 1024px): no enlargement, no hint, no cursor */
@media (max-width: 1023px) {
  .cc-trigger { cursor: default; }
  .cc-trigger-hint { display: none; }
  .cc-overlay { display: none !important; }
}

/* Overlay shell */
.cc-overlay {
  position: fixed; inset: 0;
  z-index: 400;
  display: flex; flex-direction: column;
  padding: 28px 36px 22px;
  background:
    radial-gradient(900px 540px at 18% 12%, rgba(14, 138, 158, 0.22), transparent 70%),
    radial-gradient(700px 460px at 88% 88%, rgba(0, 51, 122, 0.32), transparent 65%),
    linear-gradient(160deg, #050b16 0%, #0a1426 50%, #050b16 100%);
  color: #e6eef8;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.32s ease;
}
.cc-overlay[hidden] { display: none; }
.cc-overlay.is-open { opacity: 1; }
body.cc-locked { overflow: hidden; }

/* Background grid + sweep */
.cc-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 138, 158, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 138, 158, 0.10) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px;
  background-position: -1px -1px;
  pointer-events: none;
  opacity: 0.55;
  animation: cc-grid-drift 30s linear infinite;
}
.cc-sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 138, 158, 0.55), transparent);
  box-shadow: 0 0 18px rgba(14, 138, 158, 0.45);
  animation: cc-sweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cc-grid-drift { to { background-position: 51px 51px, 51px 51px; } }
@keyframes cc-sweep {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { top: calc(100% - 2px); opacity: 1; }
  90% { opacity: 1; }
}

/* Header */
.cc-head {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}
.cc-eyebrow {
  font: 600 0.7rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: #7fd0db;
}
.cc-title {
  font: 700 1.55rem 'Barlow', sans-serif;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.cc-close {
  appearance: none;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14, 138, 158, 0.08);
  border: 1px solid rgba(14, 138, 158, 0.55);
  color: #d6f1f6;
  font: 600 0.7rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cc-close:hover { background: rgba(14, 138, 158, 0.22); border-color: var(--teal); color: #fff; }

/* Stage layout: callouts | image | callouts */
.cc-stage {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(230px, 300px);
  align-items: center;
  gap: 36px;
  margin-top: 24px;
}
.cc-stage > .cc-callouts, .cc-stage > .cc-frame { position: relative; z-index: 3; }
.cc-callouts {
  display: flex; flex-direction: column;
  gap: 22px;
  align-self: stretch;
  justify-content: center;
}

/* Frame around image */
.cc-frame {
  position: relative;
  align-self: center; justify-self: center;
  max-height: 100%;
  display: flex;
}
.cc-frame img {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 70vh;
  border: 1px solid rgba(14, 138, 158, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 51, 122, 0.45),
    0 36px 84px -28px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(14, 138, 158, 0.18);
  filter: saturate(1.05);
  transform: scale(0.98);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.cc-overlay.is-open .cc-frame img { opacity: 1; transform: scale(1); }
.cc-corner {
  position: absolute; width: 26px; height: 26px;
  pointer-events: none; z-index: 4;
}
.cc-corner-tl { top: -3px; left: -3px; border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.cc-corner-tr { top: -3px; right: -3px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.cc-corner-bl { bottom: -3px; left: -3px; border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.cc-corner-br { bottom: -3px; right: -3px; border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.cc-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 138, 158, 0.85), transparent);
  box-shadow: 0 0 16px rgba(14, 138, 158, 0.7);
  animation: cc-scan-img 5.5s ease-in-out infinite;
  pointer-events: none; z-index: 3;
}
@keyframes cc-scan-img {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { top: calc(100% - 2px); opacity: 1; }
  90% { opacity: 1; }
}

/* Live stamp lower-right */
.cc-stamp {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5, 11, 22, 0.85);
  border: 1px solid rgba(14, 138, 158, 0.55);
  padding: 5px 10px;
  font: 600 0.62rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #d6f1f6;
  z-index: 4;
}
.cc-stamp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d399;
  animation: cc-pulse 1.6s ease-in-out infinite;
}
@keyframes cc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Focal pins on image */
.cc-pin {
  position: absolute;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}
.cc-pin::before, .cc-pin::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
}
.cc-pin::before {
  background: var(--teal);
  width: 9px; height: 9px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(14, 138, 158, 0.9);
}
.cc-pin::after {
  border: 1.5px solid rgba(14, 138, 158, 0.85);
  animation: cc-ring 2.2s ease-out infinite;
}
@keyframes cc-ring {
  0%   { transform: scale(0.6); opacity: 0.95; }
  70%  { transform: scale(1.6); opacity: 0;    }
  100% { transform: scale(1.6); opacity: 0;    }
}

/* SVG leader lines — overlaid on the whole stage */
.cc-leaders {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.cc-leaders line {
  stroke: rgba(86, 200, 220, 0.95);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  filter: drop-shadow(0 0 8px rgba(14, 138, 158, 0.7));
  opacity: 0; animation: cc-line-in 0.45s ease forwards 0.35s;
}
.cc-leader-dot {
  fill: rgba(86, 200, 220, 1);
  filter: drop-shadow(0 0 6px rgba(14, 138, 158, 0.9));
  opacity: 0; animation: cc-line-in 0.45s ease forwards 0.4s;
}
@keyframes cc-line-in { to { opacity: 1; } }

/* Callout cards */
.cc-callout {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.88), rgba(5, 11, 22, 0.94));
  border: 1px solid rgba(14, 138, 158, 0.32);
  backdrop-filter: blur(8px);
  padding: 18px 20px 18px 22px;
  color: #e6eef8;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cc-overlay.is-open .cc-callout { opacity: 1; transform: translateY(0); }
.cc-overlay.is-open .cc-callout:nth-child(1) { transition-delay: 0.30s; }
.cc-overlay.is-open .cc-callout:nth-child(2) { transition-delay: 0.42s; }
.cc-callout::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}
.cc-callout::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}
.cc-callout .cc-n {
  font: 700 0.78rem 'Spline Sans Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  color: #7fd0db;
  background: rgba(14, 138, 158, 0.14);
  padding: 3px 8px;
  display: inline-block;
}
.cc-callout h3 {
  margin-top: 10px;
  font: 700 1.05rem 'Barlow', sans-serif;
  color: #fff;
  letter-spacing: -0.005em;
}
.cc-callout p {
  margin-top: 8px;
  font: 400 0.83rem/1.55 'Barlow', sans-serif;
  color: #b3c4d8;
}

/* Footer */
.cc-foot {
  position: relative; z-index: 2;
  margin-top: 18px;
  text-align: center;
  font: 500 0.7rem 'Barlow', sans-serif;
  color: #7d93b1;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cc-foot-mono {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  color: #7fd0db;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cc-kbd {
  display: inline-block;
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  color: #d6f1f6;
  background: rgba(14, 138, 158, 0.12);
  border: 1px solid rgba(14, 138, 158, 0.5);
  padding: 1px 7px;
  margin: 0 4px;
  vertical-align: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .cc-grid, .cc-sweep, .cc-scan, .cc-pin::after, .cc-stamp-dot, .cc-leaders line { animation: none; }
  .cc-frame img, .cc-callout { transition: none; }
}

/* ===================================================================
   TRUST + PARTNERS BAND
   =================================================================== */
.trust-band { position: relative; }
.trust-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 51, 122, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 122, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.trust-band > .max-w-7xl { position: relative; z-index: 1; }

.trust-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}
@media (min-width: 768px) {
  .trust-head { grid-template-columns: 1fr auto; }
}
.trust-foundation {
  padding: 14px 0 14px 28px;
  border-left: 1px solid var(--line);
  text-align: right;
  min-width: 200px;
}
.trust-foundation-year {
  font: 700 3.4rem/1 'Barlow', sans-serif;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}

.trust-cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
}
@media (min-width: 768px) { .trust-cred-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-cred-grid { grid-template-columns: repeat(5, 1fr); } }

.trust-cred {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.trust-cred::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 1.5px solid var(--teal);
  border-left: 1.5px solid var(--teal);
  transition: width 0.22s ease, height 0.22s ease;
}
.trust-cred:hover {
  border-color: rgba(14, 138, 158, 0.4);
  background: #fff;
  transform: translateY(-1px);
}
.trust-cred:hover::before { width: 18px; height: 18px; }
.trust-cred .seal { width: 34px; height: 34px; }
.trust-cred .seal span { font-size: 11px; letter-spacing: -0.02em; }
.trust-cred-name {
  font: 700 0.86rem/1.15 'Barlow', sans-serif;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.trust-cred-body {
  font: 500 0.68rem/1.35 'Barlow', sans-serif;
  color: var(--steel);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Partners band */
.trust-partner-head {
  display: flex; align-items: center; gap: 14px;
}
.trust-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.trust-partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .trust-partner-grid { grid-template-columns: repeat(5, 1fr); } }

.trust-partner {
  position: relative;
  text-align: center;
  padding: 22px 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.trust-partner::before, .trust-partner::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease;
}
.trust-partner::before {
  top: -1px; left: -1px;
  border-top: 1.5px solid var(--teal);
  border-left: 1.5px solid var(--teal);
}
.trust-partner::after {
  bottom: -1px; right: -1px;
  border-bottom: 1.5px solid var(--teal);
  border-right: 1.5px solid var(--teal);
}
.trust-partner:hover {
  border-color: rgba(0, 51, 122, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(20, 35, 59, 0.4);
}
.trust-partner:hover::before, .trust-partner:hover::after {
  width: 18px; height: 18px;
}
.trust-partner-abbr {
  font: 700 1.5rem 'Barlow', sans-serif;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-partner-name {
  font: 500 0.66rem/1.3 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-top: 8px;
}

/* ===================================================================
   CASE STUDY CARDS
   =================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  --case-accent: var(--blue);
}
.case-card:hover {
  border-color: var(--case-accent);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -28px rgba(20, 35, 59, 0.45);
}
.case-stripe {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--case-accent);
}
.case-card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1.5px solid var(--case-accent);
  border-right: 1.5px solid var(--case-accent);
  opacity: 0; transition: opacity 0.25s ease;
}
.case-card:hover::after { opacity: 1; }

/* vertical accents */
.case-v-security   { --case-accent: var(--blue);  }
.case-v-merch      { --case-accent: var(--amber); }
.case-v-serviceops { --case-accent: var(--teal);  }
.case-v-project    { --case-accent: var(--green); }

.case-ref {
  font: 700 0.7rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--case-accent);
}
.case-vertical {
  margin-top: 6px;
  font: 600 0.66rem 'Barlow', sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--steel);
}
.case-title {
  margin-top: 12px;
  font: 700 1.08rem/1.3 'Barlow', sans-serif;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.case-profile {
  margin-top: 10px;
  font: 400 0.82rem/1.55 'Barlow', sans-serif;
  color: var(--steel);
}
.case-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.case-section-label {
  font: 700 0.62rem 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--case-accent);
}
.case-section-body {
  margin-top: 6px;
  font: 400 0.8rem/1.55 'Barlow', sans-serif;
  color: var(--steel);
}
.case-outcome {
  margin-top: 18px;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.015), transparent);
  border-top: 2px solid var(--case-accent);
  margin-left: -26px; margin-right: -26px; margin-bottom: -28px;
  padding-left: 26px; padding-right: 26px; padding-bottom: 28px;
}
.case-metric {
  margin-top: 6px;
  font: 700 1.7rem 'Barlow', sans-serif;
  color: var(--case-accent);
  letter-spacing: -0.015em;
}
