/*
  Theme tokens and global styles
  - Tweak CSS variables below to rebrand quickly
*/

:root {
  --brand-name: "AIQCTS";

  /* Fonts */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  --font-display: var(--font-sans);

  /* Core palette: deep black + two pro accents */
  --color-bg: #000000;            /* pure black */
  --color-surface: #0a0a0a;       /* near black */
  --color-panel: #0f0f0f;         /* near black */
  --color-text: #f3f4f6;          /* gray 100 */
  --color-muted: #9ca3af;         /* gray 400 */

  /* Accents (2 colors max) */
  --color-primary: #7c3aed;       /* electric violet */
  --color-primary-2: #22d3ee;     /* cyan */
  --color-accent: var(--color-primary-2); /* align accent to cyan */
  --color-accent-2: var(--color-primary); /* alias to stay within palette */

  /* Effects */
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.6);
  --radius: 14px;

  /* Layout */
  --bp-desktop: 1200px;
  --bp-laptop: 1024px;
  --bp-tablet: 840px;
  --bp-mobile: 720px;
  --space-1: 6px; --space-2: 10px; --space-3: 14px; --space-4: 18px; --space-5: 24px; --space-6: 32px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--color-primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Card links inherit neutral color to avoid cyan titles */
a.card, a.card:visited { color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }

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

.container {
  width: min(1280px, 96vw);
  margin: 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
h4 { font-weight: 700; }

.lead { font-size: 1.06rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(120%) blur(12px);
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.65));
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.nav, .primary-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.2px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: conic-gradient(from 180deg at 50% 50%, var(--color-primary), var(--color-primary-2), var(--color-primary));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06), var(--shadow-soft);
}
.brand-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); display:block; }
.brand-name { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.2px; 
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover .brand-name { filter: brightness(1.1); }

.nav-links { display: flex; gap: 18px; align-items: center; position: relative; list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--color-muted); font-weight: 700; background: none; border: 0; padding: 10px 8px; cursor: pointer; font: inherit; font-size: 1rem; }
.nav-link:hover, .nav-links a:hover { color: #fff; }
.nav-item { position: relative; }
.has-dropdown .nav-link { display: inline-flex; align-items: center; gap: 8px; }
.chev { width: 10px; height: 10px; transform: rotate(0); transition: transform .2s ease; }
.nav-item.open .chev { transform: rotate(180deg); }

/* Dropdowns / Mega */
.dropdown { position: absolute; top: 42px; left: 0; display: none; visibility: hidden; opacity: 0; transform: translateY(8px); min-width: 260px;
  background: rgba(10,10,10,0.98); border: 1px solid rgba(148,163,184,0.16); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 14px; transition: opacity .15s ease, transform .15s ease; }
.nav-item.open > .dropdown { display: block; visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown a { display: block; color: var(--color-text); padding: 8px 10px; border-radius: 8px; }
.dropdown a:hover { background: rgba(124,58,237,0.12); }
.mega { width: min(1040px, 92vw); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mega h5 { margin: 6px 0; color: var(--color-muted); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: .12em; }
.mega .group { padding: 8px; border-radius: 10px; background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.14); }
.mega .group a { padding: 8px; }

.nav-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; color: #0b1220;
  white-space: nowrap; line-height: 1; align-self: center;
  font-size: 0.96rem; letter-spacing: .2px;
  flex: 0 0 auto; /* don't shrink in flex header */
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-2), var(--color-primary));
  background-size: 200% 200%;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, background-position .2s ease;
  will-change: transform, box-shadow, background-position;
  animation: ctaIdle 8s ease-in-out infinite;
}
/* Hover/focus lift + soft glow */
.nav-cta:hover, .nav-cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 0 4px rgba(34,211,238,0.14);
}
/* Sheen sweep */
.nav-cta::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%;
  width: 40%; height: 140%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0; pointer-events: none;
}
.nav-cta:hover::after, .nav-cta:focus-visible::after { opacity: 1; animation: sheen 1.2s ease; }
/* Strong accessible focus ring */
.nav-cta:focus-visible { outline: 0; }

@keyframes ctaIdle {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes sheen {
  0% { left: -40%; }
  100% { left: 140%; }
}
/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .nav-cta { animation: none; }
  .nav-cta:hover, .nav-cta:focus-visible { transform: none; }
  .nav-cta:hover::after, .nav-cta:focus-visible::after { animation: none; }
}

/* Slightly more compact on smaller screens before mobile drawer */
@media (max-width: 1200px) {
  .nav-cta { padding: 10px 16px; font-size: 0.92rem; }
}
@media (max-width: 1024px) {
  .nav-cta { padding: 9px 14px; font-size: 0.9rem; }
}

.menu-btn { display: none; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,0.25); color: #fff; background: rgba(15,23,42,0.4); }
.menu-icon { width: 18px; height: 18px; }

/* Chat widget */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.25);
  background: radial-gradient(180px 120px at 70% 30%, rgba(34,211,238,0.45), rgba(124,58,237,0.25)), rgba(10,10,10,0.9);
  box-shadow: var(--shadow-hover);
  cursor: pointer; color: #fff;
}
.chat-fab:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.chat-icon { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 60; width: min(380px, 92vw);
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(10,10,10,0.9));
  border: 1px solid rgba(148,163,184,0.2); border-radius: 16px; box-shadow: var(--shadow-hover);
  display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
}
/* Ensure hidden attribute collapses the panel */
.chat-panel[hidden] { display: none !important; }
.chat-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 10px 12px; border-bottom: 1px solid rgba(148,163,184,0.16); }
.chat-title { font-weight: 800; }
.chat-sub { color: var(--color-muted); font-size: .85rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; }
.chat-body { padding: 12px; display: grid; gap: 10px; max-height: 50dvh; overflow: auto; }
.chat-msg { display:flex; gap:8px; }
.chat-msg .bubble { padding: 10px 12px; border-radius: 12px; max-width: 85%; }
.chat-msg.bot .bubble { background: rgba(124,58,237,0.12); border:1px solid rgba(124,58,237,0.25); }
.chat-msg.user { justify-content: end; }
.chat-msg.user .bubble { background: rgba(34,211,238,0.14); border:1px solid rgba(34,211,238,0.28); }
.chat-quick { display:flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.chip-btn { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius: 999px; border:1px solid rgba(148,163,184,0.25); background: rgba(15,23,42,0.6); color:#fff; cursor:pointer; font-weight:700; }
.chip-btn:hover { background: rgba(124,58,237,0.18); }
.chat-input { display:flex; gap:8px; padding: 10px; border-top:1px solid rgba(148,163,184,0.16); }
.chat-input input { flex:1; padding:12px; border-radius:10px; border:1px solid rgba(148,163,184,0.24); background: rgba(15,23,42,0.4); color:#fff; }

@media (max-width: 720px) {
  .chat-panel { right: 12px; bottom: 80px; }
  .chat-fab { right: 12px; bottom: 12px; }
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* Provide a steady, brand-matched backdrop to avoid flash on load */
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124,58,237,0.16), transparent 60%),
    radial-gradient(800px 500px at 10% 60%, rgba(34,211,238,0.14), transparent 60%),
    #000; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(110%) contrast(103%) brightness(80%); }
.hero-scrim { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 70% -10%, rgba(124,58,237,0.16), transparent 60%), radial-gradient(800px 500px at 10% 60%, rgba(34,211,238,0.14), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.7)); mix-blend-mode: overlay; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
.hero-inner.one { grid-template-columns: 1fr; }
.eyebrow { color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; margin: 12px 0 16px; }
.hero p { color: var(--color-muted); font-size: 1.05rem; }

/* Advanced hero (pro) */
.hero-pro .eyebrow { letter-spacing: .18em; }
.hero-pro h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.08; margin-bottom: 14px; }
.hero h1 { white-space: nowrap; }
.gradient-text { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word { opacity: 0; transform: translateY(8px); display: inline-block; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

/* Cinematic letter-by-letter build */
.char { display: inline-block; opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(6px);
  will-change: transform, opacity, filter; }
.char.space { width: .42em; }
@keyframes charIn {
  0% { opacity:0; transform: translateY(24px) scale(0.98); filter: blur(6px); }
  60% { opacity:1; transform: translateY(-4px) scale(1.02); filter: blur(0); }
  100% { opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}
.stat-row { display:flex; flex-wrap:wrap; gap: 18px 24px; margin-top: 16px; }
.stat { background: rgba(10,10,10,0.7); border: 1px solid rgba(148,163,184,0.16); border-radius: 12px; padding: 12px 14px; min-width: 160px; }
.stat b { display:block; font-size: 1.6rem; color: #fff; }
.stat span { color: var(--color-muted); font-weight:600; font-size: .9rem; }

.hero-card {
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.65));
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.9;
}
.hero > .container { position: relative; z-index: 1; }
.hero-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(124,58,237,0.14); border: 1px solid rgba(124,58,237,0.35); color: #e9d5ff; font-weight: 600; font-size: 0.9rem; }

.cta-row { display: flex; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.25); color: #fff; background: rgba(15,23,42,0.6);
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); border: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* Solutions Grid */
.section { padding: 48px 0; }
.section h2 { font-size: clamp(1.8rem, 2.4vw, 2.4rem); margin: 0 0 16px; }
.section p.lead { color: var(--color-muted); margin: 0 0 22px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.65));
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; color: #fff; }
.card p { color: var(--color-muted); font-size: 0.95rem; }

/* Media cards for Solutions */
.card.media { padding: 0; overflow: hidden; display: grid; grid-template-rows: 160px auto; }
.card-media { position: relative; height: 180px; overflow: hidden; background:
  radial-gradient(520px 320px at 80% -10%, rgba(124,58,237,0.22), transparent 60%),
  radial-gradient(520px 320px at 10% 60%, rgba(34,211,238,0.22), transparent 60%),
  #0b0b0b; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(112%) contrast(104%) brightness(90%); transition: transform .25s ease; }
.card-media video { position: relative; z-index: 1; }
.card-media .card-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: opacity .3s ease; }
.card-media.ready img, .card-media.ready video { display: block; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.18)); pointer-events: none; }
.card-media .poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: opacity .3s ease; }
.card-media.ready .poster { opacity: 0; }
.card-media.media-fallback img, .card-media.media-fallback video { display:none; }
.card-body { padding: 14px; }
.card.media:hover .card-media img, .card.media:hover .card-media video { transform: scale(1.03); transition: transform .25s ease; }

/* Fallback if media fails */
.card-media.media-fallback { background: radial-gradient(460px 260px at 80% -10%, rgba(124,58,237,0.22), transparent 60%), radial-gradient(460px 260px at 10% 60%, rgba(34,211,238,0.18), transparent 60%), #0b0b0b; }

.badge { font-size: 0.75rem; color: #0b1220; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); padding: 6px 10px; border-radius: 999px; font-weight: 700; display: inline-block; }

/* Details list */
.details { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.detail-panel { background: rgba(10,10,10,0.7); border: 1px solid rgba(148,163,184,0.16); border-radius: var(--radius); padding: 16px; }
.detail-panel h4 { margin: 0 0 8px; }
.detail-panel ul { margin: 8px 0 0; padding-left: 18px; color: var(--color-muted); }
.detail-panel li { margin: 6px 0; }

/* Footer */
.site-footer { padding: 32px 0; color: var(--color-muted); border-top: 1px solid rgba(148,163,184,0.16); margin-top: 36px; }

/* Mobile drawer */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 50; }
.mobile-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(92vw, 420px); background: rgba(10,10,10,0.98); border-left: 1px solid rgba(148,163,184,0.16); box-shadow: var(--shadow-hover); transform: translateX(100%); transition: transform .24s ease; padding: 16px; overflow:auto; }
.mobile-open .mobile-overlay { display: block; }
.mobile-open .mobile-drawer { transform: translateX(0); }
.acc { width: 100%; text-align: left; color: #fff; background: rgba(10,10,10,0.7); border: 1px solid rgba(148,163,184,0.16); border-radius: 10px; padding: 12px; font-weight: 700; }
.acc + .acc-panel { margin: 8px 0 16px; padding: 10px; border-left: 2px solid rgba(124,58,237,0.5); }
.acc-panel a { display:block; padding: 8px; color: var(--color-text); border-radius: 8px; }
.acc-panel a:hover { background: rgba(124,58,237,0.15); }

/* Responsive */
@media (max-width: 1200px) {
  .mega { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: 1fr; }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
@media (max-width: 840px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { white-space: normal; }
  /* Mobile LCP: show consistent gradient; avoid poster flash */
  .hero-video { display: none; }
}

/* Optional: remove mobile drawer per request */
.mobile-overlay, .mobile-drawer { display: none !important; }
.menu-btn { display: none !important; }

/* Solutions dropdown: full-width flyout (Accenture-like) */
.nav-item.topic-solutions > .dropdown.mega {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 64px);
  width: 100vw; max-height: min(78vh, 720px); overflow-y: auto; z-index: 60;
  padding: 18px max(calc((100vw - 1120px)/2), 4vw);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.nav-item.topic-solutions .mega .group {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.14);
  padding: 12px; border-radius: 10px;
}
.nav-item.topic-solutions .mega h5 { display: block; margin: 6px 0 8px; color: var(--color-muted); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: .12em; }
.nav-item.topic-solutions .mega .group a { display: block; padding: 8px; border-radius: 8px; }
.nav-item.topic-solutions .mega .group a + a { margin-top: 2px; }

@media (max-width: 1200px) {
  .nav-item.topic-solutions > .dropdown.mega { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .nav-item.topic-solutions > .dropdown.mega { grid-template-columns: 1fr; }
}

/* Topic animations (conform to 2-color palette) */
@media (prefers-reduced-motion: no-preference) {
  /* Dropdown open variants */
  @keyframes solutionsFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes securityDrop { 0% { box-shadow: var(--shadow-hover), 0 0 0 0 rgba(34,211,238,0.0); }
                            60% { box-shadow: var(--shadow-hover), 0 0 0 6px rgba(34,211,238,0.10); }
                            100% { box-shadow: var(--shadow-hover), 0 0 0 0 rgba(34,211,238,0.0); } }
  @keyframes healthDrop { 0% { transform: translateY(10px) scale(0.98); opacity: 0; }
                          60% { transform: translateY(0) scale(1.01); opacity: 1; }
                          100% { transform: translateY(0) scale(1); } }

  .nav-item.topic-solutions.open > .dropdown { animation: solutionsFade .22s ease both; }
  .nav-item.topic-security.open > .dropdown { animation: securityDrop .4s ease-in-out both; border-color: rgba(20,184,166,0.4); }
  .nav-item.topic-health.open > .dropdown { animation: healthDrop .28s ease-out both; border-color: rgba(163,230,53,0.35); }

  /* Link hover effects by topic */
  @keyframes aiGlitch {
    0% { text-shadow: 0 0 0 rgba(124,58,237,0.0), 0 0 0 rgba(34,211,238,0.0); transform: translate(0,0); }
    20% { text-shadow: 1px 0 rgba(124,58,237,0.6), -1px 0 rgba(34,211,238,0.6); transform: translate(-0.5px,0); }
    40% { text-shadow: -1px 0 rgba(124,58,237,0.6), 1px 0 rgba(34,211,238,0.6); transform: translate(0.5px,0); }
    60% { text-shadow: 1px 0 rgba(124,58,237,0.6), -1px 0 rgba(34,211,238,0.6); transform: translate(-0.5px,0); }
    80% { text-shadow: -1px 0 rgba(124,58,237,0.6), 1px 0 rgba(34,211,238,0.6); transform: translate(0.5px,0); }
    100% { text-shadow: 0 0 0 rgba(124,58,237,0.0), 0 0 0 rgba(34,211,238,0.0); transform: translate(0,0); }
  }

  @keyframes cloudFloat { from { transform: translateY(0); } to { transform: translateY(-4px); } }

  @keyframes securityScan {
    0% { background: linear-gradient(90deg, rgba(34,211,238,0.0), rgba(34,211,238,0.35), rgba(34,211,238,0.0)); background-size: 0% 1px; background-position: 0 100%; }
    50% { background-size: 100% 1px; }
    100% { background-size: 0% 1px; background-position: 100% 100%; }
  }

  @keyframes healthPulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

  /* Mega menu groups */
  .dropdown .group.topic-ai a:hover { animation: aiGlitch .28s steps(2, end) 1; color: #fff; }
  .dropdown .group.topic-eng a { transition: transform .18s ease; }
  .dropdown .group.topic-eng a:hover { transform: translateX(6px) rotate(-0.5deg); }
  .dropdown .group.topic-operate a { background-image: linear-gradient(to right, rgba(34,211,238,0.8), rgba(124,58,237,0.8)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .25s ease; }
  .dropdown .group.topic-operate a:hover { background-size: 100% 2px; }
  .dropdown .group.topic-cloud a:hover { animation: cloudFloat .28s ease both; }

  /* Security / Health dropdown links */
  .nav-item.topic-security .dropdown a { background-image: linear-gradient(90deg, rgba(34,211,238,0.0), rgba(34,211,238,0.35), rgba(34,211,238,0.0)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; }
  .nav-item.topic-security .dropdown a:hover { animation: securityScan .6s linear 1; color: #e6fffb; }
  .nav-item.topic-health .dropdown a:hover { animation: healthPulse .35s ease; }

  /* Standalone nav links */
  .nav-link.topic-consulting,
  .nav-link.topic-capabilities,
  .nav-link.topic-about,
  .nav-link.topic-contact,
  .nav-link.topic-careers { background-image: linear-gradient(90deg, var(--color-primary-2), var(--color-accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .22s ease; }
  .nav-link.topic-consulting:hover,
  .nav-link.topic-capabilities:hover,
  .nav-link.topic-about:hover,
  .nav-link.topic-contact:hover,
  .nav-link.topic-careers:hover { background-size: 100% 2px; color: #fff; }
}

/* Landing: Marquee ribbon */
.ribbon {
  position: relative; overflow: hidden; border-block: 1px solid rgba(148,163,184,0.16);
  background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(10,10,10,0.8));
}
.ribbon-track { display:flex; gap: 28px; padding: 10px 0; white-space: normal; flex-wrap: wrap; justify-content: center; }
.ribbon .chip { background: rgba(124,58,237,0.14); border: 1px solid rgba(124,58,237,0.35); color: #e9d5ff; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon-animate .ribbon-track { animation: none; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* Landing: Practices rail */
.rail-wrap { overflow-x: auto; scroll-snap-type: x mandatory; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 320px); gap: 14px; padding-bottom: 6px; }
.rail .tile { scroll-snap-align: start; background: rgba(10,10,10,0.85); border: 1px solid rgba(148,163,184,0.16); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.rail .tile h3 { margin: 0 0 8px; font-size: 1.05rem; }
.rail .tile ul { margin: 8px 0 0; padding-left: 18px; color: var(--color-muted); }
.rail .tile a { color: var(--color-text); }

/* Landing: Insights strip */
.insights .card { background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(10,10,10,0.7)); }
.insights .card h4 { margin: 0 0 6px; font-size: 1rem; }
.insights .card small { color: var(--color-muted); }

/* Landing: Partners row */
.logos { display:flex; flex-wrap:wrap; gap: 14px; align-items:center; }
.logo-chip { display:inline-flex; align-items:center; justify-content:center; padding:10px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,0.16); background: rgba(10,10,10,0.7); color:#cbd5e1; font-weight:700; letter-spacing:0.04em; }

/* Landing: CTA band */
.cta-band { background: radial-gradient(600px 400px at 80% -10%, rgba(124,58,237,0.18), transparent 60%), radial-gradient(600px 400px at 10% 60%, rgba(34,211,238,0.14), transparent 60%), #000; border: 1px solid rgba(148,163,184,0.16); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.cta-band h3 { margin: 0 0 8px; }

/* quotes section reverted */

/* Partners logos */
.partner-logos { display:flex; flex-wrap: wrap; gap: 22px 24px; align-items:center; }
.partner { display:inline-flex; align-items:center; justify-content:center; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.16); background: rgba(10,10,10,0.7); box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,0.35); }
.partner img { display:block; height: 28px; width: auto; filter: saturate(120%) contrast(110%); }

/* whatwedo triad reverted */
/* Featured split section */
.split { display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items:center; }
.split .visual { position: relative; border-radius: var(--radius); height: 320px; border: 1px solid rgba(148,163,184,0.16); overflow: hidden; background: radial-gradient(600px 400px at 20% 20%, rgba(124,58,237,0.22), transparent 60%), radial-gradient(600px 400px at 80% 80%, rgba(34,211,238,0.2), transparent 60%), rgba(10,10,10,0.9); }
.split .visual::after { content: ''; position:absolute; inset:0; background: radial-gradient(140px 90px at 60% 40%, rgba(124,58,237,0.25), transparent 60%), radial-gradient(140px 90px at 40% 60%, rgba(34,211,238,0.2), transparent 60%); mix-blend-mode: screen; }
.split .visual > .frame { position:absolute; inset: 14px; border-radius: 12px; border: 1px dashed rgba(148,163,184,0.2); }
.visual-media { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter: saturate(115%) contrast(105%) brightness(65%); }
.visual-caption { position:absolute; left:18px; bottom:18px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.vc-title { background: rgba(0,0,0,0.5); border: 1px solid rgba(148,163,184,0.2); padding:8px 12px; border-radius: 999px; font-weight:800; }
/* Outcomes panel */
.visual-panel { position:absolute; inset: 18px; z-index:1; display:flex; flex-direction:column; gap:12px; justify-content:flex-end; }
.visual-panel h4 { margin:0; }
.visual-panel .bullets { margin:0; padding-left: 18px; color: var(--color-muted); }
.split h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.split p.lead { margin-bottom: 10px; }

/* Feature cards */
.feature-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 18px; border-radius: var(--radius); border: 1px solid rgba(148,163,184,0.16); background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(10,10,10,0.7)); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,0.35); }
.feature-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { color: var(--color-muted); }

/* Stats band */
.stats-band { display:flex; gap: 16px; flex-wrap:wrap; }
.stats-band .stat { flex: 1 1 200px; text-align:left; }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Carousel */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 420px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.case-card { scroll-snap-align: start; background: linear-gradient(180deg, rgba(10,10,10,0.9), rgba(10,10,10,0.7)); border: 1px solid rgba(148,163,184,0.16); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: grid; grid-template-rows: 180px auto; }
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.case-media { position: relative; overflow: hidden; background: rgba(10,10,10,0.86); }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-media.ready img, .case-media.ready video { display: block; }
.case-media .poster { display:none !important; }
.case-media.media-fallback img, .case-media.media-fallback video { display:none; }
.case-body { padding: 14px; }
.carousel-controls { display:flex; gap:8px; }
.carousel-btn { background: rgba(10,10,10,0.7); color:#fff; border:1px solid rgba(148,163,184,0.24); border-radius:10px; padding:8px 12px; cursor:pointer; }
.carousel-btn:hover { background: rgba(124,58,237,0.16); }

@media (max-width: 840px) {
  .case-card { grid-template-rows: 160px auto; }
}
