/* ============================================================
   GARUDA INTELLIGENCE & SECURITY SERVICES, Global Stylesheet
   Navy + Gold · Rich motion design
   ============================================================ */

:root {
  --navy-950: #060819;
  --navy-900: #0a0d24;
  --navy-800: #10143a;
  --navy-700: #181d4e;
  --navy-600: #252a63;
  --gold-500: #e8192c;
  --gold-400: #f04f5e;
  --gold-300: #f78d96;
  --ind-300: #9daef0;
  --gold-grad: linear-gradient(115deg, #c7d0ee 0%, #f5f7ff 45%, #dde3f8 70%, #aeb9e6 100%);
  --red-grad: linear-gradient(115deg, #b3121f 0%, #ff5060 50%, #e8192c 100%);
  --white: #ffffff;
  --ink-100: #f4f6fb;
  --ink-300: #c3cbdc;
  --ink-400: #96a2ba;
  --ink-500: #7b8aa7;   /* WCAG AA: >=4.56:1 on every dark surface in use */
  --card-border: rgba(125, 140, 220, 0.16);
  --card-bg: rgba(255, 255, 255, 0.03);
  --shadow-gold: 0 10px 40px -12px rgba(232, 25, 44, 0.30);
  --radius: 18px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ink-100);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(125, 140, 220, 0.35); color: #fff; }

img { max-width: 100%; display: block; }
/* <picture> only carries the WebP <source>; it must not become a layout box,
   so the <img> stays the direct flex/grid child it was before wrapping. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Utility text ---------- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold-grad);
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-lead { color: var(--ink-300); max-width: 640px; font-size: 1.06rem; }

section { padding: 104px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }

.btn-gold {
  background: var(--red-grad);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -12px rgba(232,25,44,0.45); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: var(--ind-300); color: #e6ebff; transform: translateY(-3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(6, 13, 26, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  padding: 12px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
}
.brand-mark {
  width: 52px; height: auto;
  flex: none;
  filter: drop-shadow(0 4px 14px rgba(125,140,220,0.35));
}
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.1; white-space: nowrap; }
.brand-name .bn-accent { color: var(--gold-400); font-weight: 800; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-300);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: inline-flex; }
.nav-cta .btn { padding: 11px 24px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold-400);
  margin: 5px auto;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(28, 55, 102, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(125, 140, 220, 0.08), transparent 60%),
    var(--navy-950);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(125,140,220,0.06);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 26px;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(232,25,44,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(232,25,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,25,44,0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero .line { display: block; overflow: hidden; }
.hero .hero-slide .line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 1;
}
.hero .hero-slide.active .line > span { animation: rise 0.9s var(--ease-out) forwards; }
.hero .hero-slide.active .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero .hero-slide.active .line:nth-child(3) > span { animation-delay: 0.3s; }
.hero .hero-slide.leaving .line > span { transform: translateY(0); animation: sink 0.5s var(--ease-out) forwards; }
.hero .hero-slide.leaving .line:nth-child(2) > span { animation-delay: 0.06s; }
.hero .hero-slide.leaving .line:nth-child(3) > span { animation-delay: 0.12s; }
@keyframes sink { to { transform: translateY(-115%); opacity: 0; } }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  color: var(--ink-300);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 38px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.5s forwards;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-trust {
  margin-top: 54px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.9s forwards;
}
.hero-trust .item { display: flex; align-items: center; gap: 10px; color: var(--ink-400); font-size: 0.88rem; }
.hero-trust svg { color: var(--ind-300); flex: none; }

/* Radar visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.radar {
  width: min(380px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, rgba(125,140,220,0.06) 0%, transparent 70%),
    conic-gradient(from 0deg, rgba(125,140,220,0.0) 0deg, rgba(125,140,220,0.0) 360deg);
  border: 1px solid rgba(125,140,220,0.25);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.radar::before, .radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125,140,220,0.18);
}
.radar::before { inset: 18%; }
.radar::after { inset: 36%; }
.radar .cross-h, .radar .cross-v { position: absolute; background: rgba(125,140,220,0.14); }
.radar .cross-h { left: 0; right: 0; top: 50%; height: 1px; }
.radar .cross-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(125,140,220,0.5), rgba(125,140,220,0.08) 22%, transparent 30%);
  animation: sweep 4.2s linear infinite;
  mix-blend-mode: screen;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .blip {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 12px rgba(125,140,220,0.9);
  animation: blip 4.2s infinite;
  opacity: 0;
}
.radar .blip.b1 { top: 26%; left: 62%; animation-delay: 0.4s; }
.radar .blip.b2 { top: 64%; left: 30%; animation-delay: 2s; }
.radar .blip.b3 { top: 44%; left: 76%; animation-delay: 3.1s; }
@keyframes blip {
  0%, 12% { opacity: 0; transform: scale(0.4); }
  16% { opacity: 1; transform: scale(1.25); }
  30% { opacity: 0.85; transform: scale(1); }
  60% { opacity: 0; }
  100% { opacity: 0; }
}
.radar .eagle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar .eagle svg, .radar .eagle img { width: 40%; height: auto; opacity: 0.95; filter: drop-shadow(0 6px 24px rgba(125,140,220,0.4)); }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-hint .wheel {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(125,140,220,0.5);
  border-radius: 12px;
  position: relative;
}
.scroll-hint .wheel::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--gold-400);
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 190px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(28, 55, 102, 0.5), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(125,140,220,0.07), transparent 60%),
    var(--navy-950);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.page-hero .crumb { color: var(--ink-400); font-size: 0.9rem; letter-spacing: 0.06em; }
.page-hero .crumb a:hover { color: var(--gold-300); }
.page-hero .crumb span { color: var(--gold-400); }
.page-hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(125,140,220,0.12);
  animation: spin-slow 40s linear infinite;
  background: conic-gradient(from 0deg, transparent 80%, rgba(125,140,220,0.06));
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Stats band ---------- */
.stats-band {
  background:
    linear-gradient(180deg, rgba(125,140,220,0.05), transparent),
    var(--navy-800);
  border-block: 1px solid var(--card-border);
  padding: 74px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat h3 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--ink-400); font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 56px;
}
.service-card {
  position: relative;
  padding: 40px 34px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(125,140,220,0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.service-card:hover { --lift: -10px; border-color: var(--card-border); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(125,140,220,0.16), rgba(125,140,220,0.04));
  border: 1px solid var(--card-border);
  color: var(--ind-300);
  margin-bottom: 24px;
  transition: transform 0.45s var(--ease-out);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); }
.service-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-300); font-size: 0.95rem; margin-bottom: 18px; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tags span {
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink-400);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
.card-link svg { transition: transform 0.35s var(--ease-out); }
.service-card:hover .card-link svg { transform: translateX(6px); }

/* ---------- Split / About section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-visual { position: relative; }
.frame-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/4.6;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(28,55,102,0.9), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(125,140,220,0.15), transparent 55%),
    var(--navy-800);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-box::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(125,140,220,0.2);
  border-radius: 12px;
}
.frame-box svg.big-eagle, .frame-box img.big-eagle { width: 55%; opacity: 0.95; filter: drop-shadow(0 20px 45px rgba(125,140,220,0.3)); }
.floating-chip {
  position: absolute;
  background: rgba(10, 20, 40, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  animation: float 6s ease-in-out infinite;
}
.floating-chip.c1 { top: 8%; right: -6%; animation-delay: 0.8s; }
.floating-chip.c2 { bottom: 10%; left: -8%; }
.floating-chip .num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #ffffff; }
.floating-chip .lbl { font-size: 0.74rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

.check-list { margin-top: 30px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-300); }
.check-list svg { flex: none; color: var(--ind-300); margin-top: 4px; }
.check-list strong { color: #fff; }

/* ---------- Process timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 60px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.process-step:hover { transform: translateY(-8px); border-color: var(--card-border); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(125,140,220,0.65), rgba(125,140,220,0.08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-400); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial-wrap { position: relative; max-width: 820px; margin: 56px auto 0; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.7s var(--ease-out); }
.testimonial {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 20px;
}
.testimonial .quote-mark { font-size: 4.6rem; font-family: Georgia, serif; color: var(--gold-500); line-height: 0.6; display: block; margin-bottom: 26px; }
.testimonial p.quote { font-size: 1.22rem; color: var(--ink-100); font-weight: 300; line-height: 1.8; margin-bottom: 26px; }
.testimonial .who { color: var(--gold-400); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.testimonial .who span { display: block; color: var(--ink-500); font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; margin-top: 4px; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(125,140,220,0.5);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testimonial-dots button.active { background: var(--ind-300); transform: scale(1.25); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 78px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(125,140,220,0.16), transparent 65%),
    var(--navy-800);
  border: 1px solid var(--card-border);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.cta-band p { color: var(--ink-300); max-width: 560px; margin: 0 auto 36px; }
.cta-band .orbit {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(125,140,220,0.2);
  animation: spin-slow 30s linear infinite;
}
.cta-band .orbit.o1 { top: -150px; left: -100px; }
.cta-band .orbit.o2 { bottom: -170px; right: -90px; animation-direction: reverse; }

/* ---------- Detail service sections (services page) ---------- */
.svc-detail {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 34px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail .service-icon { width: 76px; height: 76px; border-radius: 20px; }
.svc-detail h3 { font-size: 1.55rem; margin-bottom: 12px; }
.svc-detail > div > p { color: var(--ink-300); max-width: 720px; margin-bottom: 22px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-grid span {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-300);
  border: 1px solid rgba(125,140,220,0.22);
  background: rgba(125,140,220,0.05);
  transition: all 0.3s;
}
.pill-grid span:hover { background: rgba(125,140,220,0.14); color: var(--gold-300); transform: translateY(-2px); }

/* ---------- Values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 56px;
}
.value-card {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.value-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--card-border); background: rgba(125,140,220,0.05); }
.value-card .service-icon { margin-inline: auto; }
.value-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-400); font-size: 0.92rem; }

/* ---------- Courses (training page) ---------- */
.course-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.course-card:hover { transform: translateX(10px); border-color: var(--card-border); }
.course-card .service-icon { margin: 0; }
.course-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.course-card p { color: var(--ink-400); font-size: 0.92rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info-card {
  padding: 38px 34px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.contact-info-card:hover { transform: translateY(-6px); border-color: var(--card-border); }
.contact-info-card .service-icon { width: 52px; height: 52px; margin: 0; flex: none; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { color: var(--ink-300); font-size: 0.95rem; }
.contact-info-card a:hover { color: var(--gold-300); }

.contact-form {
  padding: 46px 42px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-form > p { color: var(--ink-400); margin-bottom: 30px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.84rem; color: var(--ink-300); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.form-group select option { background: var(--navy-800); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ind-300);
  box-shadow: 0 0 0 4px rgba(125,140,220,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.map-embed {
  margin-top: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  filter: grayscale(0.4) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 50px auto 0; }
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: var(--card-bg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.35s;
}
.faq-item.open { border-color: var(--card-border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}
.faq-q .chev {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(125,140,220,0.4);
  display: grid;
  place-items: center;
  color: var(--ind-300);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: rgba(125,140,220,0.12); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-a > div { padding: 0 28px 26px; color: var(--ink-300); font-size: 0.98rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Industries grid ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 50px;
}
.industry-tile {
  padding: 26px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.industry-tile:hover { transform: translateY(-6px); border-color: var(--card-border); background: rgba(125,140,220,0.05); }
.industry-tile svg { color: var(--ind-300); flex: none; }

/* ---------- Definition / answer box (GEO) ---------- */
.answer-box {
  border-left: 3px solid var(--gold-500);
  background: linear-gradient(90deg, rgba(125,140,220,0.08), transparent 70%);
  padding: 26px 30px;
  border-radius: 0 14px 14px 0;
  margin: 34px 0;
  color: var(--ink-100);
  font-size: 1.05rem;
}
.answer-box strong { color: var(--gold-300); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(125,140,220,0.15);
  padding: 22px 0;
  background: var(--navy-950);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--gold-500); font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(125,140,220,0.14);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-grid h3 { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 22px; }
.footer-grid p { color: var(--ink-400); font-size: 0.92rem; }
.footer-grid ul { display: grid; gap: 12px; }
.footer-grid ul a { color: var(--ink-400); font-size: 0.92rem; transition: color 0.3s, padding-left 0.3s; }
.footer-grid ul a:hover { color: var(--gold-300); padding-left: 6px; }
.footer-brand .brand { margin-bottom: 20px; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--ink-400);
  transition: all 0.35s var(--ease-out);
}
.social-row a:hover {
  border-color: var(--gold-500);
  color: #ffffff;
  background: var(--red-grad);
  transform: translateY(-4px);
}
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-400); font-size: 0.92rem; }
.footer-contact svg { color: var(--gold-400); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-500);
  font-size: 0.84rem;
}

/* ---------- Back to top ---------- */
#toTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red-grad);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 900;
  box-shadow: var(--shadow-gold);
}
#toTop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#toTop:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .radar { width: min(280px, 70vw); }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 1100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  section { padding: 76px 0; }
  .svc-detail { grid-template-columns: 1fr; gap: 20px; }
  .course-card { grid-template-columns: auto 1fr; }
  .course-card .btn { grid-column: 1 / -1; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 60px 30px; }
  .floating-chip.c1 { right: 2%; }
  .floating-chip.c2 { left: 2%; }
  /* Horizontal reveal offsets widen the document past the viewport on phones,
     which inflates .container (92%) and clips its right edge. Reveal vertically. */
  .reveal-left, .reveal-right { transform: translateY(34px); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   DAY / NIGHT THEMES
   Dark (night) = default. html[data-theme="light"] = day.
   ============================================================ */
body, .site-header, .service-card, .process-step, .value-card, .course-card,
.contact-info-card, .faq-item, .industry-tile, .contact-form, .cta-band { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(125,140,220,0.35);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ind-300);
  transition: border-color 0.3s, transform 0.3s, color 0.3s;
  flex: none;
}
.theme-toggle:hover { border-color: var(--ind-300); transform: rotate(15deg); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }

html[data-theme="light"] {
  --navy-950: #eef1f9;
  --navy-900: #f7f8fd;
  --navy-800: #ffffff;
  --navy-700: #e7eaf7;
  --navy-600: #d8ddf2;
  --ink-100: #14183a;
  --ink-300: #3b4268;
  --ink-400: #5a6183;
  --ink-500: #5b6073;   /* WCAG AA: >=4.62:1 on every light surface in use */
  --gold-400: #b93d48;  /* darker accent: the dark-mode red is only 3.1:1 on a pale page */
  --card-bg: rgba(37, 42, 99, 0.035);
  --card-border: rgba(37, 42, 99, 0.16);
  --gold-grad: linear-gradient(115deg, #252a63 0%, #4c55a8 45%, #2c3272 70%, #565fb5 100%);
}
html[data-theme="light"] ::selection { background: rgba(37,42,99,0.2); color: #14183a; }
html[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, 0.88); box-shadow: 0 8px 30px rgba(20, 24, 58, 0.10); }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active { color: #14183a; }
html[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(125, 140, 220, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(232, 25, 44, 0.05), transparent 60%),
    var(--navy-950);
}
html[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(125, 140, 220, 0.22), transparent 60%),
    var(--navy-950);
}
html[data-theme="light"] .service-card,
html[data-theme="light"] .process-step,
html[data-theme="light"] .value-card,
html[data-theme="light"] .course-card,
html[data-theme="light"] .contact-info-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .industry-tile { border-color: rgba(37,42,99,0.12); background: #ffffff; box-shadow: 0 6px 24px -12px rgba(20,24,58,0.10); }
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .process-step:hover,
html[data-theme="light"] .value-card:hover,
html[data-theme="light"] .course-card:hover,
html[data-theme="light"] .contact-info-card:hover { border-color: rgba(37,42,99,0.28); box-shadow: 0 24px 50px -20px rgba(20,24,58,0.22); }
html[data-theme="light"] .value-card:hover { background: #ffffff; }
html[data-theme="light"] .service-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(125,140,220,0.14), transparent 45%); }
html[data-theme="light"] .tags span, html[data-theme="light"] .pill-grid span { border-color: rgba(37,42,99,0.18); color: var(--ink-400); background: rgba(37,42,99,0.03); }
html[data-theme="light"] .pill-grid span:hover { background: rgba(37,42,99,0.08); color: #14183a; }
html[data-theme="light"] .check-list strong, html[data-theme="light"] .answer-box strong { color: #14183a; }
html[data-theme="light"] .stats-band { background: linear-gradient(180deg, rgba(125,140,220,0.08), transparent), var(--navy-700); border-color: rgba(37,42,99,0.12); }
html[data-theme="light"] .cta-band { background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(125,140,220,0.20), transparent 65%), #ffffff; border-color: rgba(37,42,99,0.14); }
html[data-theme="light"] .marquee { background: var(--navy-700); border-color: rgba(37,42,99,0.12); }
html[data-theme="light"] .btn-ghost { border-color: rgba(37,42,99,0.30); color: #14183a; }
html[data-theme="light"] .btn-ghost:hover { border-color: #252a63; color: #252a63; }
html[data-theme="light"] .contact-form { background: #ffffff; border-color: rgba(37,42,99,0.14); }
html[data-theme="light"] .form-group input, html[data-theme="light"] .form-group select, html[data-theme="light"] .form-group textarea { background: rgba(37,42,99,0.04); border-color: rgba(37,42,99,0.16); color: #14183a; }
html[data-theme="light"] .form-group select option { background: #ffffff; }
html[data-theme="light"] .frame-box {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(125,140,220,0.30), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(232,25,44,0.08), transparent 55%),
    #ffffff;
  border-color: rgba(37,42,99,0.14);
}
html[data-theme="light"] .floating-chip { background: rgba(255,255,255,0.95); border-color: rgba(37,42,99,0.16); box-shadow: 0 18px 40px rgba(20,24,58,0.15); }
html[data-theme="light"] .floating-chip .num { color: #252a63; }
html[data-theme="light"] .svc-detail { border-color: rgba(37,42,99,0.10); }
html[data-theme="light"] .footer-grid p, html[data-theme="light"] .footer-grid ul a,
html[data-theme="light"] .footer-contact li { color: #96a2ba; }
/* The footer stays dark in light mode, so it keeps the dark-surface palette:
   light-on-dark text, and the bright accent that would fail on a pale page. */
html[data-theme="light"] .site-footer { background: #10143a; --gold-400: #f04f5e; }
html[data-theme="light"] .site-footer .brand-name, html[data-theme="light"] .footer-bottom { color: #c3cbdc; }
html[data-theme="light"] .footer-tagline p { color: #96a2ba; }   /* 6.9:1 on #10143a */
html[data-theme="light"] .hero-badge { background: rgba(232,25,44,0.05); }
html[data-theme="light"] #hero-canvas { opacity: 0.55; }
html[data-theme="light"] .nav-toggle span { background: #252a63; }
html[data-theme="light"] .nav-links.open { background: rgba(247,248,253,0.98); }
html[data-theme="light"] .map-embed { filter: none; border-color: rgba(37,42,99,0.14); }


/* ---------- Services dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop > a .caret { display: inline-block; margin-left: 5px; transition: transform 0.3s; font-size: 0.7em; }
.nav-drop:hover > a .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 290px;
  background: rgba(10, 13, 36, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(125,140,220,0.22);
  border-radius: 16px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6);
  z-index: 1500;
}
.nav-drop:hover .dropdown-menu, .nav-drop:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown-menu a {
  display: block;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-300);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: rgba(125,140,220,0.12); color: #fff; padding-left: 20px; }
.dropdown-menu a.all-link { margin-top: 6px; border-top: 1px solid rgba(125,140,220,0.18); border-radius: 0 0 10px 10px; color: var(--gold-400); font-weight: 600; }
html[data-theme="light"] .dropdown-menu { background: rgba(255,255,255,0.98); border-color: rgba(37,42,99,0.14); box-shadow: 0 24px 60px -18px rgba(20,24,58,0.25); }
html[data-theme="light"] .dropdown-menu a:hover { background: rgba(37,42,99,0.06); color: #14183a; }
@media (max-width: 840px) {
  .dropdown-menu { display: none; }
}

/* ---------- Service detail page: outcome list ---------- */
.outcome-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 44px; }
.outcome-strip .item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px 22px; border-radius: 14px;
  background: var(--card-bg); border: 1px solid rgba(125,140,220,0.14);
  color: var(--ink-300); font-size: 0.93rem;
}
.outcome-strip svg { color: var(--ind-300); flex: none; margin-top: 2px; }
html[data-theme="light"] .outcome-strip .item { background: #ffffff; border-color: rgba(37,42,99,0.12); }


/* ============================================================
   APPLE-STYLE MOTION LAYER
   ============================================================ */

/* Scroll progress bar */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red-grad);
  z-index: 3000;
  transition: width 0.1s linear;
}

/* Word-by-word headline reveal */
.section-title .wrd {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(10px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 70ms);
}
.section-title.words-in .wrd { opacity: 1; transform: none; filter: none; }

/* Hero scroll-exit is driven inline by JS (transform/opacity) */
.hero-inner, .hero-visual .radar { will-change: transform, opacity; }

/* Parallax elements */
[data-parallax] { will-change: transform; }

/* Process steps: progressive activation while scrolling */
.process-step { transition: transform 0.6s var(--ease-out), border-color 0.6s, box-shadow 0.6s, background 0.6s; }
.process-step.active {
  border-color: rgba(232,25,44,0.45);
  transform: translateY(-8px);
  box-shadow: 0 18px 44px -18px rgba(232,25,44,0.35);
}
.process-step.active .step-num {
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .process-step.active { box-shadow: 0 18px 44px -18px rgba(232,25,44,0.25); background: #ffffff; }

/* Magnetic buttons */
.btn-gold { will-change: transform; }

/* Radar breathing glow */
.radar { box-shadow: 0 0 80px -30px rgba(125,140,220,0.5); animation: float 7s ease-in-out infinite, radar-glow 5s ease-in-out infinite; }
@keyframes radar-glow {
  0%, 100% { box-shadow: 0 0 80px -30px rgba(125,140,220,0.45); }
  50% { box-shadow: 0 0 110px -25px rgba(232,25,44,0.35); }
}

/* Stat pop when counters fire */
.stat h3 { transition: transform 0.5s var(--ease-out); }
.stat.counted h3 { animation: stat-pop 0.6s var(--ease-out); }
@keyframes stat-pop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .section-title .wrd { opacity: 1; transform: none; filter: none; }
  #scrollProgress { display: none; }
}


/* ============================================================
   ICON SYSTEM, contextual icons with animated draw-in
   ============================================================ */
.stat-icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(125,140,220,0.14), rgba(125,140,220,0.04));
  border: 1px solid rgba(125,140,220,0.25);
  color: var(--ind-300);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.stat:hover .stat-icon { transform: translateY(-4px) scale(1.08); border-color: var(--ind-300); }
.stat.counted .stat-icon { animation: icon-pop 0.6s var(--ease-out); }

.mini-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(125,140,220,0.16), rgba(125,140,220,0.04));
  border: 1px solid rgba(125,140,220,0.25);
  color: var(--ind-300);
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-out), background 0.4s, color 0.4s;
}
.service-card:hover .mini-icon { transform: scale(1.12) rotate(-6deg); color: var(--gold-400); }

.step-icon {
  position: absolute;
  top: 32px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(125,140,220,0.10);
  border: 1px solid rgba(125,140,220,0.22);
  color: var(--ind-300);
  transition: transform 0.4s var(--ease-out), background 0.4s, color 0.4s, border-color 0.4s;
}
.step-icon svg { width: 20px; height: 20px; }
.process-step { position: relative; }
.process-step:hover .step-icon { transform: rotate(10deg) scale(1.1); }
.process-step.active .step-icon { background: rgba(232,25,44,0.12); border-color: rgba(232,25,44,0.4); color: var(--gold-400); }

.ind-icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(125,140,220,0.10);
  border: 1px solid rgba(125,140,220,0.22);
  color: var(--ind-300);
  transition: transform 0.4s var(--ease-out), color 0.4s, border-color 0.4s;
}
.industry-tile:hover .ind-icon { transform: translateY(-4px) rotate(-8deg) scale(1.1); color: var(--gold-400); border-color: rgba(232,25,44,0.35); }

/* Stroke draw-in: pathLength normalized to 1 by JS */
.icon-draw svg .dl {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: icon-draw 1.1s var(--ease-out) forwards;
}
.icon-draw svg .dl:nth-child(2) { animation-delay: 0.15s; }
.icon-draw svg .dl:nth-child(3) { animation-delay: 0.3s; }
.icon-draw svg .dl:nth-child(4) { animation-delay: 0.45s; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }

@keyframes icon-pop {
  0% { transform: scale(0.85); }
  55% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
}
.service-icon:hover svg, .stat-icon:hover svg, .mini-icon:hover svg, .ind-icon:hover svg { animation: icon-wiggle 0.55s var(--ease-out); }

html[data-theme="light"] .stat-icon, html[data-theme="light"] .mini-icon,
html[data-theme="light"] .step-icon, html[data-theme="light"] .ind-icon {
  background: rgba(37,42,99,0.06);
  border-color: rgba(37,42,99,0.16);
  color: #3c4a9e;
}
@media (prefers-reduced-motion: reduce) {
  .icon-draw svg .dl { animation: none; stroke-dashoffset: 0; }
}


/* ---------- WhatsApp floating chat button ---------- */
#waChat {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
#waChat .wa-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2ce080, #25d366 55%, #1eb857);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  position: relative;
}
#waChat .wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
#waChat:hover .wa-btn { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.7); }
#waChat .wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, #25d366, #1eb857);
  border-radius: 999px;
  margin-left: -28px;
  padding: 11px 0 11px 34px;
  opacity: 0;
  transition: max-width 0.5s var(--ease-out), opacity 0.4s, padding 0.5s var(--ease-out);
  z-index: -1;
}
#waChat:hover .wa-label { max-width: 220px; opacity: 1; padding-right: 22px; }
@media (max-width: 560px) {
  #waChat { bottom: 20px; left: 18px; }
  #waChat .wa-btn { width: 52px; height: 52px; }
  #waChat .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #waChat .wa-btn::before { animation: none; display: none; }
}


/* ============================================================
   DETECTIVE / INTELLIGENCE THEME ANIMATIONS
   ============================================================ */

/* Target-lock brackets on radar */
.lock-frame { position: absolute; inset: 26%; pointer-events: none; opacity: 0; animation: lock-in 1.2s var(--ease-out) 1.4s forwards; }
.lock-frame span { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(232,25,44,0.85); }
.lock-frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.lock-frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.lock-frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.lock-frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }
.lock-frame em {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-style: normal; font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold-400); white-space: nowrap;
  animation: lock-blink 2.4s steps(2) infinite;
}
@keyframes lock-in { 0% { opacity: 0; transform: scale(1.6); } 60% { opacity: 1; transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lock-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }

/* Live intelligence feed terminal */
.intel-feed {
  position: absolute;
  bottom: -34px; left: -30px;
  width: 350px;
  border-radius: 14px;
  background: rgba(6, 8, 25, 0.92);
  border: 1px solid rgba(125,140,220,0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7);
  overflow: hidden;
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  animation: float 8s ease-in-out 1s infinite;
  z-index: 3;
}
.feed-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(125,140,220,0.18);
  background: rgba(125,140,220,0.06);
}
.fdot { width: 9px; height: 9px; border-radius: 50%; }
.fdot.r { background: #ff5f57; } .fdot.y { background: #febc2e; } .fdot.g { background: #28c840; }
.feed-title { font-size: 0.58rem; letter-spacing: 0.22em; color: var(--ink-400); margin-left: 8px; font-family: var(--font-display); font-weight: 600; }
.feed-rec { margin-left: auto; font-size: 0.58rem; color: #ff5f57; letter-spacing: 0.12em; animation: lock-blink 1.6s steps(2) infinite; }
.feed-lines { padding: 12px 14px 14px; min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.feed-lines .fl { font-size: 0.68rem; line-height: 1.5; color: #9daef0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.55; }
.feed-lines .fl:last-child { opacity: 1; color: #dfe5ff; }
.feed-lines .fl .ok { color: #28c840; } .feed-lines .fl .warn { color: #febc2e; } .feed-lines .fl .flag { color: #ff5f57; }
.feed-lines .cursor { display: inline-block; width: 7px; height: 12px; background: var(--gold-400); vertical-align: -2px; margin-left: 2px; animation: lock-blink 0.9s steps(2) infinite; }
html[data-theme="light"] .intel-feed { background: rgba(20, 24, 58, 0.96); }
@media (max-width: 1000px) { .intel-feed { position: relative; bottom: auto; left: auto; margin: 26px auto 0; } }

/* Declassified document scan */
.declassify { position: relative; overflow: hidden; }
.stamp-declass {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3em;
  color: rgba(232,25,44,0.85);
  border: 2px solid rgba(232,25,44,0.75);
  padding: 5px 12px;
  transform: rotate(8deg) scale(2.6);
  opacity: 0;
  border-radius: 4px;
}
.reveal.in .stamp-declass, .in .stamp-declass { animation: stamp-hit 0.55s var(--ease-out) 0.9s forwards; }
@keyframes stamp-hit {
  0% { opacity: 0; transform: rotate(8deg) scale(2.6); }
  60% { opacity: 1; transform: rotate(-6deg) scale(0.92); }
  100% { opacity: 0.9; transform: rotate(-8deg) scale(1); }
}
.scan-line {
  position: absolute; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(232,25,44,0.9), transparent);
  box-shadow: 0 0 18px rgba(232,25,44,0.6);
  left: -1%;
  opacity: 0;
}
.reveal.in .scan-line { animation: doc-scan 1.6s var(--ease-out) 0.2s; }
@keyframes doc-scan { 0% { left: -1%; opacity: 1; } 90% { opacity: 1; } 100% { left: 101%; opacity: 0; } }

/* Fingerprint tracing */
.fp-wrap {
  position: absolute; right: -30px; top: 50%;
  transform: translateY(-50%) rotate(12deg);
  width: 320px; color: var(--ind-300);
  opacity: 0.13; pointer-events: none;
}
.fp-wrap .fp { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fp-wrap.tracing .fp { animation: fp-draw 2.6s var(--ease-out) forwards; }
.fp-wrap.tracing .fp:nth-child(2) { animation-delay: 0.2s; } .fp-wrap.tracing .fp:nth-child(3) { animation-delay: 0.4s; }
.fp-wrap.tracing .fp:nth-child(4) { animation-delay: 0.6s; } .fp-wrap.tracing .fp:nth-child(5) { animation-delay: 0.3s; }
.fp-wrap.tracing .fp:nth-child(6) { animation-delay: 0.5s; } .fp-wrap.tracing .fp:nth-child(7) { animation-delay: 0.7s; }
.fp-wrap.tracing .fp:nth-child(8) { animation-delay: 0.9s; }
@keyframes fp-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 840px) { .fp-wrap { display: none; } }

/* Globe radar pings */
.ping-ring { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; }
.ping-ring.p2 { animation-delay: 1s; } .ping-ring.p3 { animation-delay: 2s; }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(4.5); opacity: 0; }
}

/* Confidential rubber stamp on CTA */
.stamp-conf {
  position: absolute;
  top: 26px; right: 34px;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.28em;
  color: rgba(232,25,44,0.5);
  border: 3px double rgba(232,25,44,0.45);
  border-radius: 6px;
  padding: 8px 16px;
  transform: rotate(9deg) scale(3);
  opacity: 0;
  pointer-events: none;
}
.cta-band.in .stamp-conf { animation: stamp-hit 0.6s var(--ease-out) 0.7s forwards; }
@media (max-width: 840px) { .stamp-conf { font-size: 0.6rem; top: 14px; right: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .lock-frame { animation: none; opacity: 1; }
  .fp-wrap .fp { stroke-dashoffset: 0; animation: none; }
  .ping-ring { animation: none; opacity: 0; }
  .stamp-declass, .stamp-conf { opacity: 0.85; transform: rotate(-8deg) scale(1); animation: none !important; }
  .scan-line { display: none; }
  .feed-rec, .feed-lines .cursor { animation: none; }
}


/* ---------- Footer: service areas & SEO tagline ---------- */
.footer-areas {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 34px 0 8px;
}
.footer-areas h3 { font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; }
.footer-areas p { color: #96a2ba; font-size: 0.88rem; line-height: 1.8; margin-bottom: 8px; }
.footer-areas strong { color: #c3cbdc; }
.footer-tagline {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 22px;
  padding: 26px 0;
  text-align: center;
}
.footer-tagline strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: #c3cbdc; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer-tagline p { color: var(--ink-500); font-size: 0.78rem; line-height: 2; max-width: 980px; margin: 0 auto; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; margin-top: 56px; }
.blog-card {
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-10px); border-color: var(--card-border); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); }
.blog-card .art { display: block; }
.blog-card .art svg { width: 100%; height: auto; display: block; }
.blog-card .bc-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.16rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--ink-300); font-size: 0.92rem; flex: 1; }
.blog-card .card-link { margin-top: 18px; }
html[data-theme="light"] .blog-card { background: #ffffff; border-color: rgba(37,42,99,0.12); box-shadow: 0 6px 24px -12px rgba(20,24,58,0.10); }

.post-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-400); font-size: 0.85rem; margin: 18px 0 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { color: var(--ind-300); }
.post-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(125,140,220,0.2); margin: 46px 0; }
.post-hero-art svg { width: 100%; height: auto; display: block; }
.post-body { max-width: 820px; }
.post-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 46px 0 16px; }
.post-body h3 { font-size: 1.12rem; margin: 30px 0 12px; }
.post-body p { color: var(--ink-300); margin-bottom: 16px; font-size: 1.0rem; line-height: 1.85; }
.post-body ul { margin: 0 0 18px 22px; list-style: disc; color: var(--ink-300); }
.post-body ul li { margin-bottom: 9px; line-height: 1.7; }
.post-body ul li strong { color: var(--ink-100); }
.post-body a { color: var(--gold-400); font-weight: 500; }
.post-body a:hover { text-decoration: underline; }
.post-callout {
  border-radius: 14px;
  border: 1px solid rgba(125,140,220,0.25);
  background: var(--card-bg);
  padding: 24px 28px;
  margin: 28px 0;
  color: var(--ink-300);
}
.post-callout strong { color: var(--gold-400); }
html[data-theme="light"] .post-callout { background: #ffffff; }
.post-cta { margin: 40px 0 10px; display: flex; gap: 14px; flex-wrap: wrap; }


/* ---------- Hero headline carousel ---------- */
.hero-rotator { position: relative; }
.hero-slide {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-family: var(--font-display);
  margin-bottom: 24px;
  position: absolute;
  top: 0; left: 0; right: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-slide.active, .hero-slide.leaving { visibility: visible; }
.hero-slide.active { position: relative; pointer-events: auto; }
.hero-sub { transition: opacity 0.45s ease, transform 0.45s var(--ease-out), filter 0.45s; }
.hero-sub.swap { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.hero-dots { display: flex; gap: 10px; margin: 22px 0 6px; }
.hero-dots button {
  width: 26px; height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(125,140,220,0.3);
  cursor: pointer;
  transition: background 0.35s, width 0.35s;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-dots button.active { width: 44px; background: rgba(125,140,220,0.35); }
.hero-dots button.active::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--red-grad);
  transform-origin: left;
  animation: dot-fill 5.5s linear forwards;
}
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html[data-theme="light"] .hero-dots button { background: rgba(37,42,99,0.18); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { position: relative; visibility: visible; }
  .hero-slide:not(.active) { display: none; }
  .hero-slide.active { display: block; }
  .hero .hero-slide .line > span { transform: none; animation: none !important; }
  .hero-dots button.active::after { animation: none; transform: scaleX(1); }
}


/* ---------- Animated Service Areas map ---------- */
.area-map {
  margin-top: 50px;
  border-radius: var(--radius);
  border: 1px solid rgba(125,140,220,0.2);
  background:
    radial-gradient(ellipse 60% 70% at 25% 60%, rgba(125,140,220,0.08), transparent 65%),
    var(--card-bg);
  padding: 20px;
}
.area-map svg { width: 100%; height: auto; display: block; }
.area-map .india {
  fill: rgba(125,140,220,0.08);
  stroke: rgba(157,174,240,0.55);
  stroke-width: 2;
  stroke-linejoin: round;
}
.area-map .city { opacity: 0; transform-box: fill-box; transform-origin: center; }
.area-map.in .city { animation: pin-pop 0.55s var(--ease-out) forwards; }
@keyframes pin-pop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}
.area-map .city-lbl {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--ink-300);
  letter-spacing: 0.06em;
  opacity: 0;
}
.area-map.in .city-lbl { animation: lbl-in 0.6s var(--ease-out) forwards; }
.area-map .hq-lbl { fill: #ff4757; font-size: 13.5px; font-weight: 800; letter-spacing: 0.12em; }
@keyframes lbl-in { to { opacity: 1; } }
.area-map .map-ping {
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
}
.area-map.in .map-ping { animation: ping 3s ease-out infinite; }
.area-map .arc {
  stroke: rgba(232,25,44,0.65);
  stroke-width: 1.8;
  stroke-dasharray: 7 9;
  fill: none;
  opacity: 0;
}
.area-map.in .arc { animation: arc-in 0.8s var(--ease-out) forwards, arc-flow 1.4s linear infinite; }
@keyframes arc-in { to { opacity: 1; } }
@keyframes arc-flow { to { stroke-dashoffset: -32; } }
.area-map .region { opacity: 0; transform-box: fill-box; transform-origin: center; }
.area-map.in .region { animation: pin-pop 0.6s var(--ease-out) forwards; }
.area-map .region-lbl {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  fill: #dfe5ff;
  letter-spacing: 0.06em;
}
html[data-theme="light"] .area-map { background: #ffffff; border-color: rgba(37,42,99,0.14); }
html[data-theme="light"] .area-map .india { fill: rgba(37,42,99,0.06); stroke: rgba(37,42,99,0.45); }
html[data-theme="light"] .area-map .city-lbl { fill: #3b4268; }
html[data-theme="light"] .area-map .region rect { fill: rgba(255,255,255,0.95); stroke: rgba(37,42,99,0.25); }
html[data-theme="light"] .area-map .region-lbl { fill: #14183a; }
@media (prefers-reduced-motion: reduce) {
  .area-map .city, .area-map .region, .area-map .arc, .area-map .city-lbl { opacity: 1; animation: none !important; }
  .area-map .map-ping { display: none; }
}


/* Header CTA: WhatsApp icon + no wrap */
.btn { white-space: nowrap; }
.nav-cta .btn-wa { gap: 9px; padding: 11px 22px; }
.nav-cta .btn-wa svg { flex: none; }
.btn-wa:hover svg { transform: none; animation: icon-wiggle 0.55s var(--ease-out); }
@media (max-width: 1180px) {
  .nav-links { gap: 24px; }
  .nav-cta .btn-wa { font-size: 0.8rem; padding: 10px 18px; }
}


/* ---------- Services overview: described sub-services ---------- */
.sub-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.sub-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(125,140,220,0.14);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.sub-item:hover { transform: translateY(-3px); border-color: rgba(125,140,220,0.35); }
.sub-item svg { flex: none; color: var(--ind-300); margin-top: 3px; }
.sub-item p { color: var(--ink-400); font-size: 0.88rem; line-height: 1.65; margin: 0; }
.sub-item strong { display: block; color: var(--ink-100); font-family: var(--font-display); font-size: 0.94rem; margin-bottom: 3px; }
html[data-theme="light"] .sub-item { background: #ffffff; border-color: rgba(37,42,99,0.12); }
@media (max-width: 560px) { .sub-list { grid-template-columns: 1fr; } }

/* ============ Memberships, Associations & Certifications ============ */
.cred-section { position: relative; overflow: hidden; }
.cred-marquee { position: relative; margin: 38px 0 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cred-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: credScroll 42s linear infinite; will-change: transform; }
.cred-marquee:hover .cred-track { animation-play-state: paused; }
@keyframes credScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cred-chip { flex: none; display: flex; align-items: center; justify-content: center;
  height: 92px; min-width: 150px; padding: 14px 22px; background: #ffffff;
  border: 1px solid rgba(125,140,220,0.25); border-radius: 16px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.55); }
.cred-chip img { max-height: 60px; max-width: 150px; width: auto; object-fit: contain; display: block; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; margin-top: 34px; }
.cred-tile { position: relative; overflow: hidden; background: #ffffff; border: 1px solid rgba(125,140,220,0.25);
  border-radius: 18px; padding: 22px 16px 16px; text-align: center;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease, border-color 0.45s ease; }
.cred-tile:hover { transform: translateY(-7px); border-color: rgba(232,25,44,0.45); box-shadow: 0 24px 50px -22px rgba(232,25,44,0.35); }
.cred-tile::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(157,174,240,0.28), transparent);
  transform: skewX(-18deg); transition: left 0.7s ease; pointer-events: none; }
.cred-tile:hover::after { left: 130%; }
.cred-tile .cred-logo { height: 74px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cred-tile .cred-logo img { max-height: 74px; max-width: 84%; object-fit: contain;
  filter: saturate(0.96); transition: transform 0.45s ease; }
.cred-tile:hover .cred-logo img { transform: scale(1.06); }
.cred-name { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: #14183a; line-height: 1.4; }
.cred-tag { display: inline-block; margin-top: 8px; padding: 3px 11px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.cred-tag.t-mem { background: rgba(37,42,99,0.10); color: #252a63; }
.cred-tag.t-cert { background: rgba(232,25,44,0.10); color: #b3121f; }
.cred-tag.t-gov { background: rgba(13,110,60,0.10); color: #0d6e3c; }
.cred-note { text-align: center; color: var(--ink-400); font-size: 0.85rem; margin-top: 26px; }
html[data-theme="light"] .cred-chip,
html[data-theme="light"] .cred-tile { border-color: rgba(37,42,99,0.14); box-shadow: 0 8px 26px -14px rgba(20,24,58,0.14); }
html[data-theme="light"] .cred-tile:hover { border-color: rgba(232,25,44,0.4); box-shadow: 0 22px 46px -20px rgba(232,25,44,0.25); }
@media (max-width: 640px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cred-chip { height: 76px; min-width: 120px; padding: 10px 16px; }
  .cred-chip img { max-height: 48px; max-width: 120px; }
  .cred-tile .cred-logo { height: 58px; }
  .cred-tile .cred-logo img { max-height: 58px; }
}

/* Credentials band under hero (replaces text ticker) */
.marquee.cred-band { padding: 18px 0; }
.marquee.cred-band .cred-track { animation: credScroll 48s linear infinite; }
.marquee.cred-band:hover .cred-track { animation-play-state: paused; }
.marquee.cred-band .cred-chip { height: 72px; min-width: 128px; padding: 10px 18px; border-radius: 14px; }
.marquee.cred-band .cred-chip img { max-height: 50px; max-width: 132px; }
@media (max-width: 640px) {
  .marquee.cred-band .cred-chip { height: 60px; min-width: 104px; padding: 8px 14px; }
  .marquee.cred-band .cred-chip img { max-height: 40px; max-width: 104px; }
}

/* ============ Dotted world map (service areas) ============ */
.area-map .wd, .area-map .wd-in { fill: none; stroke-width: 3.4; stroke-linecap: round; opacity: 0; }
.area-map .wd { stroke: rgba(157,174,240,0.32); }
.area-map .wd-in { stroke: #e8192c; }
.area-map.in .wd { animation: wd-fade 1.4s ease forwards; }
.area-map.in .wd-in { animation: wd-fade 1.2s ease 0.35s forwards, wd-glow 3s ease-in-out 1.6s infinite; }
@keyframes wd-fade { to { opacity: 1; } }
@keyframes wd-glow { 0%,100% { stroke: #e8192c; } 50% { stroke: #ff5060; } }
.area-map .trav { fill: #ff5060; opacity: 0; filter: drop-shadow(0 0 7px rgba(232,25,44,0.95)); }
.area-map .trav .eagle { stroke: rgba(255,255,255,0.55); stroke-width: 0.6; }
.area-map.in .trav { opacity: 1; transition: opacity 0.8s ease 1.6s; }
html[data-theme="light"] .area-map .wd { stroke: rgba(37,42,99,0.26); }
html[data-theme="light"] .area-map .trav { fill: #b3121f; filter: drop-shadow(0 2px 5px rgba(179,18,31,0.45)); }
html[data-theme="light"] .area-map .trav .eagle { stroke: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) { .area-map .wd, .area-map .wd-in { opacity: 1; animation: none !important; } .area-map .trav { display: none; } }

.footer-bottom a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ============ Reviews & Ratings ============ */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; }
.rev-card { background: var(--navy-900); border: 1px solid rgba(125,140,220,0.18); border-radius: 18px;
  padding: 26px 22px; text-align: center; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.rev-card:hover { transform: translateY(-7px); border-color: rgba(232,25,44,0.4); box-shadow: 0 24px 50px -24px rgba(232,25,44,0.3); }
.rev-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.rev-brand strong { font-family: var(--font-display); font-size: 1rem; color: var(--ink-100); }
.rev-logo.jd { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 7px; background: #f7941d; color: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; }
.rev-score { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink-100); line-height: 1; }
.rev-score span { font-size: 1rem; color: var(--ink-400); font-weight: 600; }
.rev-stars { color: #f5b301; font-size: 1.05rem; letter-spacing: 0.2em; margin: 8px 0 10px; }
.rev-stars.big { font-size: 1.3rem; margin-top: 2px; }
.rev-card p { color: var(--ink-400); font-size: 0.85rem; line-height: 1.65; min-height: 56px; }
.rev-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.rev-links a { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold-400); border: 1px solid rgba(232,25,44,0.35); border-radius: 999px; padding: 7px 16px;
  text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.rev-links a:hover { background: var(--gold-500); color: #ffffff; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.quote-card { margin: 0; background: var(--navy-900); border: 1px solid rgba(125,140,220,0.18); border-radius: 18px; padding: 24px 24px 20px; position: relative; overflow: hidden; }
.quote-card::before { content: "\201C"; position: absolute; top: -8px; right: 14px; font-family: var(--font-display);
  font-size: 5.5rem; color: rgba(232,25,44,0.14); line-height: 1; }
.quote-card blockquote { margin: 0 0 12px; color: var(--ink-300); font-size: 0.92rem; line-height: 1.75; font-style: italic; }
.quote-card figcaption { color: var(--ink-400); font-size: 0.8rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
html[data-theme="light"] .rev-card, html[data-theme="light"] .quote-card { background: #ffffff; border-color: rgba(37,42,99,0.12); box-shadow: 0 6px 24px -12px rgba(20,24,58,0.1); }

/* ============ Brand video in Why-It-Matters card ============ */
.frame-box.frame-video { aspect-ratio: 1/1; background: #0b0e26; }
.frame-box.frame-video::after { pointer-events: none; z-index: 2; }
.brand-video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
html[data-theme="light"] .frame-box.frame-video { background: #eef1fb; }

/* ============ Highlighted credentials band ============ */
.marquee.cred-band { position: relative; padding: 30px 0 26px;
  background: linear-gradient(180deg, rgba(232,25,44,0.06), transparent 32%, transparent 68%, rgba(232,25,44,0.06)), var(--navy-950);
  border-block: none; }
.marquee.cred-band::before, .marquee.cred-band::after { content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #e8192c 25%, #9daef0 50%, #e8192c 75%, transparent);
  background-size: 200% 100%; animation: bandLine 6s linear infinite; }
.marquee.cred-band::before { top: 0; }
.marquee.cred-band::after { bottom: 0; animation-direction: reverse; }
@keyframes bandLine { to { background-position: 200% 0; } }
.band-sweep { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(232,25,44,0.10) 50%, rgba(157,174,240,0.10) 54%, transparent 62%);
  transform: translateX(-100%); animation: bandSweep 7s ease-in-out infinite; }
@keyframes bandSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.cred-band-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em;
  color: var(--gold-400); text-align: center; }
.marquee.cred-band .cred-chip { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease; }
.marquee.cred-band .cred-chip:hover { transform: translateY(-7px) scale(1.07); border-color: rgba(232,25,44,0.55);
  box-shadow: 0 18px 40px -16px rgba(232,25,44,0.5); }
.marquee.cred-band .cred-chip img { animation: chipFloat 4.6s ease-in-out infinite; }
.marquee.cred-band .cred-chip:nth-child(2n) img { animation-delay: 1.1s; }
.marquee.cred-band .cred-chip:nth-child(3n) img { animation-delay: 2.3s; }
.marquee.cred-band .cred-chip:nth-child(5n) img { animation-delay: 3.4s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html[data-theme="light"] .marquee.cred-band {
  background: linear-gradient(180deg, rgba(232,25,44,0.05), transparent 32%, transparent 68%, rgba(232,25,44,0.05)), #eef1fb; }
html[data-theme="light"] .cred-band-label { color: #b3121f; }
@media (prefers-reduced-motion: reduce) { .band-sweep, .marquee.cred-band::before, .marquee.cred-band::after, .marquee.cred-band .cred-chip img { animation: none !important; } }

/* ============ News / job cards (media & careers pages) ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.news-card { background: var(--navy-900); border: 1px solid rgba(125,140,220,0.18); border-radius: 18px; padding: 26px;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.news-card:hover { transform: translateY(-7px); border-color: rgba(232,25,44,0.4); box-shadow: 0 24px 50px -24px rgba(232,25,44,0.3); }
.news-card h3 { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink-100); margin-bottom: 10px; line-height: 1.45; }
.news-card p { color: var(--ink-400); font-size: 0.88rem; line-height: 1.7; }
html[data-theme="light"] .news-card { background: #ffffff; border-color: rgba(37,42,99,0.12); box-shadow: 0 6px 24px -12px rgba(20,24,58,0.1); }

/* ============ Leadership team cards ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 40px; }
.team-card { background: var(--navy-900); border: 1px solid rgba(125,140,220,0.18); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.team-card:hover { transform: translateY(-7px); border-color: rgba(232,25,44,0.4); box-shadow: 0 24px 50px -24px rgba(232,25,44,0.3); }
.team-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.team-avatar { flex: none; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #ffffff;
  background: linear-gradient(135deg, #b3121f, #e8192c 55%, #10143a); border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px -8px rgba(232,25,44,0.5); }
.team-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink-100); line-height: 1.3; }
.team-quals { font-size: 0.76rem; color: var(--ink-500); font-family: var(--font-display); letter-spacing: 0.04em; margin-top: 2px; }
.team-role { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-400); margin-top: 5px; }
.team-card p { color: var(--ink-400); font-size: 0.87rem; line-height: 1.72; flex: 1; }
.team-li { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 16px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--ind-300);
  border: 1px solid rgba(125,140,220,0.35); border-radius: 999px; padding: 7px 16px; text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.team-li:hover { background: #0a66c2; border-color: #0a66c2; color: #ffffff; }
html[data-theme="light"] .team-card { background: #ffffff; border-color: rgba(37,42,99,0.12); box-shadow: 0 6px 24px -12px rgba(20,24,58,0.1); }
html[data-theme="light"] .team-card h3 { color: #14183a; }
html[data-theme="light"] .team-li { color: #0a66c2; border-color: rgba(10,102,194,0.4); }
html[data-theme="light"] .team-li:hover { color: #ffffff; }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ============ Team cards v2, photo-first (images drop into assets/images/team/) ============ */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.team-card { padding: 0; overflow: hidden; }
.team-photo { position: relative; aspect-ratio: 1 / 0.92; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(232,25,44,0.20), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(125,140,220,0.18), transparent 55%),
    linear-gradient(160deg, #141a44, #0a0d24); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.team-ph svg { width: 58%; height: 58%; color: rgba(157,174,240,0.22); }
.team-init { position: absolute; left: 16px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 800; font-size: 1rem; color: #ffffff;
  background: linear-gradient(135deg, #b3121f, #e8192c); border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 20px -6px rgba(232,25,44,0.6); }
.team-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6,8,25,0.55)); }
.team-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { font-size: 1.14rem; }
.team-body p { margin-top: 12px; }
.team-photo::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-18deg); transition: left 0.7s ease; pointer-events: none; }
.team-card:hover .team-photo::after { left: 140%; }
html[data-theme="light"] .team-photo {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(232,25,44,0.12), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(37,42,99,0.10), transparent 55%),
    linear-gradient(160deg, #e6eafb, #f5f7ff); }
html[data-theme="light"] .team-ph svg { color: rgba(37,42,99,0.18); }
html[data-theme="light"] .team-shade { background: linear-gradient(180deg, transparent 60%, rgba(20,24,58,0.18)); }

/* ============ Team v3, split rows: circular portrait + expertise checklist ============ */
.tm-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  margin-top: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(125,140,220,0.12); }
.tm-row:last-of-type { border-bottom: none; padding-bottom: 20px; }
.tm-row.rev .tm-visual { order: 2; }
.tm-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.tm-circle { position: relative; width: min(340px, 78%); aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232,25,44,0.22), transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(125,140,220,0.25), transparent 55%),
    linear-gradient(160deg, #171d4d, #0a0d24);
  border: 1px solid rgba(125,140,220,0.28);
  box-shadow: 0 30px 70px -30px rgba(6,8,25,0.9); }
.tm-circle img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.tm-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tm-ph svg { width: 55%; height: 55%; color: rgba(157,174,240,0.25); }
.tm-ph .team-init { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); }
.tm-corner { position: absolute; width: 56px; height: 56px; border: 3px solid rgba(232,25,44,0.75); pointer-events: none; }
.tm-corner.tc1 { top: 6px; left: calc(50% - min(170px, 39%) - 20px); border-right: none; border-bottom: none; border-radius: 10px 0 0 0;
  animation: cornerPulse 3s ease-in-out infinite; }
.tm-corner.tc2 { bottom: 16px; right: calc(50% - min(170px, 39%) - 20px); border-left: none; border-top: none; border-radius: 0 0 10px 0;
  animation: cornerPulse 3s ease-in-out 1.5s infinite; }
@keyframes cornerPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.tm-checks { position: absolute; right: 0; top: 50%; transform: translateY(-42%);
  background: rgba(16,20,58,0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(125,140,220,0.28); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 24px 50px -20px rgba(6,8,25,0.9); animation: chipFloat 5s ease-in-out infinite; }
.tm-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-checks li { display: flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; color: var(--ink-200); white-space: nowrap; }
.tm-checks svg { flex: none; }
.tm-row .team-li { margin-top: 20px; }
html[data-theme="light"] .tm-circle {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232,25,44,0.14), transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(37,42,99,0.14), transparent 55%),
    linear-gradient(160deg, #e6eafb, #f7f8ff);
  border-color: rgba(37,42,99,0.15); box-shadow: 0 30px 70px -35px rgba(20,24,58,0.35); }
html[data-theme="light"] .tm-ph svg { color: rgba(37,42,99,0.2); }
html[data-theme="light"] .tm-checks { background: rgba(255,255,255,0.95); border-color: rgba(37,42,99,0.14);
  box-shadow: 0 24px 50px -24px rgba(20,24,58,0.3); }
html[data-theme="light"] .tm-checks li { color: #2b3160; }
@media (max-width: 900px) {
  .tm-row { grid-template-columns: 1fr; gap: 26px; }
  .tm-row.rev .tm-visual { order: 0; }
  .tm-checks { position: static; transform: none; margin: 18px auto 0; width: fit-content; }
  .tm-visual { flex-direction: column; align-items: center; }
  .tm-corner { display: none; }
}

/* ============ Team v3.1, checklist beside portrait (never covers the face) ============ */
.tm-visual { justify-content: flex-start; }
.tm-circle { margin-left: 2%; }
.tm-checks { right: 0; top: 50%; transform: translateY(-50%); animation: chipFloat 5s ease-in-out infinite; }
.tm-corner.tc1 { left: calc(2% - 16px); top: 4px; }
.tm-corner.tc2 { left: calc(2% + min(340px, 78%) - 42px); right: auto; bottom: 12px; }
.tm-row.rev .tm-visual { justify-content: flex-end; }
.tm-row.rev .tm-circle { margin-left: 0; margin-right: 2%; }
.tm-row.rev .tm-checks { right: auto; left: 0; }
.tm-row.rev .tm-corner.tc1 { left: auto; right: calc(2% + min(340px, 78%) - 42px); top: 4px; border-right: 3px solid rgba(232,25,44,0.75); border-left: none; border-radius: 0 10px 0 0; }
.tm-row.rev .tm-corner.tc2 { left: auto; right: calc(2% - 16px); border-left: 3px solid rgba(232,25,44,0.75); border-right: none; border-radius: 0 0 0 10px; }
@media (max-width: 900px) {
  .tm-visual, .tm-row.rev .tm-visual { justify-content: center; }
  .tm-circle, .tm-row.rev .tm-circle { margin: 0; }
}

/* ============ Board of Advisors ============ */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.adv-card { background: var(--navy-900); border: 1px solid rgba(125,140,220,0.18); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.adv-card:hover { transform: translateY(-7px); border-color: rgba(232,25,44,0.4); box-shadow: 0 24px 50px -24px rgba(232,25,44,0.3); }
.adv-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-100); margin-top: 14px; line-height: 1.35; }
.adv-title { font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; color: var(--gold-400); margin-top: 4px; }
.adv-card p { color: var(--ink-400); font-size: 0.85rem; line-height: 1.65; margin-top: 10px; flex: 1; }
.adv-card .team-li { padding: 6px 13px; font-size: 0.74rem; }
html[data-theme="light"] .adv-card { background: #ffffff; border-color: rgba(37,42,99,0.12); box-shadow: 0 6px 24px -12px rgba(20,24,58,0.1); }
html[data-theme="light"] .adv-card h3 { color: #14183a; }

/* ============ Awards & photo gallery ============ */
.award-card { display: flex; flex-direction: column; }
.award-logo { background: #ffffff; border: 1px solid rgba(125,140,220,0.2); border-radius: 12px;
  height: 96px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.award-logo img { max-height: 70px; max-width: 78%; object-fit: contain; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.ph-tile { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid rgba(125,140,220,0.2); background: var(--navy-900);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease; }
.ph-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(6,8,25,0.8); }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.ph-tile:hover img { transform: scale(1.06); }
.ph-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(6,8,25,0.85)); color: #ffffff;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; }
.ph-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(125,140,220,0.05) 14px 28px), var(--navy-900); }
.ph-cam { width: 52px; height: 52px; color: var(--ind-300); opacity: 0.6; }
.ph-empty span { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink-200); }
.ph-empty em { font-size: 0.76rem; color: var(--ink-500); font-style: normal; letter-spacing: 0.06em; }
html[data-theme="light"] .ph-tile { background: #ffffff; border-color: rgba(37,42,99,0.12); }
html[data-theme="light"] .ph-empty { background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(37,42,99,0.04) 14px 28px), #ffffff; }
html[data-theme="light"] .award-logo { border-color: rgba(37,42,99,0.12); }

/* Coming-soon badge */
.soon-badge { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); border: 1px dashed rgba(232,25,44,0.5); background: rgba(232,25,44,0.06);
  animation: soonSpinBorder 3.4s ease-in-out infinite; position: relative; }
@keyframes soonSpinBorder { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }

/* Tighter page-hero → content gap; advisors/team rows start sooner */
.page-hero { padding: 165px 0 60px; }
.tm-row { margin-top: 30px; padding-bottom: 46px; }

/* ============ Garuda AI Assistant chat widget ============ */
.gchat { position: fixed; right: 22px; bottom: 96px; z-index: 1900; font-family: var(--font-body); }
.gchat-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red-grad, linear-gradient(115deg,#b3121f,#ff5060,#e8192c)); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(232,25,44,0.65); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  animation: gchatPulse 3.2s ease-in-out infinite; }
.gchat-btn:hover { transform: translateY(-4px) scale(1.06); }
@keyframes gchatPulse { 0%,100% { box-shadow: 0 14px 34px -10px rgba(232,25,44,0.65); } 50% { box-shadow: 0 14px 40px -6px rgba(232,25,44,0.9); } }
.gchat-badge { position: absolute; top: -4px; right: -4px; background: #10143a; color: #ffffff; border: 2px solid #ffffff;
  font-family: var(--font-display); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em;
  border-radius: 999px; padding: 2px 6px; }
.gchat-nudge { position: absolute; right: 68px; bottom: 12px; white-space: nowrap; background: #ffffff; color: #14183a;
  font-size: 0.82rem; font-weight: 600; padding: 10px 16px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 14px 34px -14px rgba(6,8,25,0.5); animation: nudgeIn 0.5s var(--ease-out); }
@keyframes nudgeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gchat-panel { position: absolute; right: 0; bottom: 70px; width: min(370px, calc(100vw - 40px)); height: min(520px, calc(100vh - 180px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--navy-900); border: 1px solid rgba(125,140,220,0.25);
  box-shadow: 0 40px 90px -30px rgba(6,8,25,0.95); animation: nudgeIn 0.4s var(--ease-out); }
.gchat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(115deg, #b3121f, #e8192c); color: #ffffff; }
.gchat-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; flex: none; }
.gchat-title { flex: 1; line-height: 1.25; }
.gchat-title strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }
.gchat-title span { font-size: 0.72rem; opacity: 0.9; display: flex; align-items: center; }
.gchat-close { background: none; border: none; color: #ffffff; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 2px 6px; }
.gchat-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.gchat-m { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.6; }
.gchat-m.bot { align-self: flex-start; background: var(--navy-800); border: 1px solid rgba(125,140,220,0.2);
  color: var(--ink-200); border-bottom-left-radius: 4px; }
.gchat-m.user { align-self: flex-end; background: linear-gradient(115deg, #b3121f, #e8192c); color: #ffffff; border-bottom-right-radius: 4px; }
.gchat-m a { color: var(--gold-400); font-weight: 600; }
.gchat-m.bot ul { margin: 6px 0 0 16px; padding: 0; }
.gchat-typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.gchat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ind-300); animation: gDot 1.1s ease-in-out infinite; }
.gchat-typing i:nth-child(2) { animation-delay: 0.18s; } .gchat-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes gDot { 0%,100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.gchat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 14px 10px; }
.gchat-chips button { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; cursor: pointer;
  color: var(--gold-400); background: none; border: 1px solid rgba(232,25,44,0.4); border-radius: 999px; padding: 6px 13px;
  transition: background 0.25s ease, color 0.25s ease; }
.gchat-chips button:hover { background: var(--gold-500); color: #ffffff; }
.gchat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(125,140,220,0.18); }
.gchat-input input { flex: 1; background: var(--navy-800); border: 1px solid rgba(125,140,220,0.25); border-radius: 999px;
  color: var(--ink-100); font-size: 0.86rem; padding: 10px 16px; outline: none; }
.gchat-input input:focus { border-color: rgba(232,25,44,0.5); }
.gchat-input button { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(115deg, #b3121f, #e8192c); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.gchat-foot { text-align: center; font-size: 0.68rem; color: var(--ink-500); padding: 6px 0 10px; }
.gchat-foot a { color: var(--gold-400); }
html[data-theme="light"] .gchat-panel { background: #ffffff; border-color: rgba(37,42,99,0.15); box-shadow: 0 40px 90px -35px rgba(20,24,58,0.45); }
html[data-theme="light"] .gchat-m.bot { background: #f2f4fc; border-color: rgba(37,42,99,0.1); color: #2b3160; }
html[data-theme="light"] .gchat-input input { background: #f2f4fc; border-color: rgba(37,42,99,0.15); color: #14183a; }
@media (max-width: 560px) { .gchat { right: 14px; bottom: 86px; } .gchat-panel { bottom: 66px; } .gchat-nudge { display: none; } }

/* ============ Business Risk Simulator ============ */
.sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: 44px; }
.sim-card { border-radius: 20px; overflow: hidden; background: var(--navy-900); border: 1px solid rgba(125,140,220,0.2);
  display: flex; flex-direction: column; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.sim-card:hover { transform: translateY(-6px); border-color: rgba(232,25,44,0.4); box-shadow: 0 28px 60px -28px rgba(232,25,44,0.35); }
.sim-cover { position: relative; height: 110px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(232,25,44,0.28), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(125,140,220,0.22), transparent 55%),
    linear-gradient(150deg, #171d4d, #0a0d24); }
.sim-num { position: absolute; top: 12px; left: 16px; font-family: var(--font-display); font-weight: 800;
  font-size: 0.85rem; color: #ffffff; background: rgba(6,8,25,0.55); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: 4px 10px; }
.sim-tag { position: absolute; top: 12px; right: 16px; font-family: var(--font-display); font-weight: 800;
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold-300); border: 1px solid rgba(232,25,44,0.45);
  border-radius: 999px; padding: 4px 12px; animation: recBlink 2.4s ease-in-out infinite; }
@keyframes recBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.sim-ic { color: #f78d96; transform: scale(1.9); opacity: 0.9; }
.sim-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sim-body h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink-100); line-height: 1.4; margin-bottom: 10px; }
.sim-desc { color: var(--ink-400); font-size: 0.87rem; line-height: 1.65; margin-bottom: 16px; }
.sim-options { display: grid; gap: 9px; }
.sim-opt { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--navy-800); border: 1px solid rgba(125,140,220,0.22); border-radius: 12px;
  color: var(--ink-200); font-size: 0.85rem; font-weight: 500; padding: 11px 14px; cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; }
.sim-opt:hover { border-color: rgba(232,25,44,0.5); transform: translateX(4px); }
.sim-opt-ic { flex: none; color: var(--gold-400); display: flex; }
.sim-card.answered .sim-opt { cursor: default; transform: none; opacity: 0.55; }
.sim-card.answered .sim-opt[data-v="best"] { opacity: 1; border-color: rgba(34,160,107,0.65); background: rgba(34,160,107,0.1); color: #4cd39a; }
.sim-card.answered .sim-opt.chosen[data-v="risk"] { opacity: 1; border-color: rgba(232,25,44,0.65); background: rgba(232,25,44,0.1); color: #f2727e; }
.sim-card.answered .sim-opt.chosen[data-v="ok"] { opacity: 1; border-color: rgba(245,179,1,0.6); background: rgba(245,179,1,0.08); color: #e8b53c; }
.sim-result { margin-top: 16px; border-radius: 14px; padding: 16px 18px; font-size: 0.85rem; line-height: 1.7;
  border: 1px solid rgba(125,140,220,0.25); background: var(--navy-800); color: var(--ink-300);
  animation: nudgeIn 0.45s var(--ease-out); }
.sim-result strong { color: var(--ink-100); }
.sim-result .sim-verdict { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.1em; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.sim-result.v-best .sim-verdict { background: rgba(34,160,107,0.15); color: #4cd39a; }
.sim-result.v-ok .sim-verdict { background: rgba(245,179,1,0.14); color: #e8b53c; }
.sim-result.v-risk .sim-verdict { background: rgba(232,25,44,0.15); color: #f2727e; }
.sim-result a.sim-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #ffffff; text-decoration: none;
  background: linear-gradient(115deg, #b3121f, #e8192c); border-radius: 999px; padding: 9px 18px; }
.sim-result .sim-reset { margin-left: 12px; font-size: 0.76rem; color: var(--ink-500); cursor: pointer; background: none; border: none; text-decoration: underline; }
html[data-theme="light"] .sim-card { background: #ffffff; border-color: rgba(37,42,99,0.12); }
html[data-theme="light"] .sim-opt { background: #f2f4fc; border-color: rgba(37,42,99,0.14); color: #2b3160; }
html[data-theme="light"] .sim-result { background: #f7f8fd; border-color: rgba(37,42,99,0.12); }

.gchat-panel[hidden] { display: none; }

/* Simulator video covers */
.sim-cover.has-video { height: 190px; }
.sim-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sim-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,25,0.35), transparent 40%, rgba(6,8,25,0.45)); pointer-events: none; }
.sim-cover .sim-num, .sim-cover .sim-tag { z-index: 2; }

/* ============ Simulator carousel navigation ============ */
.sim-wrap { position: relative; margin-top: 44px; display: flex; align-items: stretch; gap: 10px; }
.sim-viewport { overflow: hidden; flex: 1; }
.sim-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; -ms-overflow-style: none; scrollbar-width: none; }
.sim-track::-webkit-scrollbar { display: none; }
.sim-track .sim-card { flex: 0 0 min(400px, 86vw); scroll-snap-align: start; }
.sim-arrow { align-self: center; flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(232,25,44,0.45); background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 10px 26px -12px rgba(6,8,25,0.8); z-index: 2; }
.sim-arrow:hover { background: var(--gold-500); color: #ffffff; transform: scale(1.1); }
.sim-arrow[disabled] { opacity: 0.3; pointer-events: none; }
.sim-navrow { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.sim-count { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold-400); }
.sim-dots { display: flex; gap: 8px; }
.sim-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(125,140,220,0.35); transition: width 0.35s cubic-bezier(0.22,1,0.36,1), background 0.35s ease; }
.sim-dots button.on { width: 26px; background: linear-gradient(90deg, #b3121f, #e8192c); }
.sim-hint { font-size: 0.72rem; color: var(--ink-500); letter-spacing: 0.06em; }
html[data-theme="light"] .sim-arrow { background: #ffffff; border-color: rgba(232,25,44,0.4); }
html[data-theme="light"] .sim-dots button { background: rgba(37,42,99,0.25); }
@media (max-width: 700px) { .sim-arrow { display: none; } }
/* cover icon idle float for extra life */
.sim-cover .sim-ic { animation: chipFloat 4.5s ease-in-out infinite; }

/* Simulator scene illustrations */
.sim-cover.has-art { height: 170px; }
.sim-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim-cover.has-art .sim-num, .sim-cover.has-art .sim-tag { z-index: 2; }
.sim-card:hover .sim-art { animation: chipFloat 3.5s ease-in-out infinite; }

/* ============ Simulator v2: animated slider, no scrolling ============ */
.sim-track { overflow: visible; gap: 0; padding: 6px 0 12px; transition: transform 0.75s cubic-bezier(0.22,1,0.36,1); scroll-snap-type: none; }
.sim-track .sim-card { flex: 0 0 100%; max-width: none; opacity: 0.25; transform: scale(0.93);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, box-shadow 0.45s ease; }
.sim-track .sim-card.active { opacity: 1; transform: scale(1); }
.sim-track .sim-card:hover { transform: scale(1); }
@media (min-width: 880px) {
  .sim-track .sim-card { display: grid; grid-template-columns: 0.85fr 1.15fr; }
  .sim-track .sim-card .sim-cover, .sim-track .sim-card .sim-cover.has-art { height: 100%; min-height: 100%; }
}
/* staggered option entrance each time a card becomes active */
.sim-card .sim-opt { opacity: 1; }
.sim-card.active .sim-opt { animation: optIn 0.55s var(--ease-out) both; }
.sim-card.active .sim-opt:nth-child(1) { animation-delay: 0.15s; }
.sim-card.active .sim-opt:nth-child(2) { animation-delay: 0.28s; }
.sim-card.active .sim-opt:nth-child(3) { animation-delay: 0.41s; }
.sim-card.active .sim-opt:nth-child(4) { animation-delay: 0.54s; }
@keyframes optIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sim-card.active h3 { animation: optIn 0.5s var(--ease-out) both; }
.sim-card.active .sim-desc { animation: optIn 0.5s var(--ease-out) 0.08s both; }
/* auto-advance progress bar */
.sim-progress { width: 110px; height: 3px; border-radius: 999px; background: rgba(125,140,220,0.25); overflow: hidden; }
.sim-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b3121f, #e8192c); border-radius: 999px; }
html[data-theme="light"] .sim-progress { background: rgba(37,42,99,0.18); }

/* ============ Simulator v3: static grid, scroll-reveal animations ============ */
.sim-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.sim-grid .sim-card { opacity: 1; transform: none; }
.sim-grid .sim-card.reveal { opacity: 0; transform: translateY(42px) scale(0.985); }
.sim-grid .sim-card.reveal.in { opacity: 1; transform: none; }
.sim-grid .sim-card.in .sim-opt { animation: optIn 0.55s var(--ease-out) both; }
.sim-grid .sim-card.in .sim-opt:nth-child(1) { animation-delay: 0.25s; }
.sim-grid .sim-card.in .sim-opt:nth-child(2) { animation-delay: 0.4s; }
.sim-grid .sim-card.in .sim-opt:nth-child(3) { animation-delay: 0.55s; }
.sim-grid .sim-card.in .sim-opt:nth-child(4) { animation-delay: 0.7s; }
