/* ================================================
   OPENENVELOPE — SECTION LAYOUTS
   ================================================ */

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  transition: background var(--t-mid), backdrop-filter var(--t-mid), border-color var(--t-mid);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5,7,19,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.nav-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.2rem 0;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-mid);
}
.nav-item:hover { color: var(--text-primary); }
.nav-item:hover::after,
.nav-item[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-item[aria-current] { color: var(--text-primary); }

.nav-cta { margin-left: var(--sp-4); }

/* Mobile toggle */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 910;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-fast);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 905;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  transform: translateY(-100%);
  transition: transform var(--t-mid);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav .nav-item { font-size: 1.6rem; font-weight: 800; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: var(--sp-24);
  overflow: hidden;
  position: relative;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-20);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow { margin-bottom: var(--sp-6); }
.hero-h1 {
  font-size: clamp(2.8rem,7vw,5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: var(--sp-5);
  background: linear-gradient(170deg,#fff 45%,rgba(255,255,255,0.45));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem,1.8vw,1.2rem);
  font-weight: 500;
  color: var(--violet-light);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.hero-body {
  font-size: clamp(1rem,1.8vw,1.15rem);
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
  font-weight: 400;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Canvas wrapper */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#hero-canvas {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background: rgba(13,17,36,0.6);
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(124,58,237,0.12);
}

/* ── CAPABILITY STRIP ── */
.cap-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(13,17,36,0.5);
  padding: var(--sp-5) 0;
}
.cap-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.cap-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  white-space: nowrap;
}
.cap-items {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.cap-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.cap-item svg {
  width: 16px; height: 16px;
  stroke: var(--cyan);
  flex-shrink: 0;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

/* ── SERVICE CARD ── */
.svc-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
}
.svc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.svc-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}
.svc-caps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.svc-cap {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
  transition: gap var(--t-fast), opacity var(--t-fast);
}
.svc-card:hover .svc-link { gap: var(--sp-3); }

/* ── AI PIPELINE ── */
.ai-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.pipe-node {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.16);
  border-radius: var(--r-md);
  min-width: 240px;
  width: 100%;
  max-width: 360px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.pipe-node:hover { background: rgba(124,58,237,0.12); border-color: rgba(168,85,247,0.3); }
.pipe-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
}
.pipe-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.pipe-sublabel { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.pipe-arrow {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--violet), var(--blue));
  margin: 0 auto;
  position: relative;
}
.pipe-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--blue);
}

/* ── WHY CARDS ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.why-card {
  padding: var(--sp-6);
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid), transform var(--t-mid);
}
.why-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.why-icon { margin-bottom: var(--sp-4); }
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.why-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── PROCESS TIMELINE ── */
.process-timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; }

/* ── INDUSTRIES ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--sp-4);
}
.ind-card {
  padding: var(--sp-6);
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-lg);
  transition: border-color var(--t-mid), transform var(--t-mid);
  cursor: default;
}
.ind-card:hover { border-color: var(--border-cyan); transform: translateY(-3px); }
.ind-icon { font-size: 1.8rem; margin-bottom: var(--sp-4); line-height: 1; }
.ind-name { font-size: 0.95rem; font-weight: 700; margin-bottom: var(--sp-2); }
.ind-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ── TECH STACK ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-5);
}
.tech-cat-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.tech-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── SECURITY ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-4);
}
.sec-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
}
.sec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,211,238,0.4);
}
.sec-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.sec-text  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-glow-bg {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  filter: blur(60px);
}
.cta-h2 {
  font-size: clamp(2.2rem,6vw,4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-4);
}
.cta-sub {
  font-size: clamp(1.1rem,2vw,1.4rem);
  color: var(--text-secondary);
  margin-bottom: var(--sp-10);
  font-weight: 300;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: var(--sp-20) 0 var(--sp-8);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(4,1fr);
  gap: var(--sp-16);
  margin-bottom: var(--sp-16);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-logo img { height: 38px; }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; max-width: 220px; }
.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}
.footer-col-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-nav-link {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.footer-nav-link:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
/* Hide duplicate legal links in footer bottom copyright row */
.footer-legal { display: none !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 80px;
  position: relative;
}
.page-hero-h1 {
  font-size: clamp(2.5rem,6.5vw,4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-5);
}
.page-hero-desc {
  font-size: clamp(1rem,2vw,1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  font-weight: 400;
}

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-20); align-items: start; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }

/* ── INSIGHTS ── */
.insights-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-10); }
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.ins-card { display: flex; flex-direction: column; padding: var(--sp-8); }
.ins-meta { display: flex; gap: var(--sp-4); font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.ins-cat { color: var(--cyan); font-weight: 600; }
.ins-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin-bottom: var(--sp-3); color: var(--text-primary); }
.ins-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.72; flex: 1; }
.ins-more { margin-top: var(--sp-6); }

/* ── CASE STUDIES ── */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.cs-card { padding: var(--sp-10); }
.cs-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); margin-bottom: var(--sp-4); display: block; }
.cs-title { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--sp-4); }
.cs-body  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

/* ── TESTIMONIALS PLACEHOLDER ── */
.testimonial-placeholder {
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 4rem 2rem;
  text-align: center;
}
.testimonial-placeholder p { font-size: 0.9rem; color: var(--text-muted); }

/* ── CAREERS ── */
.careers-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-5); }
.career-card { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.career-role { font-size: 1.05rem; font-weight: 700; }
.career-dept { font-size: 0.78rem; font-weight: 600; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.career-loc  { font-size: 0.82rem; color: var(--text-muted); }

/* ── 404 ── */
.err-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.err-404 {
  font-size: clamp(7rem,20vw,13rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-title { font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 700; margin-bottom: var(--sp-4); }
.err-desc  { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: var(--sp-10); max-width: 480px; margin-inline: auto; }

/* ── LEGAL ── */
.legal-wrap { max-width: 760px; margin-inline: auto; }
.legal-wrap h2 { font-size: 1.4rem; font-weight: 700; margin: var(--sp-10) 0 var(--sp-4); }
.legal-wrap h3 { font-size: 1.1rem; font-weight: 600; margin: var(--sp-8) 0 var(--sp-3); }
.legal-wrap p,
.legal-wrap li { font-size: 0.94rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--sp-3); }
.legal-wrap ul { padding-left: var(--sp-6); }
.legal-wrap li { list-style: disc; }
.legal-notice {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.875rem;
  color: var(--violet-light);
  margin-bottom: var(--sp-8);
}

/* ── VALUES ── */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.val-card { padding: var(--sp-6); background: rgba(255,255,255,0.015); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--r-md); }
.val-num { font-size: 0.95rem; font-weight: 700; font-family: 'Inter', system-ui, sans-serif; color: var(--cyan); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: var(--sp-3); text-shadow: 0 0 10px rgba(34,211,238,0.3); }
.val-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.val-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }

/* ── CONTACT PAGE ── */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-20); align-items: start; }
.contact-info-block { margin-bottom: var(--sp-8); }
.contact-info-lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin-bottom: var(--sp-2); }
.contact-info-val { font-size: 1.05rem; font-weight: 600; color: var(--cyan); }
.contact-info-val a { color: inherit; transition: opacity var(--t-fast); }
.contact-info-val a:hover { opacity: 0.8; }

/* ════════════════════════════════════════
   HERO FLOATING CARDS VISUAL
   ════════════════════════════════════════ */
.hv-float-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  flex-shrink: 0;
}

/* Base card style */
.hv-card {
  position: absolute;
  background: rgba(11,14,30,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  will-change: transform;
}

/* Card header row */
.hv-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}
.hv-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-dot-violet { background: #A855F7; box-shadow: 0 0 6px rgba(168,85,247,0.7); }
.hv-dot-blue   { background: #3B82F6; box-shadow: 0 0 6px rgba(59,130,246,0.7); }
.hv-dot-cyan   { background: #22D3EE; box-shadow: 0 0 6px rgba(34,211,238,0.7); }

.hv-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #E2E8F0;
  flex: 1;
  letter-spacing: 0.01em;
}
.hv-time {
  font-size: 0.65rem;
  color: #4B5563;
  font-family: 'Courier New', monospace;
}
.hv-card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 7px;
  border-radius: 9999px;
}
.hv-badge-green  { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.25); color: #4ade80; }
.hv-badge-violet { background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.25); color: #A855F7; }
.hv-badge-blue   { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #60a5fa; }

/* ── Card 1: AI Agent (top-left) ── */
.hv-card-1 {
  top: 18px;
  left: 10px;
  width: 210px;
  animation: hvFloat1 5.5s ease-in-out infinite;
  border-color: rgba(168,85,247,0.22);
}
.hv-agent-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.hv-agent-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv-agent-name { font-size: 0.75rem; font-weight: 700; color: #E2E8F0; }
.hv-agent-sub  { font-size: 0.62rem; color: #6B7280; margin-top: 1px; }
.hv-agent-status { margin-left: auto; }
.hv-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: hvPulse 2s ease-out infinite;
}
.hv-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 9px;
}
.hv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #22D3EE);
  border-radius: 9999px;
  animation: hvProgress 3s ease-in-out infinite alternate;
}
.hv-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #6B7280;
}
.hv-val-cyan { color: #22D3EE; font-weight: 700; }

/* ── Card 2: LLM Chat (top-right) ── */
.hv-card-2 {
  top: 0px;
  right: 0px;
  width: 220px;
  animation: hvFloat2 6.5s ease-in-out infinite;
  border-color: rgba(59,130,246,0.22);
}
.hv-chat-bubble {
  font-size: 0.7rem;
  line-height: 1.55;
  padding: 7px 10px;
  border-radius: 10px;
  margin-bottom: 7px;
}
.hv-bubble-user {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  color: #C4B5FD;
  border-radius: 10px 10px 10px 2px;
}
.hv-bubble-ai {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  color: #BFDBFE;
  border-radius: 10px 10px 2px 10px;
}
.hv-typing-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
}
.hv-typing-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.hv-typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #3B82F6;
  animation: hvTyping 1.2s ease-in-out infinite;
}
.hv-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.hv-typing-dots span:nth-child(3) { animation-delay: 0.36s; }

/* ── Card 3: Data Pipeline (center) ── */
.hv-card-3 {
  top: 185px;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  animation: hvFloat3 7s ease-in-out infinite;
  border-color: rgba(34,211,238,0.20);
}
.hv-pipeline-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 11px;
}
.hv-pipe-node {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  padding: 4px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  color: #94A3B8;
  white-space: nowrap;
}
.hv-pipe-arrow {
  font-size: 0.65rem;
  color: #22D3EE;
  flex-shrink: 0;
}
.hv-metrics-row {
  display: flex;
  justify-content: space-between;
}
.hv-metric { text-align: center; }
.hv-metric-val {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #A855F7;
  line-height: 1;
  margin-bottom: 2px;
}
.hv-metric-lbl { font-size: 0.6rem; color: #6B7280; }

/* ── Card 4: Deployment (bottom-left) ── */
.hv-card-4 {
  bottom: 60px;
  left: 8px;
  width: 192px;
  animation: hvFloat4 5s ease-in-out infinite;
  border-color: rgba(168,85,247,0.18);
}
.hv-deploy-steps { display: flex; flex-direction: column; gap: 7px; }
.hv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #94A3B8;
}
.hv-step-done { color: #86EFAC; }
.hv-step-active { color: #A855F7; }
.hv-spin-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.25);
  border-top-color: #A855F7;
  animation: hvSpin 0.8s linear infinite;
}

/* ── Card 5: Performance (bottom-right) ── */
.hv-card-5 {
  bottom: 28px;
  right: 8px;
  width: 188px;
  animation: hvFloat5 6s ease-in-out infinite;
  border-color: rgba(59,130,246,0.20);
}
.hv-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Floating pixel brand accents ── */
.hv-pixel {
  position: absolute;
  border-radius: 3px;
  animation: hvPixelFloat 4s ease-in-out infinite;
}
.hv-px-1 { width: 10px; height: 10px; top: 100px; left: 230px; background: #A855F7; opacity: 0.55; animation-delay: 0s;    animation-duration: 4.2s; }
.hv-px-2 { width: 7px;  height: 7px;  top: 78px;  right: 96px;  background: #3B82F6; opacity: 0.50; animation-delay: 0.8s; animation-duration: 5.1s; }
.hv-px-3 { width: 12px; height: 12px; top: 155px; right: 50px;  background: #22D3EE; opacity: 0.40; animation-delay: 1.4s; animation-duration: 3.8s; }
.hv-px-4 { width: 8px;  height: 8px;  bottom:140px; left: 212px; background: #7C3AED; opacity: 0.45; animation-delay: 2.1s; animation-duration: 4.6s; }
.hv-px-5 { width: 6px;  height: 6px;  bottom:100px; right:130px; background: #22D3EE; opacity: 0.38; animation-delay: 0.5s; animation-duration: 5.5s; }

/* ── SVG connector lines overlay ── */
.hv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hv-card { z-index: 1; }

/* ════ KEYFRAMES ════ */
@keyframes hvFloat1 {
  0%,100% { transform: translateY(0px) rotate(-0.5deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}
@keyframes hvFloat2 {
  0%,100% { transform: translateY(-8px) rotate(0.8deg); }
  50%      { transform: translateY(8px) rotate(-0.8deg); }
}
@keyframes hvFloat3 {
  0%,100% { transform: translateX(-50%) translateY(6px); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@keyframes hvFloat4 {
  0%,100% { transform: translateY(10px) rotate(0.5deg); }
  50%      { transform: translateY(-8px) rotate(-0.5deg); }
}
@keyframes hvFloat5 {
  0%,100% { transform: translateY(-5px) rotate(-0.7deg); }
  50%      { transform: translateY(12px) rotate(0.7deg); }
}
@keyframes hvPixelFloat {
  0%,100% { transform: translateY(0) rotate(0deg);    opacity: var(--op, 0.5); }
  33%      { transform: translateY(-10px) rotate(8deg);  opacity: 0.7; }
  66%      { transform: translateY(5px) rotate(-5deg);   opacity: 0.3; }
}
@keyframes hvPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@keyframes hvProgress {
  from { width: 58%; }
  to   { width: 84%; }
}
@keyframes hvTyping {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%          { transform: translateY(-4px); opacity: 1; }
}
@keyframes hvSpin {
  to { transform: rotate(360deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hv-card, .hv-pixel, .hv-pulse-dot,
  .hv-progress-fill, .hv-typing-dots span,
  .hv-spin-dot {
    animation: none !important;
  }
}

/* Responsive — hide on small screens */
@media (max-width: 1024px) {
  .hv-float-stage { display: none; }
}

/* ── Outcome card additions ── */
.hv-kpi-row { display:flex; justify-content:space-between; margin-bottom:8px; }
.hv-kpi { text-align:center; }
.hv-kpi-val { font-size:0.92rem; font-weight:800; letter-spacing:-0.02em; color:#A855F7; line-height:1; margin-bottom:2px; }
.hv-kpi-lbl { font-size:0.6rem; color:#6B7280; }

.hv-deliver-list { display:flex; flex-direction:column; gap:7px; }
.hv-deliver-item { display:flex; align-items:center; gap:7px; font-size:0.7rem; }
.hv-done   { color:#86EFAC; }
.hv-active { color:#A855F7; }

/* Mini bar chart */
.hv-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 66px;
  margin-top: 10px;
  padding-top: 4px;
}
.hv-bar {
  flex: 1;
  background: rgba(124,58,237,0.22);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
  animation: hvBarPulse 3s ease-in-out infinite alternate;
}
.hv-bar:nth-child(2) { animation-delay: 0.3s; background: rgba(59,130,246,0.25); }
.hv-bar:nth-child(3) { animation-delay: 0.6s; background: rgba(124,58,237,0.20); }
.hv-bar:nth-child(4) { animation-delay: 0.2s; background: rgba(59,130,246,0.28); }
.hv-bar:nth-child(5) { animation-delay: 0.5s; background: rgba(34,211,238,0.22); }
.hv-bar:nth-child(6) { animation-delay: 0.1s; background: rgba(59,130,246,0.30); }
.hv-bar-active {
  background: linear-gradient(to top, #7C3AED, #22D3EE) !important;
  box-shadow: 0 0 10px rgba(34,211,238,0.3);
}
@keyframes hvBarPulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-bar { animation: none; }
}

/* ── Nav logo lockup ──
   logo.png:        1312 × 1199px
   logo-header.png: 400  × 80px

   We render logo.png at natural width 120px inside a wrapper
   that clips to show only the icon (top 75% of the image).
   At 120px wide: total height = 120/1312 * 1199 = 109.7px
   Icon (top 75%) = 82.3px → we clip to 80px height.            */

.nav-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Clipping wrapper — shows only the icon, hides wordmark at bottom */
.nav-icon-wrap {
  display: block;
  width: 64px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* The actual logo image — rendered at 64px wide, auto height */
.nav-icon-wrap .nav-icon-img {
  display: block !important;
  width: 64px !important;
  height: auto !important;
  max-width: none !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Wordmark */
.nav-wordmark-img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0;
  margin-left: -6px !important;
}

@media (max-width: 768px) {
  .nav-icon-wrap           { width: 52px; height: 40px; }
  .nav-icon-wrap .nav-icon-img { width: 52px !important; }
  .nav-wordmark-img        { height: 32px !important; margin-left: -4px !important; }
  .nav-logo-lockup         { gap: 0px; }
}

/* ══════════════════════════════════════════════
   GLOBAL SPACING FIX — Universal panel padding
   ══════════════════════════════════════════════ */

/* Card base */
.card, .card-glass {
  padding: 1.5rem 1.75rem;
}

/* Case study cards */
.cs-full-card {
  padding: 2rem 2.5rem;
}

/* Service and capability cards */
.svc-card,
.cloud-svc-card,
.de-svc-card,
.ai-cap-card,
.web-type-card,
.culture-card,
.tech-cat-card {
  padding: 1.5rem 1.75rem;
}

/* Smaller utility cards */
.val-card,
.val-card-lg,
.why-card,
.ind-card,
.phil-card,
.career-card {
  padding: 1.25rem 1.5rem;
}

/* Process steps */
.process-step,
.proc-step,
.de-proc-step,
.web-proc-step {
  padding: 1rem 1.25rem;
}

/* Split section gap */
.split {
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* Section vertical padding */
.section {
  padding: var(--section-y) 0;
}

/* Container horizontal padding */
.container {
  padding-inline: clamp(1rem, 3.5vw, 1.75rem);
}

/* Responsive */
@media (max-width: 768px) {
  .card, .card-glass,
  .cs-full-card,
  .svc-card,
  .cloud-svc-card,
  .de-svc-card,
  .ai-cap-card,
  .culture-card,
  .tech-cat-card {
    padding: 1.25rem 1.25rem;
  }
  .split { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .card, .card-glass,
  .cs-full-card {
    padding: 1rem 1rem;
  }
  .container { padding-inline: 1rem; }
}

/* ── Footer logo lockup (icon + wordmark) ── */
.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Icon wrapper — same crop approach as nav */
.footer-icon-wrap {
  display: block;
  width: 50px;
  height: 42px;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
}
.footer-icon-wrap .footer-icon-img {
  display: block !important;
  width: 50px !important;
  height: auto !important;
  max-width: none !important;
  position: absolute;
  top: 0; left: 0;
}

/* Wordmark */
.footer-wordmark-img {
  display: block !important;
  height: 32px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0;
  opacity: 0.9;
  margin-left: -5px !important;
}

/* Hover */
.footer-logo-lockup:hover .footer-wordmark-img { opacity: 1; }

@media (max-width: 768px) {
  .footer-icon-wrap { width: 34px; height: 30px; }
  .footer-icon-wrap .footer-icon-img { width: 34px !important; }
  .footer-wordmark-img { height: 22px !important; }
}

/* ── Footer tagline — always visible on all screen sizes ── */
.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 10px;
}

/* Footer brand always full-width on small screens */
@media (max-width: 640px) {
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-tagline {
    max-width: 100%;
    font-size: 0.84rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 400px) {
  .footer-top {
    grid-template-columns: 1fr !important;
  }
  .footer-tagline {
    max-width: 100%;
  }
}

/* ── Hero canvas: always visible, contained within hero ── */
#hero-canvas {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* ── Hero background: contain within hero section on all screens ── */
.idx-hero {
  overflow: hidden;
  position: relative;
}
.idx-hero-bg,
.idx-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 800px) {
  /* Ensure hero has enough height for the envelope to render clearly */
  .idx-hero {
    min-height: 100vh;
  }
  /* Hero inner sits above canvas */
  .idx-hero-inner {
    position: relative;
    z-index: 2;
  }
  /* Envelope canvas stays visible at good opacity and horizontally centered */
  #hero-canvas {
    opacity: 0.75 !important;
    max-width: none !important;
  }
  .fcard {
    overflow: hidden;
  }
}
