/* QTG — Quant Technology Group */
:root {
  --bg: #070A0C;
  --bg-2: #0B0F12;
  --bg-3: #0E1316;
  --surface: #11171B;
  --surface-2: #161D22;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.10);
  --line-stronger: rgba(255,255,255,0.16);
  --text: #E7ECEF;
  --text-2: #A8B2B8;
  --text-3: #6B7680;
  --text-4: #4A535A;
  --accent: #00ffff;
  --accent-dim: rgba(0, 255, 255, 0.18);
  --accent-faint: rgba(0, 255, 255, 0.08);
  --cyan: #00ffff;
  --warn: oklch(0.82 0.14 75);
  --danger: oklch(0.72 0.18 25);
  --pos: #00ffff;
  --neg: oklch(0.72 0.18 25);

  --light-bg: #F4F5F3;
  --light-bg-2: #ECEEEA;
  --light-text: #0B0F12;
  --light-text-2: #4B5560;
  --light-line: rgba(11,15,18,0.10);

  --font-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* TYPE */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--text); }
h1 { font-size: clamp(48px, 6.4vw, 88px); letter-spacing: -0.035em; font-weight: 450; }
h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.028em; font-weight: 450; }
h3 { font-size: 22px; letter-spacing: -0.018em; }
h4 { font-size: 15px; letter-spacing: 0; font-weight: 500; }
p { margin: 0; color: var(--text-2); }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 64ch; }
.mono { font-family: var(--font-mono); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,12,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-anchor { position: relative; }

/* TOP ANNOUNCEMENT BAR (auto-rotate) */
.qtg-abar {
  position: relative;
  height: 40px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.qtg-abar .aba-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 0 96px;
  opacity: 0; pointer-events: none;
  transform: translateY(3px);
  transition: opacity .85s cubic-bezier(.4, 0, .2, 1), transform .85s cubic-bezier(.4, 0, .2, 1);
}
.qtg-abar .aba-slide.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.qtg-abar .aba-dot { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 72%, transparent); flex: none; margin-right: -5px; }
.qtg-abar .aba-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qtg-abar .aba-msg b { color: var(--text); font-weight: 500; }
.qtg-abar .aba-lk {
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; white-space: nowrap; flex: none;
}
.qtg-abar .aba-lk svg { width: 13px; height: 13px; }
.qtg-abar .aba-dots {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 6px;
}
.qtg-abar .aba-dots button {
  width: 5px; height: 5px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.16); cursor: pointer; transition: background .2s;
}
.qtg-abar .aba-dots button.on { background: color-mix(in oklab, var(--accent) 65%, transparent); }
.nav-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-size: 13.5px;
  color: color-mix(in oklab, var(--text) 68%, var(--text-2));
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.is-open { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-link svg { opacity: 0.5; }
.nav-link .caret { width:8px; height:8px; opacity:.4; transition: transform .18s ease, opacity .18s; }
.nav-link.is-open .caret { transform: rotate(180deg); opacity:.85; }

/* MEGA MENU */
.mega-backdrop {
  position: fixed; inset: 92px 0 0 0; z-index: 40;
  background: rgba(3,5,6,0.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.mega-backdrop.is-open { opacity:1; pointer-events:auto; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 45;
}
.mega.is-open { opacity:1; pointer-events:auto; transform: translateY(0); }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 33px 32px 22px; display: grid; gap: 24px; }
.mega-head {
  display:flex; justify-content:space-between; align-items:baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.mega-head .coord {
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.14em;
  color: var(--text-4); text-transform: uppercase;
}
.mega-head .coord b { color: var(--accent); font-weight: 500; }
.mega-head .meta {
  font-family: var(--font-mono); font-size:10.5px; color: var(--text-4); letter-spacing:.1em;
}
.mega-grid { display: grid; gap: 28px; }
.mega-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-grid.cols-platforms { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.mega-group { display: flex; flex-direction: column; gap: 10px; }
.mega-group-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--text-4); text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega-item {
  display: grid; grid-template-columns: auto; align-items: center; justify-self: start; align-self: start;
  padding: 8px 24px 8px 12px; gap: 12px; margin: 0 -12px; color: var(--text-2);
  border-radius: 8px;
  transition: color .14s ease, background .14s ease;
}
.mega-item .k { font-size: 14px; color: var(--text); letter-spacing: -0.005em; }
.mega-item .d { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.mega-item .arr { display: none; }
.mega-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.mega-item:hover .k { color: var(--text); }

.mega-feature {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0,255,255,0.10), rgba(0,255,255,0) 55%),
    linear-gradient(180deg, rgba(0,255,255,0.04), rgba(0,255,255,0));
  display: flex; flex-direction: column; gap: 10px;
  min-height: 100%;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mega-feature:hover {
  border-color: rgba(0,255,255,0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -14px rgba(0,255,255,0.4);
}
/* Blueprint grid + diagonal scan lines layered behind content */
.mega-feature::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: -1px -1px, -1px -1px;
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
  pointer-events: none;
}
/* Glyph orb top-right — replaced by per-menu SVG (see FeatureGlyph) */
.mega-feature .ft-glyph {
  position: absolute; top: 12px; right: 12px;
  width: 90px; height: 90px;
  pointer-events: none;
  opacity: 0.85;
}
/* Platforms reads denser — keep it compact so the 6 tiles don't crowd */
.mega-feature .ft-glyph-platforms {
  width: 82px; height: 82px;
  top: 12px; right: 12px;
  opacity: 0.85;
}

/* Platforms glyph — six tiles → one foundation */
.ft-glyph-platforms .pf-tile {
  transform-box: fill-box;
  transform-origin: center;
  animation: pf-tile-float 4s ease-in-out infinite;
}
.ft-glyph-platforms .pf-tile-a { animation-delay: 0s;    }
.ft-glyph-platforms .pf-tile-b { animation-delay: 0.15s; }
.ft-glyph-platforms .pf-tile-c { animation-delay: 0.3s;  }
.ft-glyph-platforms .pf-tile-d { animation-delay: 0.45s; }
.ft-glyph-platforms .pf-tile-e { animation-delay: 0.6s;  }
.ft-glyph-platforms .pf-tile-f { animation-delay: 0.75s; }
@keyframes pf-tile-float {
  0%, 100% { opacity: 0.7;  transform: translateY(0);    }
  50%      { opacity: 1;    transform: translateY(-2px); }
}
.ft-glyph-platforms .pf-riser {
  animation: pf-riser-flow 1.6s linear infinite;
}
.ft-glyph-platforms .pf-riser-1 { animation-delay: 0.4s; }
.ft-glyph-platforms .pf-riser-2 { animation-delay: 0.8s; }
@keyframes pf-riser-flow {
  0%   { stroke-dashoffset: 0;   }
  100% { stroke-dashoffset: -10; }
}
.ft-glyph-platforms .pf-foundation {
  animation: pf-found-pulse 4s ease-in-out infinite;
}
@keyframes pf-found-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1;    filter: drop-shadow(0 0 6px rgba(0,255,255,0.4)); }
}
.ft-glyph-platforms .pf-pulse {
  animation: pf-pulse-slide 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes pf-pulse-slide {
  0%   { transform: translateX(0);    opacity: 0;    }
  10%  {                              opacity: 0.7;  }
  90%  {                              opacity: 0.7;  }
  100% { transform: translateX(100px); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .ft-glyph-platforms .pf-tile,
  .ft-glyph-platforms .pf-riser,
  .ft-glyph-platforms .pf-foundation,
  .ft-glyph-platforms .pf-pulse { animation: none; }
}

/* Insights glyph — clean editorial feed */
.ft-glyph-insights .ins-card {
  transform-box: fill-box;
  transform-origin: center;
}
.ft-glyph-insights .ins-card-1 { animation: ins-float-1 6s ease-in-out infinite; }
.ft-glyph-insights .ins-card-2 { animation: ins-float-2 6s ease-in-out infinite; }
.ft-glyph-insights .ins-card-3 { animation: ins-float-3 6s ease-in-out infinite; }
@keyframes ins-float-1 {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  50%      { transform: translateY(-2px); opacity: 1; }
}
@keyframes ins-float-2 {
  0%, 100% { transform: translateY(0);    opacity: 0.85; }
  50%      { transform: translateY(-1.5px); opacity: 1; }
}
@keyframes ins-float-3 {
  0%, 100% { transform: translateY(0);    opacity: 0.55; }
  50%      { transform: translateY(-1px); opacity: 0.7; }
}
.ft-glyph-insights .ins-sweep {
  animation: ins-sweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes ins-sweep {
  0%   { transform: translateX(0);   opacity: 0; }
  10%  { opacity: 1; }
  60%  { opacity: 1; }
  70%  { transform: translateX(220px); opacity: 0; }
  100% { transform: translateX(220px); opacity: 0; }
}
.ft-glyph-insights .ins-active-dot { transform-box: fill-box; transform-origin: center; }
.ft-glyph-insights .ins-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: ins-ring 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ins-ring {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-glyph-insights .ins-card-1,
  .ft-glyph-insights .ins-card-2,
  .ft-glyph-insights .ins-card-3,
  .ft-glyph-insights .ins-sweep,
  .ft-glyph-insights .ins-ring { animation: none; }
}

/* Services glyph — embedded pods plug into spine */
.ft-glyph-services .svc-pod {
  transform-origin: center;
  transform-box: fill-box;
  animation: svc-pod-in 4s ease-in-out infinite;
  opacity: 0;
}
@keyframes svc-pod-in {
  0%   { opacity: 0; transform: translateX(-6px); }
  20%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ft-glyph-services .svc-pod { animation: none; opacity: 1; }
}

/* Company glyph — org tree */
.ft-glyph-company .co-parent {
  transform-box: fill-box;
  transform-origin: center;
  animation: co-parent 3.6s ease-in-out infinite;
}
@keyframes co-parent {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1;    }
}
.ft-glyph-company .co-child {
  transform-box: fill-box;
  transform-origin: center top;
  animation: co-child 2.4s ease-in-out infinite;
}
@keyframes co-child {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1;    }
}
.ft-glyph-company .co-hub {
  transform-box: fill-box;
  transform-origin: center;
  animation: co-hub 1.8s ease-in-out infinite;
}
@keyframes co-hub {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .ft-glyph-company .co-parent,
  .ft-glyph-company .co-child,
  .ft-glyph-company .co-hub { animation: none; }
}
.mega-feature > *:not(.ft-glyph) { position: relative; z-index: 1; }
.mega-feature .ft-tag { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: .14em; }
.mega-feature h4 { font-size: 18px; font-family: var(--font-sans); letter-spacing: -0.012em; color: var(--text); max-width: calc(100% - 110px); }
.mega-feature p { font-size: 13px; color: var(--text-2); line-height: 1.55; max-width: 38ch; }
.mega-feature .cta {
  margin-top: 14px;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 11.5px; font-family: var(--font-mono); letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.05);
  transition: gap .2s ease, background .2s ease, border-color .2s ease;
}
.mega-feature:hover .cta { gap: 9px; background: rgba(0,255,255,0.12); border-color: rgba(0,255,255,0.5); }
/* Corner arrow — signals the whole card is a link without stealing vertical space */
.mega-feature .ft-arrow {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--accent);
  border: 1px solid rgba(0,255,255,0.28);
  background: rgba(0,255,255,0.05);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mega-feature:hover .ft-arrow {
  transform: translateX(3px);
  background: rgba(0,255,255,0.14);
  border-color: rgba(0,255,255,0.5);
}

.mega-foot {
  border-top: 1px solid var(--line); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-4); letter-spacing: .08em;
}
.mega-foot a { color: var(--text-2); }
.mega-foot a:hover { color: var(--accent); }

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  word-spacing: -0.12em;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #062019;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--line-stronger); }
/* Tertiary action — now reads as a real (ghost) button, not body text.
   Used site-wide as the secondary "Explore / All / Read more" action. */
.btn-link {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  padding: 9px 15px;
  border-radius: 8px;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.btn-link:hover { color: var(--accent); border-color: var(--line-stronger); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 6px; }

/* Team card LinkedIn link */
.team-li {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.team-li:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-faint); }
.team-bio {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(7,10,12,0.92) 0%, rgba(7,10,12,0.55) 45%, rgba(7,10,12,0) 80%);
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.team-bio span {
  font-size: 14px; line-height: 1.5; color: var(--text);
  letter-spacing: -0.005em;
}
.team-card:hover .team-bio { opacity: 1; }

/* CTA glow — slow vertical pulse (breathes up from the base) */
.cta-glow { animation: cta-glow-drift 9s ease-in-out infinite; will-change: transform, opacity; }
@keyframes cta-glow-drift {
  0%   { transform: translateY(0) scale(1);      opacity: 0.72; }
  50%  { transform: translateY(-3%) scale(1.06); opacity: 1;    }
  100% { transform: translateY(0) scale(1);      opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) { .cta-glow { animation: none; } }

/* SECTIONS */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--light-text); }
.section-light p { color: var(--light-text-2); }
.section-light .eyebrow { color: var(--light-text-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section-light .section-head { border-color: var(--light-line); }
.section-head .section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

/* HERO */
.hero {
  position: relative;
  padding: 85px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  width: 1100px; height: 700px;
  left: 50%; top: -260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.005em;
}
.hero-pill .tag {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.hero-pill .tag + span {
  position: relative;
  padding-left: 11px;
}
.hero-pill .tag + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 58ch;
  margin-top: 25px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

/* ── HOME-ONLY centered hero treatment (scoped; does not affect subpages) ── */
.hero-home-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-home-centered .hero-pill { align-self: center; }
.hero-home-centered h1 { margin-left: auto; margin-right: auto; }
.hero-home-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-home-centered .hero-ctas { justify-content: center; }
/* KPI BLOCK — unified across heroes + product pages (StatStrip reuses this).
   Desktop: one clean row of evenly-sized columns with hairline dividers. */
.hero-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.hero-meta-item {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.hero-meta-item:first-child { border-left: none; padding-left: 0; }
.hero-meta-item .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-meta-item .v {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.04;
}
.hero-meta-item .v .accent { color: var(--accent); }
.hero-meta-item .kpi-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
/* When a KPI strip stands alone in a section (product pages) it doesn't need
   the hero's top spacing. */
.kpi-strip { margin-top: 0; padding-top: 0; border-top: none; }
/* Never render an empty KPI box (some ProductHeros pass no meta). */
.hero-meta:empty { display: none !important; }
/* Mobile-only before→after connector (#what) — hidden on desktop. */
.qtg-flow-mobile { display: none; }

/* HERO DASHBOARD */
.hero-product {
  margin-top: 52px;
  position: relative;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card-pad { padding: 24px; }
.section-light .card { background: #fff; border-color: var(--light-line); }

/* PRODUCT/DASHBOARD MOCK */
.dash {
  background: linear-gradient(180deg, #0D1216 0%, #0A0E11 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.dash-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.dash-tabs { display: flex; gap: 4px; }
.dash-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--text-3);
}
.dash-tab.active { background: rgba(255,255,255,0.06); color: var(--text); }
.traffic { display: flex; gap: 6px; }
.traffic span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.1); }

/* PILL TAG */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.pill-accent { background: var(--accent-faint); color: var(--accent); border-color: transparent; }
.pill-warn { background: oklch(0.82 0.14 75 / 0.12); color: var(--warn); border-color: transparent; }
.pill-danger { background: oklch(0.72 0.18 25 / 0.12); color: var(--danger); border-color: transparent; }

/* MISC */
.divider { height: 1px; background: var(--line); }
.section-light .divider { background: var(--light-line); }

/* RULE-COLUMNS for left-sidebars in section heads */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* QTG product badge + hover tooltip (partner cards) */
.qtg-tag { position: relative; display: inline-flex; align-items: center; flex: none; transform: translateY(-1px); }
.qtg-tag .qtg-mark {
  width: 15px; height: 15px; border-radius: 50%; display: block; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.qtg-tag .tip {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(3px);
  background: var(--bg-1, #0b0f12); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease; z-index: 20;
}
.qtg-tag .tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--line-strong);
}
.qtg-tag:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* code */
code, .code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 80px 0 40px;
  color: var(--text-3);
  font-size: 13px;
}

/* simple ticker */
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* live event feed: new event slides in + fades from accent tint */
@keyframes qtgFeedIn {
  0%   { transform: translateY(-8px); opacity: 0; background: rgba(0,255,255,0.06); }
  60%  { transform: translateY(0);    opacity: 1; background: rgba(0,255,255,0.04); }
  100% { transform: translateY(0);    opacity: 1; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes qtgFeedIn { 0%, 100% { transform: none; opacity: 1; background: transparent; } }
  @keyframes qtgPulse  { 0%, 100% { transform: none; opacity: 0.6; } }
}

/* status pulse dot */
@keyframes qtgPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Problem section animations — fragmented cards jitter (3 variants) */
@keyframes qtgJitter0 {
  0%, 100% { transform: rotate(-0.4deg) translate(0, 0); }
  25%      { transform: rotate(-0.6deg) translate(0.5px, -0.5px); }
  50%      { transform: rotate(-0.2deg) translate(-0.5px, 0.5px); }
  75%      { transform: rotate(-0.5deg) translate(0.3px, 0.3px); }
}
@keyframes qtgJitter1 {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  30%      { transform: rotate(0.3deg) translate(-0.4px, 0.4px); }
  60%      { transform: rotate(-0.2deg) translate(0.6px, -0.3px); }
}
@keyframes qtgJitter2 {
  0%, 100% { transform: rotate(0.4deg) translate(0, 0); }
  20%      { transform: rotate(0.7deg) translate(0.4px, 0.4px); }
  55%      { transform: rotate(0.2deg) translate(-0.5px, -0.5px); }
  80%      { transform: rotate(0.5deg) translate(0.3px, -0.3px); }
}

/* HIGH FRICTION tag pulse (warning) */
@keyframes qtgFrictionPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Unified column dots — gentle breathing (alive, calm) */
@keyframes qtgBreathe {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(34,211,238,0.3); }
  50%      { opacity: 1;   box-shadow: 0 0 10px rgba(34,211,238,0.7); }
}
/* Problem→Solution connector: many fragmented streams converge into one */
@keyframes qtgFlow { to { stroke-dashoffset: -120; } }
@keyframes qtgFlowSlow { to { stroke-dashoffset: -60; } }
@keyframes qtgRing {
  0%   { transform: scale(0.5); opacity: 0.55; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes qtgCore {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%      { transform: scale(1.25); opacity: 1; }
}
@keyframes qtgInGlow {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.6; }
}
.qtg-ring  { transform-box: fill-box; transform-origin: center; }
.qtg-core  { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  @keyframes qtgFlow { to { stroke-dashoffset: 0; } }
  @keyframes qtgFlowSlow { to { stroke-dashoffset: 0; } }
  @keyframes qtgRing { 0%,100% { transform: scale(1); opacity: 0; } }
  @keyframes qtgCore { 0%,100% { transform: scale(1); opacity: 0.95; } }
  @keyframes qtgInGlow { 0%,100% { opacity: 0.4; } }
}

.ticker {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.ticker-track {
  display: flex;
  gap: 56px;
  padding: 16px 28px;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.ticker-item .sym { color: var(--text-2); }
.ticker-item .v { color: var(--text); }
.ticker-item .pos { color: var(--accent); }
.ticker-item .neg { color: var(--danger); }

/* Animated grid line */
.line-orbit {
  position: absolute;
  pointer-events: none;
}

/* Page section index aside */
.with-rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
}
.rail {
  position: sticky;
  top: 88px;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail .num { color: var(--text-4); }
.rail .label { display:block; color: var(--text-2); margin-top: 4px; }

/* utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13.5px; }
.text-base { font-size: 15px; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-accent { color: var(--accent); }

@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .with-rail { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .offices-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 80px 0; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 60px; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
}

/* =============================================================
   CONTACT PAGE — form-first hero
   ============================================================= */
.contact-hero { padding-bottom: 80px; }
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}
.contact-hero-msg { padding-top: 8px; position: sticky; top: 100px; }
.contact-hero-msg h1 {
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 18px 0 18px;
}
.contact-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-hero-stats .mono {
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.12em;
}
.contact-hero-stats > div > span:last-child {
  font-family: var(--font-sans);
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--text);
  font-feature-settings: 'tnum' 1;
}
.contact-hero-aside {
  margin-top: 22px;
}

/* The form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 24px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.form-card--done { padding: 32px 28px; }

.form-intro {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.form-title {
  font-size: 21px;
  font-weight: 460;
  letter-spacing: -0.022em;
  color: var(--text);
}
.form-sub {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
  max-width: 44ch;
}
.form-route-ctx {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.form-route-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.form-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.form-route {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
  transition: all 140ms ease;
}
.form-route:hover { color: var(--text); border-color: var(--line-strong); }
.form-route.is-active {
  background: rgba(0,255,255,0.06);
}

.form-message {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,255,255,0.025) 0%, rgba(0,255,255,0) 100%);
  position: relative;
}
.form-message::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.form-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.form-message-count {
  font-size: 9.5px;
  letter-spacing: 0.12em;
}
.form-message-area {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease;
}
.form-message-area:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.045);
}
.form-message-area::placeholder {
  color: var(--text-4);
}
.form-message-foot {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  margin-top: 8px;
  text-transform: uppercase;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-input {
  padding: 11px 13px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.field-input:focus {
  border-color: var(--accent);
  background: rgba(0,255,255,0.04);
}
.field-input::placeholder { color: var(--text-4); }

.form-progress {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.2,0,0,1), opacity 280ms ease;
  opacity: 0;
}
.form-progress.is-open {
  max-height: 1800px;
  opacity: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
  transition: all 120ms ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active {
  background: var(--accent-faint);
  color: var(--accent);
  border-color: var(--accent);
}

.form-textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  min-height: 90px;
  resize: vertical;
}
.form-textarea:focus { border-color: var(--accent); background: rgba(0,255,255,0.04); }

.form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-or {
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.18em;
}
.form-direct { font-size: 13px; }

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.form-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}

@media (max-width: 980px) {
  .contact-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-hero-msg { position: static; }
}
@media (max-width: 720px) {
  .form-card { padding: 20px 18px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-hero-stats { grid-template-columns: 1fr 1fr; }
}
/* Closing-CTA kicker pill — 3px larger on desktop (inline 10.5px holds on mobile) */
@media (min-width: 769px) {
  .cta-kicker { font-size: 12px !important; }
}
