/* ------------------------------------------------------------------
   AGT Intelligence — agt-intelligence.com
   Dark institutional theme. Deep-space navy, periwinkle/violet accents,
   the earth-horizon motif from the brand deck.
------------------------------------------------------------------- */

:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --panel: #0b0f1b;
  --ink: #e9edf6;
  --ink-dim: #aab3c5;
  --muted: #7e8799;
  --line: rgba(202, 213, 238, 0.10);
  --line-soft: rgba(202, 213, 238, 0.06);
  --accent: #7d97ff;        /* periwinkle blue (logo) */
  --accent-2: #a78bfa;      /* deck violet */
  --horizon: #3aa6e8;       /* earth-rim cyan-blue */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grain so flat darks don't band */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection { background: rgba(125, 151, 255, 0.32); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.brand-word em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px; height: 34px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn .arrow { font-size: 0.85em; translate: 0 -1px; }

.btn-primary {
  background: linear-gradient(180deg, #5d7bf0, #4760d8);
  color: #f4f6ff;
  box-shadow: 0 4px 22px rgba(77, 104, 230, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(77, 104, 230, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-dim);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(202,213,238,0.28); color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 0.84rem; border-radius: 7px; }

/* ---------------- type ---------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 8vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 21em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

.eyebrow {
  color: var(--accent-2);
  margin-bottom: 26px;
}

.lede {
  color: var(--ink-dim);
  font-size: 1.06rem;
  max-width: 38em;
  margin-top: 18px;
}

.pull {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 2px solid var(--accent-2);
  padding-left: 20px;
  margin-top: 34px;
  max-width: 30em;
}
.pull.center {
  border: 0;
  padding: 0;
  margin: 64px auto 0;
  text-align: center;
  color: var(--ink-dim);
}
.pull.center .accent { color: var(--accent); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 178px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(96, 87, 178, 0.16), transparent 65%),
    radial-gradient(900px 480px at 12% 8%, rgba(58, 102, 187, 0.10), transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 3;
}

.coords {
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--ink-dim);
  font-size: 1.12rem;
  max-width: 36em;
  margin-top: 26px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* the earth-rim from the deck cover, in CSS */
.horizon {
  position: relative;
  height: 240px;
  margin-top: 84px;
  overflow: hidden;
  pointer-events: none;
}
.horizon-arc {
  position: absolute;
  left: 50%;
  top: 90px;
  width: 280vw;
  height: 280vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 18%, rgba(56, 130, 200, 0.10), rgba(7, 11, 22, 0.97) 22%, #04060c 40%);
  box-shadow:
    0 -1px 0 rgba(140, 200, 255, 0.55),
    0 -10px 38px rgba(58, 166, 232, 0.42),
    0 -36px 110px rgba(46, 134, 222, 0.25),
    0 -90px 220px rgba(38, 104, 196, 0.14);
}
.horizon-glow {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 72vw;
  min-width: 540px;
  height: 130px;
  background: radial-gradient(closest-side, rgba(90, 178, 255, 0.20), transparent 70%);
  filter: blur(8px);
}

/* ---------------- sections ---------------- */

.section { padding: 116px 0; border-top: 1px solid var(--line-soft); }
.section-tint { background: var(--bg-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: start;
  margin-top: 8px;
}

/* problem */
.pain-list { list-style: none; }
.pain-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-soft);
}
.pain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
  opacity: 0.85;
}

/* ---------------- platform ---------------- */

.platform-head { max-width: 46em; }

.shot-frame {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(2, 4, 10, 0.65), 0 0 0 1px rgba(125, 151, 255, 0.04);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.015);
}
.shot-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(202, 213, 238, 0.16);
}
.shot-bar .mono {
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 36px;
  margin-top: 64px;
}
.feature svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  gap: 0 8px;
  align-items: stretch;
  margin-top: 64px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.004));
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: var(--accent-2);
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; }

.step-link { position: relative; }
.step-link::before {
  content: "";
  position: absolute;
  top: 50%; left: 6px; right: 6px;
  border-top: 1px dashed rgba(202, 213, 238, 0.25);
}

/* ---------------- gallery ---------------- */

.section-wide { padding-bottom: 96px; }

.field-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-nav { display: flex; gap: 10px; }
.gnav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.gnav:hover { border-color: rgba(202,213,238,0.3); color: var(--ink); }

.gallery {
  display: flex;
  gap: 26px;
  margin-top: 48px;
  padding: 4px max(28px, calc((100vw - var(--max)) / 2 + 28px)) 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(202,213,238,0.18) transparent;
}

.g-card {
  flex: 0 0 min(620px, 84vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.g-card img { aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top; }
.g-card figcaption {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line-soft);
}
.g-loc { color: var(--accent); display: block; margin-bottom: 8px; font-size: 0.72rem; }
.g-card figcaption p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.55; }

/* ---------------- stack ---------------- */

.stack { display: grid; gap: 12px; padding-top: 14px; }
.layer {
  border-radius: 10px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  position: relative;
}
.layer-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; display: block; }
.layer-desc { color: var(--muted); font-size: 0.68rem; text-transform: none; letter-spacing: 0.05em; margin-top: 4px; display: block; }

.layer-4 { border-color: rgba(125, 151, 255, 0.45); box-shadow: 0 0 34px rgba(125, 151, 255, 0.10); }
.layer-4 .layer-name { color: var(--accent); }
.layer-3 { border-color: rgba(167, 139, 250, 0.32); }
.layer-2 { border-color: rgba(125, 151, 255, 0.18); }

.check-list { list-style: none; margin-top: 28px; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--ink-dim);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------------- solutions ---------------- */

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.sol {
  background: var(--bg-2);
  padding: 34px 30px 38px;
  transition: background 0.25s ease;
}
.sol:hover { background: #0c101d; }
.sol-num { color: var(--accent-2); display: block; margin-bottom: 30px; font-size: 0.72rem; }
.sol h3 { margin-bottom: 10px; }
.sol p { color: var(--muted); font-size: 0.93rem; }

/* ---------------- trust ---------------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 56px;
}
.trust-item { border-top: 1px solid var(--line); padding-top: 20px; }
.trust-item h3 { color: var(--accent-2); font-size: 0.76rem; margin-bottom: 12px; font-weight: 500; }
.trust-item p { color: var(--ink-dim); font-size: 0.93rem; }

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}
.p-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 132px;
  padding: 22px 16px 18px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.p-logo:hover { border-color: rgba(202, 213, 238, 0.26); transform: translateY(-2px); }
.p-logo img {
  max-height: 54px;
  max-width: 138px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.92);
  opacity: 0.92;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.p-logo:hover img { filter: none; opacity: 1; }
.p-logo figcaption {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-align: center;
}

/* ---------------- team ---------------- */

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.person {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.003));
}
.person img {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(202, 213, 238, 0.22);
  box-shadow: 0 0 0 5px rgba(125, 151, 255, 0.06);
  flex-shrink: 0;
}
.person h3 { font-size: 1.18rem; }
.person .role { color: var(--accent); margin: 6px 0 14px; font-size: 0.7rem; }
.person p:last-child { color: var(--muted); font-size: 0.92rem; }

.advisors {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------------- contact ---------------- */

.contact {
  position: relative;
  text-align: center;
  padding-bottom: 0;
  overflow: hidden;
}
.contact h2 { margin: 0 auto; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.contact .eyebrow { text-align: center; }
.contact-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}
.contact address {
  font-style: normal;
  color: var(--muted);
  margin-top: 52px;
  font-size: 0.94rem;
}
.offices { color: var(--ink-dim); margin-top: 18px; }

.horizon-foot { margin-top: 64px; height: 190px; }
.horizon-foot .horizon-arc { top: 70px; }

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #04060b;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--muted); font-size: 0.86rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--ink); }
.legal { color: var(--muted); font-size: 0.68rem; text-transform: none; letter-spacing: 0.05em; }

/* ---------------- reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(7px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
    filter 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .star, .ping::before, .caret, .shot-scan, .step-link::after, .layer-4 { animation: none !important; }
  .shot-scan { display: none; }
  .ticker-track, .t-dot, .v-icon * { animation: none !important; }
  .globe-wrap { display: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: 69px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 24px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero { padding-top: 142px; }
  .section { padding: 84px 0; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-link { display: none; }
  .team { grid-template-columns: 1fr; }
  .field-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 br { display: none; }
  .sol-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .person { flex-direction: column; }
  .g-card { flex-basis: 88vw; }
}

/* ------------------------------------------------------------------
   Motion & instrumentation layer
------------------------------------------------------------------- */

/* scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--horizon), var(--accent) 55%, var(--accent-2));
  box-shadow: 0 0 12px rgba(125, 151, 255, 0.55);
  pointer-events: none;
}

/* hero starfield (positions set by JS) */
.stars {
  position: absolute;
  inset: 0 0 180px 0;
  z-index: 1;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(214, 226, 252, 0.85);
  opacity: 0;
  animation: twinkle var(--tw, 5s) ease-in-out var(--td, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: var(--to, 0.7); transform: scale(1); }
}

/* faint graticule over the hero */
.hero-grid {
  position: absolute;
  inset: 0 0 120px 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 151, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 151, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(820px 460px at 24% 36%, rgba(0,0,0,0.9), transparent 72%);
  mask-image: radial-gradient(820px 460px at 24% 36%, rgba(0,0,0,0.9), transparent 72%);
}

/* radar ping next to the coordinates */
.ping {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 13px;
  border-radius: 50%;
  background: var(--horizon);
  vertical-align: 1px;
}
.ping::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(90, 178, 255, 0.8);
  animation: ping 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(3.4); opacity: 0; }
}

/* typed query in the browser chrome bar */
.shot-frame { position: relative; }
.shot-bar .shot-url { color: var(--muted); }
.shot-bar .shot-query {
  margin-left: 18px;
  color: var(--ink-dim);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.caret {
  display: inline-block;
  width: 7px; height: 12px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* satellite scan beam across the screenshot */
.shot-scan {
  position: absolute;
  top: 41px; bottom: 0;
  width: 130px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(90, 178, 255, 0.07) 45%, rgba(125, 151, 255, 0.16) 50%, rgba(90, 178, 255, 0.07) 55%, transparent);
  border-right: 1px solid rgba(140, 200, 255, 0.18);
  animation: scan 7.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  opacity: 0;
}
@keyframes scan {
  0% { left: -10%; opacity: 0; }
  8% { opacity: 1; }
  46% { opacity: 1; }
  54% { left: 102%; opacity: 0; }
  100% { left: 102%; opacity: 0; }
}

/* cursor spotlight on cards */
.sol, .person, .p-logo, .step, .feature {
  position: relative;
}
.sol::after, .person::after, .p-logo::after, .step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 151, 255, 0.09), transparent 65%);
}
.sol:hover::after, .person:hover::after, .p-logo:hover::after, .step:hover::after { opacity: 1; }

/* data pulse travelling between the three steps */
.step-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(125, 151, 255, 0.9);
  animation: flow 3.2s ease-in-out infinite;
}
@keyframes flow {
  0% { left: 4%; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  96%, 100% { left: 88%; opacity: 0; }
}

/* intelligence layer breathing glow */
.layer-4 { animation: layerGlow 4.5s ease-in-out infinite; }
@keyframes layerGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(125, 151, 255, 0.08); border-color: rgba(125, 151, 255, 0.34); }
  50% { box-shadow: 0 0 44px rgba(125, 151, 255, 0.18); border-color: rgba(125, 151, 255, 0.58); }
}

/* active section in the nav */
.site-nav a.active { color: var(--ink); }
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s ease;
}
.site-nav a.active::after, .site-nav a:hover::after { right: 0; }

@media (max-width: 820px) {
  .site-nav a::after { display: none; }
  .shot-bar .shot-query { display: none; }
}

/* ------------------------------------------------------------------
   Vertical intelligence layer — globe, telemetry, vertical icons
------------------------------------------------------------------- */

/* anchor offset under fixed header */
section[id] { scroll-margin-top: 84px; }

/* WebGL earth (three-globe) — sits behind hero content, above bg */
.globe-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 560px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.2s;
}
.hero.globe-on .globe-wrap { opacity: 1; }
.hero.globe-on .horizon-arc,
.hero.globe-on .horizon-glow { opacity: 0; transition: opacity 0.8s ease; }

/* telemetry ticker — aggregate signal feed across verticals */
.ticker {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding: 13px 28px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse { 50% { opacity: 0.35; } }
.t-env    { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.t-water  { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); animation-delay: 0.3s; }
.t-crime  { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.7); animation-delay: 0.6s; }
.t-health { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.7); animation-delay: 0.9s; }
.t-infra  { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); animation-delay: 1.2s; }
.t-retail { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.7); animation-delay: 1.5s; }
.t-gov    { background: #7d97ff; box-shadow: 0 0 8px rgba(125, 151, 255, 0.7); animation-delay: 1.8s; }
.t-re     { background: #2dd4bf; box-shadow: 0 0 8px rgba(45, 212, 191, 0.7); animation-delay: 2.1s; }

/* vertical icons — one living glyph per domain */
.sol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sol-head .sol-num { margin-bottom: 0; }
.v-icon {
  width: 30px; height: 30px;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.vi-faint { stroke: rgba(202, 213, 238, 0.32); }

/* crime — radar sweep */
.v-crime .vc-sweep {
  stroke: #f87171;
  transform-origin: 16px 16px;
  animation: vcSweep 3.4s linear infinite;
}
@keyframes vcSweep { to { transform: rotate(360deg); } }
.vc-blip { fill: #f87171; stroke: none; opacity: 0; animation: vcBlip 3.4s ease-out infinite 0.55s; }
.vc-blip-2 { animation-delay: 2.2s; }
@keyframes vcBlip { 0% { opacity: 0.95; } 38% { opacity: 0; } 100% { opacity: 0; } }

/* health — ecg trace */
.v-health .vh-ecg {
  stroke: #fb7185;
  stroke-dasharray: 64 30;
  animation: vhEcg 2.6s linear infinite;
}
@keyframes vhEcg { to { stroke-dashoffset: -94; } }

/* governance — tallying bars */
.v-gov .vg-bar {
  fill: rgba(125, 151, 255, 0.75);
  stroke: none;
  transform-origin: center 27px;
  animation: vgBar 3s ease-in-out infinite;
}
.vg-b2 { animation-delay: 0.35s; fill: rgba(167, 139, 250, 0.8); }
.vg-b3 { animation-delay: 0.7s; fill: rgba(56, 189, 248, 0.7); }
@keyframes vgBar { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* environment — air waves + particulates */
.v-env .ve-wave {
  stroke: #4ade80;
  stroke-dasharray: 6 5;
  animation: veWave 3.6s linear infinite;
  opacity: 0.85;
}
.ve-wave-2 { opacity: 0.45; animation-duration: 5s; }
@keyframes veWave { to { stroke-dashoffset: -44; } }
.ve-p { fill: rgba(74, 222, 128, 0.8); stroke: none; animation: vePart 4.2s ease-in-out infinite; }
.ve-p2 { animation-delay: 1.3s; }
.ve-p3 { animation-delay: 2.5s; }
@keyframes vePart {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-5px); opacity: 0.95; }
}

/* critical infra — tower broadcasting */
.v-infra .vif-tower { stroke: rgba(251, 191, 36, 0.85); }
.v-infra .vif-dot { fill: #fbbf24; stroke: none; animation: dotPulse 2s ease-in-out infinite; }
.v-infra .vif-ring {
  stroke: #fbbf24;
  opacity: 0;
  transform-origin: 16px 12px;
  animation: vifRing 2.8s ease-out infinite;
}
.vif-r2 { animation-delay: 0.5s; }
@keyframes vifRing {
  0% { opacity: 0; transform: scale(0.55); }
  35% { opacity: 0.9; }
  85%, 100% { opacity: 0; transform: scale(1.12); }
}

/* real estate — pin drop & echo */
.v-re .vre-pin { stroke: #2dd4bf; animation: vrePin 3.2s ease-in-out infinite; }
.v-re .vre-hole { stroke: #2dd4bf; animation: vrePin 3.2s ease-in-out infinite; }
@keyframes vrePin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
.v-re .vre-pulse {
  stroke: rgba(45, 212, 191, 0.7);
  transform-origin: 16px 26px;
  animation: vrePulse 3.2s ease-out infinite;
}
@keyframes vrePulse {
  0% { opacity: 0.9; transform: scale(0.5); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

/* wide ECG glyph keeps its native aspect */
.v-icon.v-health { width: 38px; height: 30px; }

@media (max-width: 820px) {
  .globe-wrap { display: none; }
  .ticker-track { animation-duration: 30s; }
}
