@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-rev {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

body { margin: 0; padding: 0; overflow-x: hidden; }

#theme-root {
  background-color: #08101A;
  color: #EEF2F5;
  transition: background-color 0.7s cubic-bezier(0.4,0,0.2,1), color 0.7s cubic-bezier(0.4,0,0.2,1);
  min-height: 100vh;
}
#theme-root.light { background-color: #F8FAFC; color: #0F172A; }

.bg-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.dark-layer { display: block; }
.light-layer { display: none; }
#theme-root.light .dark-layer { display: none; }
#theme-root.light .light-layer { display: block; }

.site-bg { background-color: #08101A; }
#theme-root.light .site-bg { background-color: #F8FAFC; }

#site-nav {
  border-bottom-color: rgba(255,255,255,0.05);
  background: transparent;
  transition: border-color 0.5s, background 0.5s;
}
#theme-root.light #site-nav {
  border-bottom-color: #e2e8f0;
  background: rgba(255,255,255,0.6);
}

#mobile-menu { border-bottom-color: rgba(255,255,255,0.05); }
#theme-root.light #mobile-menu { border-bottom-color: #e2e8f0; }

.nav-link { position: relative; color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.nav-link::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:1px; background:#2ABFBF; transition:width 0.3s ease; }
.nav-link:hover { color: #2ABFBF; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #2ABFBF; }
.nav-link.active::after { width: 100%; }
#theme-root.light .nav-link { color: #64748b; }

.logo-text { color: #EEF2F5; }
#theme-root.light .logo-text { color: #0F172A; }

.logo-icon { filter: brightness(1.1); }

.hamburger-line { background: #EEF2F5; transition: background 0.5s; }
#theme-root.light .hamburger-line { background: #0F172A; }

.main-heading { color: #ffffff; }
#theme-root.light .main-heading { color: #0F172A; }
.hero-sub { color: #94a3b8; }
#theme-root.light .hero-sub { color: #475569; }

.btn-primary { background:white; color:#0F172A; position:relative; overflow:hidden; }
.btn-primary .btn-fill { position:absolute; inset:0; background:#2ABFBF; transform:translateY(100%); transition:transform 0.3s ease; }
.btn-primary:hover .btn-fill { transform:translateY(0); }
.btn-primary span { position:relative; z-index:1; }
#theme-root.light .btn-primary { background:#0F172A; color:white; }

.btn-secondary { border-color:rgba(255,255,255,0.1); color:#EEF2F5; background:transparent; transition:background 0.3s; text-decoration:none; display:inline-block; }
.btn-secondary:hover { background:rgba(255,255,255,0.05); }
#theme-root.light .btn-secondary { border-color:#e2e8f0; color:#0F172A; }
#theme-root.light .btn-secondary:hover { background:rgba(0,0,0,0.03); }

.feature-card { background:#08101A; border-color:rgba(255,255,255,0.05); transition:background 0.4s ease; }
.feature-card:hover { background:#0F1E2E; }
#theme-root.light .feature-card { background:#ffffff; border-color:#e2e8f0; box-shadow:0 2px 16px rgba(0,0,0,0.04); }
#theme-root.light .feature-card:hover { background:#f8fafc; }

.card-label { color:#7A9BAD; }
#theme-root.light .card-label { color:#64748b; }
.card-body { color:#7A9BAD; }
#theme-root.light .card-body { color:#475569; }
.card-heading { color:#EEF2F5; }
#theme-root.light .card-heading { color:#0F172A; }

.section-label { color:#1A9090; }
.section-heading { color:#EEF2F5; }
#theme-root.light .section-heading { color:#0F172A; }
.section-muted { color:#7A9BAD; }
#theme-root.light .section-muted { color:#64748b; }

.divider { border-top-color: rgba(255,255,255,0.05); }
#theme-root.light .divider { border-top-color: #e2e8f0; }

.gap-grid { background: rgba(255,255,255,0.05); }
#theme-root.light .gap-grid { background: #e2e8f0; }

.why-grid-border { border-color: #0F1E2E; }
#theme-root.light .why-grid-border { border-color: #e2e8f0; }
#theme-root.light .why-icon-ring { border-color: rgba(26,144,144,0.4) !important; }

.quote-section { background:#0A1520; }
#theme-root.light .quote-section { background:#F0F4F8; }
.quote-text { color:#2ABFBF; }
#theme-root.light .quote-text { color:#0D6E6E; }

.cta-section { background:#08101A; }
#theme-root.light .cta-section { background:#F8FAFC; }
.site-footer { background:#08101A; border-top-color:rgba(255,255,255,0.05); }
#theme-root.light .site-footer { background:#F8FAFC; border-top-color:#e2e8f0; }
.footer-link { color:#7A9BAD; text-decoration:none; transition:color 0.3s; }
.footer-link:hover { color:#EEF2F5; }
#theme-root.light .footer-link { color:#5B7A8C; }
#theme-root.light .footer-link:hover { color:#0F172A; }
.footer-copy { color:#7A9BAD; }
#theme-root.light .footer-copy { color:#94a3b8; }

.footer-social { display:flex; align-items:center; gap:1rem; }
.footer-social a { color:#7A9BAD; transition:color 0.3s; display:inline-flex; }
.footer-social a:hover { color:#2ABFBF; }
#theme-root.light .footer-social a { color:#5B7A8C; }
#theme-root.light .footer-social a:hover { color:#0D6E6E; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

.s1 { animation:fade-up 0.7s ease forwards 0.05s; opacity:0; }
.s2 { animation:fade-up 0.7s ease forwards 0.2s;  opacity:0; }
.s3 { animation:fade-up 0.7s ease forwards 0.35s; opacity:0; }
.s4 { animation:fade-up 0.7s ease forwards 0.5s;  opacity:0; }

.dark-grid { background-image:linear-gradient(#1E293B 1px,transparent 1px),linear-gradient(90deg,#1E293B 1px,transparent 1px); background-size:50px 50px; }
.light-grid { background-image:linear-gradient(#CBD5E1 1px,transparent 1px),linear-gradient(90deg,#CBD5E1 1px,transparent 1px); background-size:50px 50px; }
.grain { background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode:overlay; }

#toggle-circle { transition:background 0.5s, transform 0.5s; }
#toggle-mask   { transition:background 0.5s, transform 0.5s; }

#toggle-circle { background:#facc15; transform:scale(1.1); }
#toggle-mask   { background:#08101A; transform:translate(8px,-8px); }
#theme-root.light #toggle-circle { background:#0f172a; transform:scale(1); }
#theme-root.light #toggle-mask   { background:#F8FAFC; transform:translate(0,0); }

/* ── Page header (interior pages) ── */
.page-header { padding-top: 7rem; padding-bottom: 3rem; position: relative; }
.page-eyebrow { color:#1A9090; }
.page-title { color:#EEF2F5; }
#theme-root.light .page-title { color:#0F172A; }
.page-lede { color:#7A9BAD; }
#theme-root.light .page-lede { color:#475569; }

/* ── Numbered component row (use-case pages) ── */
.component-row { border-color: rgba(255,255,255,0.06); }
#theme-root.light .component-row { border-color: #e2e8f0; }
.component-num { color:#1A9090; }

/* ── Outcome pill ── */
.outcome-pill { border-color: rgba(42,191,191,0.3); background: rgba(42,191,191,0.06); color:#2ABFBF; }
#theme-root.light .outcome-pill { border-color: rgba(13,110,110,0.25); background: rgba(13,110,110,0.06); color:#0D6E6E; }

/* ── Article card ── */
.article-card { text-decoration:none; display:block; }
.article-date { color:#1A9090; }
.article-placeholder-badge { background: rgba(224,90,78,0.12); color:#E05A4E; border-color: rgba(224,90,78,0.3); }

/* ── Icon circles ── */
.icon-circle { border-color: rgba(26,144,144,0.3); background: rgba(26,144,144,0.06); transition: background 0.4s, border-color 0.4s; }
.icon-circle svg { color: #2ABFBF; }
.feature-card:hover .icon-circle  { background: #1A9090; border-color: #1A9090; }
.feature-card:hover .icon-circle svg { color: #ffffff; }
#theme-root.light .icon-circle { border-color: rgba(13,110,110,0.3); background: rgba(13,110,110,0.05); }
#theme-root.light .icon-circle svg { color: #0D6E6E; }

.icon-circle-solid { background:#1A9090; border-color:#1A9090; }
.icon-circle-solid svg { color:#ffffff; }

/* ── Flow diagram (Where We Sit / Agent-to-Agent) ── */
.flow-node { background:#08101A; border-color: rgba(255,255,255,0.08); }
#theme-root.light .flow-node { background:#ffffff; border-color:#e2e8f0; box-shadow:0 2px 16px rgba(0,0,0,0.04); }
.flow-node-center { border-color: rgba(26,144,144,0.5); background: rgba(26,144,144,0.08); }
#theme-root.light .flow-node-center { border-color: rgba(13,110,110,0.4); background: rgba(13,110,110,0.05); }
.flow-arrow { color: #1A9090; }
#theme-root.light .flow-arrow { color: #0D6E6E; }


/* ── Flow arrow responsive swap (rebuild-independent) ── */
.flow-arrow-down { display: inline; }
.flow-arrow-right { display: none; }
@media (min-width: 768px) {
  .flow-arrow-down { display: none; }
  .flow-arrow-right { display: inline; }
}

/* ── Placeholder stat badge ── */
.stat-placeholder { border-color: rgba(224,90,78,0.35); }
.stat-num-placeholder { color: #E05A4E; font-style: italic; }
.needs-data-badge { background: rgba(224,90,78,0.12); color:#E05A4E; border-color: rgba(224,90,78,0.3); }

/* ── Platform diagram ── */
.platform-frame { border-color: rgba(255,255,255,0.1); }
#theme-root.light .platform-frame { border-color: #e2e8f0; }
.control-panel-bar { background: rgba(26,144,144,0.08); border-color: rgba(26,144,144,0.35); }
#theme-root.light .control-panel-bar { background: rgba(13,110,110,0.05); border-color: rgba(13,110,110,0.3); }
.data-lake-bar { background: rgba(224,90,78,0.06); border-color: rgba(224,90,78,0.3); }
#theme-root.light .data-lake-bar { background: rgba(224,90,78,0.04); border-color: rgba(224,90,78,0.25); }
.diagram-connector { background: rgba(255,255,255,0.15); }
#theme-root.light .diagram-connector { background: #cbd5e1; }
.diagram-io-label { color:#7A9BAD; }
#theme-root.light .diagram-io-label { color:#64748b; }

/* ── Pillar card ── */
.pillar-mark { color:#1A9090; border-color: rgba(26,144,144,0.35); }
#theme-root.light .pillar-mark { color:#0D6E6E; border-color: rgba(13,110,110,0.3); }

/* ── Hero convergence visual ── */
.converge-line { stroke: rgba(42,191,191,0.4); }
#theme-root.light .converge-line { stroke: rgba(13,110,110,0.3); }

/* ══════════ ANIMATION SYSTEM v2 ══════════ */

/* Staggered reveal, extended */
.s5 { animation:fade-up 0.7s ease forwards 0.65s; opacity:0; }
.s6 { animation:fade-up 0.7s ease forwards 0.8s;  opacity:0; }

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes float-y-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(42,191,191,0); }
  50% { box-shadow: 0 0 32px rgba(42,191,191,0.18); }
}
@keyframes gradient-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}
@keyframes count-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes underline-grow {
  from { width: 0; }
  to { width: 100%; }
}

.float-el { animation: float-y 6s ease-in-out infinite; }
.float-el-slow { animation: float-y-slow 8s ease-in-out infinite; }

/* Hover-lift interactive card */
.lift-card { transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, box-shadow 0.4s; }
.lift-card:hover { transform: translateY(-6px); border-color: rgba(26,144,144,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 30px rgba(26,144,144,0.08); }
#theme-root.light .lift-card:hover { box-shadow: 0 20px 40px rgba(15,23,42,0.08), 0 0 30px rgba(13,110,110,0.06); }

/* Animated connector flow (dashed line with moving dash) */
.flow-line-animated { stroke-dasharray: 6 6; animation: dash-flow 1.2s linear infinite; }

/* Moving-dot connector (CSS-only, for straight lines) */
.pulse-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #2ABFBF; box-shadow: 0 0 10px #2ABFBF; }

/* Nav link active underline grow-in */
.nav-link.active::after { animation: underline-grow 0.4s ease forwards; }

/* Page-header mini orbital accent (inner pages) */
.mini-orbit { position: absolute; top: 50%; right: 4%; transform: translateY(-50%); pointer-events: none; opacity: 0.5; }
@media (max-width: 1024px) { .mini-orbit { display:none; } }

/* Gradient text sheen on hover */
.sheen-text { background: linear-gradient(90deg, #E05A4E 0%, #f8a08f 50%, #E05A4E 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheen-text:hover { animation: gradient-drift 2.5s ease infinite; }

/* Icon circle hover spin-in (extends existing .icon-circle) */
.icon-circle { transition: background 0.4s, border-color 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.lift-card:hover .icon-circle { transform: scale(1.12) rotate(-6deg); }

/* Number ticker placeholder blink (keeps placeholder honesty visible but alive) */
.stat-num-placeholder { animation: count-blink 2.4s ease-in-out infinite; }

/* Page transition entrance */
.page-enter { animation: fade-up 0.6s cubic-bezier(0.16,1,0.3,1) both; }

/* Nav bar sub-page indicator dot */
.nav-dot { width:5px; height:5px; border-radius:50%; background:#2ABFBF; display:inline-block; margin-right:6px; opacity:0; transition:opacity 0.3s; }
.nav-link.active .nav-dot { opacity:1; }

/* Diagram flowing gradient line (for connector bars) */
.flow-gradient-line {
  background: linear-gradient(90deg, transparent, rgba(42,191,191,0.6), transparent);
  background-size: 200% 100%;
  animation: gradient-drift 3s linear infinite;
}

@keyframes dash-flow-y {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.pulse-dot { position: absolute; }

/* ══════════ HORIZONTAL SCROLL CHOREOGRAPHY ══════════ */
.horiz-pin-wrap { position: relative; }
.horiz-pin-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center;padding-top: var(--nav-h, 101px); box-sizing: border-box; }
.horiz-track { display: flex; will-change: transform; height: 100%; }
.horiz-panel { flex-shrink: 0; width: 100vw; height: 100%; display: flex; align-items: center; padding: 0 6vw; }
.horiz-progress { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; }
.horiz-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background 0.3s, width 0.3s; }
.horiz-progress-dot.active { background: #2ABFBF; width: 20px; border-radius: 3px; }

@media (max-width: 1023px) {
  .horiz-pin-wrap { height: auto !important; }
  .horiz-pin-inner { position: static; height: auto; overflow: visible; display: block;max-width:1023px }
  .horiz-track { display: block; transform: none !important; height: auto; }
  .horiz-panel { width: 100%; height: auto; padding: 2rem 1.5rem; }
  .horiz-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .horiz-pin-wrap { height: auto !important; }
  .horiz-pin-inner { position: static; height: auto; overflow: visible; display: block; }
  .horiz-track { display: block; transform: none !important; height: auto; }
  .horiz-panel { width: 100%; height: auto; padding: 2rem 1.5rem; }
  .horiz-progress { display: none; }
  .float-el, .float-el-slow, .ping-badge, .spin-cta { animation: none !important; }
}

/* Horizontal slide-in reveal (used once, for closing CTA) */
.reveal-x { opacity: 0; transform: translateX(70px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-x.visible { opacity: 1; transform: translateX(0); }

/* ══════════ CONNECTED SCROLL CHOREOGRAPHY (What's Next) ══════════ */
.connector-h { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 0.7s ease; }
.connector-h.visible { stroke-dashoffset: 0; }

/* ══════════ TICKER (Built For band) ══════════ */
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee-scroll 18s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { 
  .ticker-track { animation: none; } 
  .float-el-slow { animation: none !important; 
  }
.pulse-dot { display: none !important; } }

/* ===== FORM FIELDS IN CONTACT FORM ===== */
.form-field { border-color: rgba(255,255,255,0.35); transition: border-color .3s, box-shadow .3s; }
.form-field:focus { border-color: #2ABFBF; box-shadow: 0 1px 0 0 #2ABFBF; }
#theme-root.light .form-field { border-color: #64748b; }
#theme-root.light .form-field:focus { border-color: #0D6E6E; box-shadow: 0 1px 0 0 #0D6E6E; }

/* ==== THEME BUTTON FOR ALL SIX PAGES==== */
.theme-btn { border-color: rgba(255,255,255,0.1); }
.theme-btn:hover { background: rgba(255,255,255,0.05); }
.theme-btn-label { color: #EEF2F5; }
#theme-root.light .theme-btn { border-color: #cbd5e1; }
#theme-root.light .theme-btn:hover { background: rgba(15,23,42,0.05); }
#theme-root.light .theme-btn-label { color: #0F172A; }

/* === HORIZONTAL PROGRESS DOTS === */
#theme-root.light .horiz-progress-dot { background: rgba(15,23,42,0.2); }
#theme-root.light .horiz-progress-dot.active { background: #0D6E6E; }

/* ===== HERO LABELS ===== */
.hero-label { fill: #94a3b8; }
#theme-root.light .hero-label { fill: #475569; }

/* ==== NO SCRIPTING SUPPORT ==== */

@media (scripting: none) {
  .reveal, .reveal-x { opacity: 1; transform: none; }
  .connector-h { stroke-dashoffset: 0; }
}

/* ===== RESPONSIVE ADJUSTMENTS FOR DESKTOP===== */

@media (min-width: 1024px) and (max-height: 800px) {
  .horiz-panel .lift-card { padding: 2rem; }
  .horiz-panel .icon-circle { margin-bottom: 1rem; }
}

/* ══════════ CIRCULAR SYSTEM FLOW DIAGRAM ══════════ */
.flow-diagram-wrap { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 1 / 1; }
.flow-diagram-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.flow-orbit-ring { stroke: rgba(255,255,255,0.06); }
#theme-root.light .flow-orbit-ring { stroke: rgba(15,23,42,0.06); }

.flow-path { fill: none; stroke-width: 1.5; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1s cubic-bezier(0.65,0,0.35,1); }
.flow-path-in  { stroke: rgba(224,90,78,0.45); }
#theme-root.light .flow-path-in { stroke: rgba(224,90,78,0.35); }
.flow-path-out { stroke: rgba(42,191,191,0.45); }
#theme-root.light .flow-path-out { stroke: rgba(13,110,110,0.35); }

.flow-diagram-wrap.visible .flow-path-in  { stroke-dashoffset: 0; transition-delay: 0s; }
.flow-diagram-wrap.visible .flow-path-out { stroke-dashoffset: 0; transition-delay: 1.2s; }

.flow-path-dot { opacity: 0; transition: opacity 0.4s ease; }
.flow-diagram-wrap.visible .flow-dot-in  { opacity: 1; transition-delay: 1s; }
.flow-diagram-wrap.visible .flow-dot-out { opacity: 1; transition-delay: 2.2s; }

.flow-hub-circle { fill: #08101A; fill-opacity: 0.55; }
#theme-root.light .flow-hub-circle { fill: #F8FAFC; fill-opacity: 0.65; }
.flow-hub-ring { fill: none; stroke-width: 1.5; stroke: rgba(42,191,191,0.4); }
#theme-root.light .flow-hub-ring { stroke: rgba(13,110,110,0.35); }
.flow-hub-group { opacity: 0; transform: translate(400px,400px) scale(0.6); transform-origin: 0 0; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1); transition-delay: 0.8s; }
.flow-diagram-wrap.visible .flow-hub-group { opacity: 1; transform: translate(400px,400px) scale(1); }

.flow-node-label { position: absolute; width: 130px; text-align: center; transform: translate(-50%,-50%) scale(0.7); opacity: 0; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1); z-index: 2; }
.flow-diagram-wrap.visible .flow-node-label { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.flow-node-1 { transition-delay: 0.1s; }
.flow-node-2 { transition-delay: 0.25s; }
.flow-node-3 { transition-delay: 0.4s; }
.flow-node-4 { transition-delay: 1.5s; }
.flow-node-5 { transition-delay: 1.65s; }
.flow-node-6 { transition-delay: 1.8s; }

.flow-hub-label { position: absolute; left: 50%; top: 50%; width: 140px; text-align: center; transform: translate(-50%, 22px) scale(0.6); opacity: 0; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1); transition-delay: 0.9s; z-index: 2; }
.flow-diagram-wrap.visible .flow-hub-label { transform: translate(-50%, 22px) scale(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .flow-path { transition: none; stroke-dashoffset: 0; }
  .flow-path-dot { display: none; }
.flow-hub-group { transition: none; opacity: 1; transform: translate(400px,400px) scale(1); }
  .flow-node-label { transition: none; opacity: 1; transform: translate(-50%,-50%) scale(1); }
  .flow-hub-label { transition: none; opacity: 1; transform: translate(-50%, 22px) scale(1); }
}

.flow-diagram-wrap-mobile { max-width: 460px; aspect-ratio: 600 / 760; }

.flow-node-label-sm { width: clamp(64px, 24vw, 92px); }
.flow-node-label-sm h4 { font-size: clamp(9.5px, 2.6vw, 10px); line-height: 1.15; }
.flow-node-label-sm .icon-circle { width: clamp(26px, 8vw, 32px); height: clamp(26px, 8vw, 32px); }
.flow-node-label-sm .icon-circle svg { width: clamp(12px, 3.6vw, 14px); height: clamp(12px, 3.6vw, 14px); }

.flow-hub-group-m { opacity: 0; transform: translate(300px,380px) scale(0.6); transform-origin: 0 0; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1); transition-delay: 0.8s; }
.flow-diagram-wrap.visible .flow-hub-group-m { opacity: 1; transform: translate(300px,380px) scale(1); }

.flow-hub-label-m {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(84px, 26vw, 108px);
  text-align: center;
  transform: translate(-50%, 14px) scale(0.6);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  transition-delay: 0.9s;
  z-index: 2;
}
.flow-hub-label-m h4 { font-size: clamp(9px, 2.6vw, 11px) !important; }
.flow-hub-label-m p { font-size: clamp(8px, 2.1vw, 9px) !important; }
.flow-diagram-wrap.visible .flow-hub-label-m { transform: translate(-50%, 14px) scale(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .flow-hub-group-m { transition: none; opacity: 1; transform: translate(300px,380px) scale(1); }
  .flow-hub-label-m { transition: none; opacity: 1; transform: translate(-50%, 14px) scale(1); }
}

/* ══════════ FLUID NAV SCALING (1024px → 1920px) ══════════ */
@media (min-width: 1200px) {
  .nav-links-row {
    gap: clamp(0.5rem, 1.4vw, 2rem);
    font-size: clamp(9px, 0.85vw, 11px);
    letter-spacing: clamp(0.03em, 0.6vw, 0.15em);
  }
  .nav-cta-btn {
    padding-left: clamp(0.75rem, 1.6vw, 1.5rem);
    padding-right: clamp(0.75rem, 1.6vw, 1.5rem);
    font-size: clamp(9px, 0.8vw, 10px);
  }
  .nav-toggle-btn {
    padding-left: clamp(0.5rem, 1vw, 1rem);
    padding-right: clamp(0.5rem, 1vw, 1rem);
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
  }
  .nav-logo-text {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  }
}

/* ══════════ NAV: STOP THE 3 GROUPS FROM COMPRESSING INTO EACH OTHER ══════════ */
@media (min-width: 1024px) {
  #site-nav > a:first-child,
  #site-nav .nav-links-row,
  #site-nav > div:last-child {
    flex-shrink: 0;
  }
  #site-nav { gap: 1rem; }
}

.ticker-pill { border-color: rgba(26,144,144,0.35); color: #8BB8D4; }
#theme-root.light .ticker-pill { border-color: rgba(13,110,110,0.35); color: #0D6E6E; }


/* ── Insights icon accent (the one spot that uses #aedff7) ── */
.icon-circle-blue { border-color: rgba(174,223,247,0.35); background: rgba(174,223,247,0.08); }
.icon-circle-blue svg { color: #aedff7; }
#theme-root.light .icon-circle-blue { border-color: rgba(58,124,165,0.3); background: rgba(58,124,165,0.06); }
#theme-root.light .icon-circle-blue svg { color: #3A7CA5; }
.feature-card:hover .icon-circle-blue { background: #3A7CA5; border-color: #3A7CA5; }
.feature-card:hover .icon-circle-blue svg { color: #ffffff; }

/* ── Flow diagram responsive widths (rebuild-independent) ── */
.flow-card-w { width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; }
.flow-connector-w { width: 100%; }
@media (min-width: 768px) {
  .flow-card-w { width: auto; max-width: 260px; min-width: 180px; margin-left: 0; margin-right: 0; flex: 1 1 0%; }
  .flow-connector-w { width: auto; }
}


/* ── Flow arrow responsive swap, generic (stacked vs row) ── */
.flow-arrow-stacked { display: inline; }
.flow-arrow-row { display: none; }
@media (min-width: 768px) {
  .flow-arrow-stacked { display: none; }
  .flow-arrow-row { display: inline; }
}


.logo-dark { display: block; }
.logo-light { display: none; }
#theme-root.light .logo-dark { display: none; }
#theme-root.light .logo-light { display: block; }