/* ============================================================
   site-v2-los.css — Living Operations System hero (v2)
   Premium redesign: layered engine core, depth cards,
   orbital sparks, micro-interfaces, cursor parallax
   ============================================================ */

/* ── HERO BASE ── */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,0.22) 0%, transparent 65%),
    linear-gradient(rgba(139,92,246,0.045) 1px, transparent 1px),
    linear-gradient(90deg,rgba(139,92,246,0.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  pointer-events: none;
}
[data-theme="light"] .hero-bg-grid {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(109,40,217,0.06) 0%, transparent 65%),
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,0.025) 1px, transparent 1px);
}
.hero-v2 .hero-blob.hb-a {
  position: absolute; border-radius: 50%;
  width: 1200px; height: 1200px;
  top: -25%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139,92,246,0.16) 0%, transparent 68%);
  pointer-events: none;
}
[data-theme="light"] .hero-v2 .hero-blob.hb-a {
  background: radial-gradient(circle, rgba(109,40,217,0.04) 0%, transparent 68%);
}

/* ── HERO NETWORK BACKGROUND (moving nodes) ── */
.hero-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── HIGHLIGHTED HEADLINE PHRASE — solid post-it treatment ── */
:root {
  --postit-bg: #493A6E;
  --postit-text: #F5F2FF;
  --postit-shadow: 0 3px 10px rgba(0,0,0,0.26), 0 1px 0 rgba(255,255,255,0.05) inset;
}
[data-theme="light"] {
  --postit-bg: #FDECC4;
  --postit-text: #2B1B45;
  --postit-shadow: 0 3px 8px rgba(88,58,20,0.13), 0 1px 0 rgba(255,255,255,0.6) inset;
}
/* Single inline wrapper for the full phrase — one continuous background,
   radius, shadow, padding, and rotation. `white-space: nowrap` keeps
   "simple backend systems" on one line (desktop/tablet) so it never splits
   into two visually separate notes; `box-decoration-break: clone` only
   matters once the mobile override below re-enables wrapping, where it
   keeps every wrapped fragment styled identically instead of two distinct
   pills. Sized via .hero-intro .hero-h1's font-size cap below, which is
   tuned so the phrase fits on one line down to tablet widths without
   forcing the headline wider than its max-width column. */
.hl-phrase {
  display: inline-block;
  white-space: nowrap;
  background: var(--postit-bg);
  color: var(--postit-text);
  border-radius: 7px;
  padding: 0.06em 0.24em;
  margin: 0 0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: var(--postit-shadow);
  transform: rotate(-0.2deg);
}
@media (max-width: 640px) {
  .hl-phrase {
    display: inline;
    white-space: normal;
  }
}

/* Headline gets enough line-height for the pill's vertical padding to never
   collide with the line above/below it, and its own legacy fadeUp animation
   (site.css .hero-h1) is disabled here since the segmented .hr-reveal spans
   below replace it with more granular choreography. Font-size is capped
   below the base clamp(44px,5.5vw,78px) so the nowrap post-it phrase above
   reliably fits on one line within the 820px headline column at desktop
   and tablet widths, instead of overflowing it. */
.hero-intro .hero-h1 {
  animation: none;
  line-height: 1.3;
  font-size: clamp(34px, 4.6vw, 58px);
}

/* ── HERO CONTENT REVEAL ──
   Sequenced via --hr-delay per element (badge → first line → post-it
   settle → second line → subhead → CTAs → proof stats). Plays once on
   load; never re-triggers on theme toggle or resize since it's a plain
   CSS animation with a fixed delay, not scroll- or state-driven. */
.hr-reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.975);
  animation: heroReveal 0.8s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
  animation-delay: var(--hr-delay, 0s);
}
.hr-reveal-emphasis {
  transform: translateY(26px) scale(0.94) rotate(-1.2deg);
  animation-name: heroRevealEmphasis;
  animation-duration: 0.95s;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(26px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroRevealEmphasis {
  0% { opacity: 0; transform: translateY(26px) scale(0.94) rotate(-1.2deg); box-shadow: none; }
  70% { box-shadow: none; }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-0.2deg); box-shadow: var(--postit-shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .hr-reveal, .hr-reveal-emphasis {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── TWO-COLUMN LAYOUT (legacy, unused by current markup — kept for reference) ── */
.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
  position: relative;
  z-index: 2;
}

/* ── COPY ── */
.hero-copy { position: relative; z-index: 3; }
.hero-v2 .hero-h1 {
  font-size: clamp(30px, 3.2vw, 54px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
  max-width: 520px;
  margin: 14px 0 18px;
}
.hero-v2 .hero-sub {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--t1);
  max-width: 440px;
  line-height: 1.72;
  margin-bottom: 28px;
}
.hero-proof {
  display: flex; gap: 22px;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--glass-bd);
}
.hero-proof-item { text-align: left; }
.hero-proof-num {
  font-size: 21px; font-weight: 700;
  color: var(--t0); letter-spacing: -0.04em; line-height: 1;
}
.hero-proof-num span { color: var(--ac); }
.hero-proof-lbl { font-size: 11px; color: var(--t2); margin-top: 3px; line-height: 1.4; }

/* ── LOS WRAPPER ── */
.hero-los-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  perspective: 900px;
}
.hero-los {
  transform-style: preserve-3d;
  will-change: transform;
}
/* 700 × 520 coordinate space, scaled to fill column */
.hero-los {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 700 / 520;
}

/* ── SVG LAYER (background depth) ── */
.los-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
  transform: translateZ(-40px);
}

/* Blueprint background orbit */
.los-bg-orbit {
  fill: none;
  stroke: rgba(139,92,246,0.14);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}
[data-theme="light"] .los-bg-orbit { stroke: rgba(109,40,217,0.11); }

/* Hub spokes */
.los-spoke {
  stroke: rgba(139,92,246,0.32);
  stroke-width: 1.8;
  stroke-dasharray: 5 8;
  transition: stroke 0.3s, stroke-dasharray 0.3s;
}
[data-theme="light"] .los-spoke { stroke: rgba(109,40,217,0.26); }
.los-spoke.lit,
.hero-los.core-active .los-spoke {
  stroke: rgba(139,92,246,0.80);
  stroke-dasharray: none;
  filter: url(#los-glow);
}
[data-theme="light"] .los-spoke.lit,
[data-theme="light"] .hero-los.core-active .los-spoke { stroke: rgba(109,40,217,0.65); }

/* Sequential flow path */
.los-flow {
  stroke: rgba(139,92,246,0.88);
  stroke-width: 2.5;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4,0,0.2,1);
  filter: url(#los-glow);
}
[data-theme="light"] .los-flow { stroke: rgba(109,40,217,0.80); }
.los-flow.drawn { stroke-dashoffset: 0; }

/* Orbit sparks */
.los-spark {
  fill: #DDD6FE;
  filter: url(#los-glow);
}
[data-theme="light"] .los-spark { fill: #7C3AED; }

/* Flow particles */
.los-particle { fill: #A78BFA; filter: url(#los-glow); }
.los-particle-b { fill: #DDD6FE; }
[data-theme="light"] .los-particle { fill: #6D28D9; }

/* ── CENTRAL ENGINE CORE (foreground depth) ── */
.los-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 19.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(50px);
  z-index: 6;
  cursor: pointer;
  outline: none;
  transform-style: preserve-3d;
}

/* Ambient pulse rings */
.los-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,0.38);
  animation: losRingPop 3.5s ease-out infinite;
  pointer-events: none;
}
[data-theme="light"] .los-ring { border-color: rgba(109,40,217,0.30); }
.los-r1 { animation-delay: 0s; }
.los-r2 { inset: -30%; animation-delay: 1.0s; border-color: rgba(139,92,246,0.22); }
.los-r3 { inset: -65%; animation-delay: 2.0s; border-color: rgba(139,92,246,0.12); }
[data-theme="light"] .los-r2 { border-color: rgba(109,40,217,0.15); }
[data-theme="light"] .los-r3 { border-color: rgba(109,40,217,0.08); }

@keyframes losRingPop {
  0%   { opacity: 0.95; transform: scale(1); }
  65%  { opacity: 0.14; transform: scale(1.07); }
  100% { opacity: 0;    transform: scale(1.12); }
}

/* Rotating operational tracks */
.los-track {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed rgba(139,92,246,0.55);
  pointer-events: none;
  animation: trackSpin linear infinite;
}
[data-theme="light"] .los-track { border-color: rgba(109,40,217,0.42); }
.los-track-outer {
  inset: -45%;
  animation-duration: 22s;
  animation-direction: normal;
  border-color: rgba(139,92,246,0.45);
}
.los-track-inner {
  inset: -18%;
  animation-duration: 13s;
  animation-direction: reverse;
  border-color: rgba(167,139,250,0.50);
}
@keyframes trackSpin { to { transform: rotate(360deg); } }

/* Core face */
.los-core-face {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(145deg, #9F6EFF 0%, #6D28D9 55%, #4C1D95 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.18),
    inset 0 -6px 20px rgba(0,0,0,0.25),
    0 0 0 1px rgba(109,40,217,0.5),
    0 0 52px rgba(139,92,246,0.65),
    0 0 110px rgba(139,92,246,0.28),
    0 24px 64px rgba(0,0,0,0.55);
  transition: box-shadow 0.35s, transform 0.35s;
  animation: coreBreathe 4s ease-in-out infinite;
}
[data-theme="light"] .los-core-face {
  background: linear-gradient(145deg, #8B5CF6 0%, #7C3AED 55%, #6D28D9 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.3),
    0 0 40px rgba(109,40,217,0.55),
    0 0 80px rgba(109,40,217,0.22),
    0 16px 48px rgba(109,40,217,0.20);
}

@keyframes coreBreathe {
  0%,100% { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.18), inset 0 -6px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(109,40,217,0.5), 0 0 52px rgba(139,92,246,0.65), 0 0 110px rgba(139,92,246,0.28), 0 24px 64px rgba(0,0,0,0.55); }
  50%      { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22), inset 0 -6px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(109,40,217,0.6), 0 0 72px rgba(139,92,246,0.85), 0 0 150px rgba(139,92,246,0.38), 0 24px 64px rgba(0,0,0,0.55); }
}

.los-core:hover .los-core-face,
.los-core:focus .los-core-face {
  animation: none;
  transform: scale(1.09);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.25),
    0 0 0 1px rgba(139,92,246,0.7),
    0 0 80px rgba(139,92,246,1),
    0 0 180px rgba(139,92,246,0.5),
    0 28px 72px rgba(0,0,0,0.6);
}
.los-core.pulsing .los-core-face {
  animation: corePulse 0.55s ease-out 3;
}
@keyframes corePulse {
  0%,100% { transform: scale(1); }
  45%      { transform: scale(1.14); }
}

.los-core-initials {
  font-size: clamp(13px, 2vw, 22px);
  font-weight: 800; color: #fff;
  letter-spacing: -0.02em; line-height: 1;
}
.los-core-sub {
  font-size: clamp(5px, 0.7vw, 8.5px);
  font-weight: 600; color: rgba(255,255,255,0.55);
  letter-spacing: 0.07em; text-transform: uppercase; margin-top: 2px;
}
.los-core-health {
  margin-top: 6px;
  width: 70%;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.los-h-bar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; overflow: hidden;
}
.los-h-fill {
  height: 100%; width: 94%;
  background: linear-gradient(90deg, #34D399, #A7F3D0);
  border-radius: 2px;
}
.los-h-txt {
  font-size: clamp(4px, 0.55vw, 7px);
  color: rgba(255,255,255,0.55);
  font-family: 'Fira Code','SF Mono',monospace;
  letter-spacing: 0.04em;
  transition: opacity 0.4s;
}

/* ── WORKFLOW CARDS ── */
.wf-card {
  position: absolute;
  width: 26%;
  min-width: 130px;
  background: rgba(18,10,40,0.72);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 14px;
  padding: 10px 12px 11px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: border-color 0.28s, box-shadow 0.28s, transform 0.28s;
  z-index: 4;
  will-change: transform;
}
[data-theme="light"] .wf-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
}
/* Depth layers — real Z-separation in 3D space */
.wf-front {
  z-index: 5;
  transform: translateZ(30px);
  box-shadow: 0 16px 52px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.13);
}
.wf-mid {
  z-index: 4;
  transform: translateZ(12px);
}
.wf-back {
  z-index: 3;
  transform: translateZ(-10px);
  opacity: 0.85;
  filter: blur(0.4px);
}
[data-theme="light"] .wf-back { opacity: 0.90; }

.wf-card:hover {
  z-index: 7 !important;
  border-color: rgba(139,92,246,0.52);
  box-shadow: 0 20px 56px rgba(139,92,246,0.32), 0 0 0 1px rgba(139,92,246,0.20) inset, inset 0 1px 0 rgba(255,255,255,0.18);
  filter: none !important;
  opacity: 1 !important;
}
[data-theme="light"] .wf-card:hover {
  border-color: rgba(109,40,217,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Card positions — % of 700 × 520 */
#wf-0 { left: 0.5%;   top: 5.4%;  scale: 1.04; }  /* front-left, slightly larger */
#wf-1 { left: 36.8%;  top: 1.4%;  scale: 0.97; }  /* top-center, receded */
#wf-2 { left: 73.5%;  top: 5.4%;  scale: 1.03; }  /* front-right */
#wf-3 { left: 73.5%;  top: 42%;   scale: 0.99; }
#wf-4 { left: 73.5%;  top: 75.4%; scale: 0.95; }  /* back, slightly smaller */
#wf-5 { left: 0.5%;   top: 75.4%; scale: 1.02; }

/* ── CARD TOP ROW ── */
.wf-top {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 7px; flex-wrap: nowrap; overflow: hidden;
}
.wf-num {
  font-size: 8.5px; font-weight: 700;
  font-family: 'Fira Code','SF Mono',monospace;
  color: var(--t2, rgba(255,255,255,0.32)); flex-shrink: 0;
}
.wf-stage {
  font-size: 10px; font-weight: 600;
  color: var(--t0, #fff); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── STATUS PILLS ── */
.wf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.02em; border: 1px solid;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.wf-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.wf-p-new    { color: #FBBF24; background: rgba(251,191,36,0.14);  border-color: rgba(251,191,36,0.32); }
.wf-p-qual   { color: #34D399; background: rgba(52,211,153,0.14);  border-color: rgba(52,211,153,0.32); }
.wf-p-active { color: #A78BFA; background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.32); }
.wf-p-run    { color: #60A5FA; background: rgba(96,165,250,0.14);  border-color: rgba(96,165,250,0.32); }
.wf-p-paid   { color: #34D399; background: rgba(52,211,153,0.14);  border-color: rgba(52,211,153,0.32); }

[data-theme="light"] .wf-p-new    { color: #B45309; background: rgba(180,83,9,0.09);    border-color: rgba(180,83,9,0.26); }
[data-theme="light"] .wf-p-qual   { color: #059669; background: rgba(5,150,105,0.09);   border-color: rgba(5,150,105,0.26); }
[data-theme="light"] .wf-p-active { color: #7C3AED; background: rgba(124,58,237,0.09);  border-color: rgba(124,58,237,0.26); }
[data-theme="light"] .wf-p-run    { color: #2563EB; background: rgba(37,99,235,0.09);   border-color: rgba(37,99,235,0.26); }
[data-theme="light"] .wf-p-paid   { color: #059669; background: rgba(5,150,105,0.09);   border-color: rgba(5,150,105,0.26); }

/* ── MICRO INTERFACES ── */
.wf-micro { font-size: 9px; }

/* Inquiry: message preview */
.wfm-msg {
  display: flex; align-items: flex-start; gap: 7px;
}
.wfm-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff; font-size: 7px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wfm-msg-body { flex: 1; overflow: hidden; }
.wfm-from {
  font-size: 9px; font-weight: 600; color: var(--t0);
  display: flex; align-items: center; gap: 5px;
}
.wfm-ts { font-size: 8px; color: var(--t2); font-weight: 400; }
.wfm-preview {
  font-size: 8.5px; color: var(--t2);
  margin-top: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-family: 'Fira Code','SF Mono',monospace;
}

/* Qualified: score bar */
.wfm-score-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.wfm-slbl { font-size: 8.5px; color: var(--t2); }
.wfm-sval { font-size: 9px; font-weight: 700; color: #34D399; font-family: 'Fira Code','SF Mono',monospace; }
.wfm-sbar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
[data-theme="light"] .wfm-sbar { background: rgba(109,40,217,0.10); }
.wfm-sbar-fill {
  height: 100%; width: 87%;
  background: linear-gradient(90deg, #34D399, #A7F3D0);
  border-radius: 2px;
}
.wfm-detail { font-size: 8.5px; color: var(--t2); font-family: 'Fira Code','SF Mono',monospace; }

/* Onboarding: checklist */
.wfm-chk {
  font-size: 8.5px; color: var(--t2);
  padding: 2px 0; line-height: 1.4;
  font-family: 'Fira Code','SF Mono',monospace;
}
.wfm-done { color: #34D399; }
[data-theme="light"] .wfm-done { color: #059669; }

/* Project: timeline */
.wfm-proj {
  font-size: 9px; font-weight: 600;
  color: var(--t0); margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wfm-tl {
  height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden; margin-bottom: 3px;
}
[data-theme="light"] .wfm-tl { background: rgba(109,40,217,0.10); }
.wfm-tl-fill {
  height: 100%; width: 60%;
  background: linear-gradient(90deg, #8B5CF6, #C4B5FD);
  border-radius: 2px;
}
.wfm-proj-meta { font-size: 8.5px; color: var(--t2); font-family: 'Fira Code','SF Mono',monospace; }

/* Tasks: progress dots */
.wfm-dots {
  display: flex; gap: 5px; align-items: center; margin-bottom: 4px;
}
.wtd {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.15);
}
[data-theme="light"] .wtd { background: rgba(109,40,217,0.08); border-color: rgba(109,40,217,0.15); }
.wtd-done {
  background: linear-gradient(135deg, #8B5CF6, #34D399);
  border-color: transparent;
}
.wfm-dots-lbl { font-size: 8.5px; color: var(--t2); font-family: 'Fira Code','SF Mono',monospace; }

/* Invoice: amount */
.wf-micro-inv { text-align: center; padding: 2px 0; }
.wfm-amount {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800; color: #34D399;
  letter-spacing: -0.03em; line-height: 1;
}
[data-theme="light"] .wfm-amount { color: #059669; }
.wfm-inv-sub { font-size: 8.5px; color: var(--t2); margin-top: 2px; font-family: 'Fira Code','SF Mono',monospace; }

/* ── FLOATING CTA: now shared site-wide in site.css (.fl-hidden) ── */

/* ── SCROLL COMPLETION ── */
.hero-los.los-complete .wf-pill {
  color: #34D399 !important;
  background: rgba(52,211,153,0.14) !important;
  border-color: rgba(52,211,153,0.32) !important;
}
[data-theme="light"] .hero-los.los-complete .wf-pill {
  color: #059669 !important;
  background: rgba(5,150,105,0.09) !important;
  border-color: rgba(5,150,105,0.26) !important;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .los-ring, .los-track, .los-core-face { animation: none !important; }
  .wf-dot { animation: none; }
  .los-flow { transition: none; }
  .hero-los { transform: none !important; opacity: 1 !important; }
  .wf-card { transform: none !important; }
  .los-core { transform: translate(-50%, -50%) !important; }
  .los-svg { transform: none !important; }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 28px; gap: 32px; }
  .hero-v2 .hero-h1 { font-size: clamp(26px, 6vw, 44px); max-width: 100%; }
  .hero-v2 .hero-sub { max-width: 100%; }
  .hero-los { aspect-ratio: unset; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .los-svg, .los-core { display: none !important; }
  .hero-los { transform: none !important; opacity: 1 !important; transform-style: flat !important; }
  .wf-card { position: relative !important; left: auto !important; top: auto !important; width: auto !important; transform: none !important; animation: none !important; filter: none !important; opacity: 1 !important; }
}
@media (max-width: 480px) {
  .hero-los { grid-template-columns: 1fr; }
  .hero-proof { gap: 14px; }
}

/* ── BENTO: Operations console styles ── */
.mock-ops { display: flex; flex-direction: column; gap: 10px; }
.mock-live { display: inline-flex; align-items: center; gap: 5px; }
.mock-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,0.7);
  animation: dotPulse 2s ease-in-out infinite;
}
.ops-queue { display: flex; flex-direction: column; gap: 5px; }
.ops-task {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; color: var(--t1);
  padding: 4px 8px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
[data-theme="light"] .ops-task { background: rgba(109,40,217,0.03); border-color: rgba(109,40,217,0.07); }
.ops-task.ops-active { border-color: rgba(139,92,246,0.28); background: rgba(139,92,246,0.07); }
.ops-task.ops-entering { animation: opsSlideIn 0.6s ease-out 1.2s both; }
@keyframes opsSlideIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.ops-s { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ops-s-run  { background: #8B5CF6; box-shadow: 0 0 6px rgba(139,92,246,0.7); }
.ops-s-done { background: #34D399; }
.ops-s-new  { background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.2); }
[data-theme="light"] .ops-s-new { background: rgba(109,40,217,0.15); border-color: rgba(109,40,217,0.2); }
.ops-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-tag {
  font-size: 8.5px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.ops-run    { color: #A78BFA; background: rgba(167,139,250,0.15); }
.ops-done   { color: #34D399; background: rgba(52,211,153,0.12); }
.ops-queued { color: var(--t2); background: rgba(255,255,255,0.06); }
[data-theme="light"] .ops-queued { background: rgba(109,40,217,0.06); }
.ops-health { margin-top: 4px; }
.ops-hbar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
[data-theme="light"] .ops-hbar { background: rgba(109,40,217,0.10); }
.ops-hfill { height: 100%; width: 94%; background: linear-gradient(90deg,#8B5CF6,#34D399); border-radius: 2px; }
.ops-hmeta { display: flex; justify-content: space-between; font-size: 9px; }
.ops-hpct { color: #34D399; font-weight: 700; font-family: 'Fira Code','SF Mono',monospace; }
[data-theme="light"] .ops-hpct { color: #059669; }
.ops-saved { color: var(--t2); font-family: 'Fira Code','SF Mono',monospace; }

/* Automation chain */
.mock-auto { display: flex; flex-direction: column; gap: 8px; }
.af-chain { display: flex; flex-direction: column; gap: 0; }
.af-node {
  display: flex; align-items: center; gap: 7px;
  font-size: 9.5px; font-weight: 600;
  padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  color: var(--t1); transition: border-color 0.3s, background 0.3s;
}
[data-theme="light"] .af-node { background: rgba(109,40,217,0.04); border-color: rgba(109,40,217,0.09); }
.af-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.22); flex-shrink: 0; }
[data-theme="light"] .af-dot { background: rgba(109,40,217,0.25); }
.af-done { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.07); }
.af-done .af-dot { background: #34D399; }
.af-active { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.10); }
.af-active .af-dot { background: #8B5CF6; box-shadow: 0 0 6px rgba(139,92,246,0.7); animation: dotPulse 1.6s ease-in-out infinite; }
.af-pending { opacity: 0.5; }
.af-conn { height: 12px; width: 1px; margin: 0 auto; background: rgba(255,255,255,0.12); }
[data-theme="light"] .af-conn { background: rgba(109,40,217,0.15); }
.af-conn-done { background: rgba(52,211,153,0.5); }
.af-conn-active { background: linear-gradient(to bottom,rgba(52,211,153,0.5),rgba(139,92,246,0.5)); }

/* Lead pipeline */
.mock-leads { display: flex; flex-direction: column; gap: 10px; }
.lg-pipe { display: flex; align-items: center; gap: 0; }
.lg-stage {
  flex: 1; text-align: center; padding: 6px 4px;
  border-radius: 8px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
[data-theme="light"] .lg-stage { background: rgba(109,40,217,0.04); border-color: rgba(109,40,217,0.09); }
.lg-stage-cta { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.lg-hd { font-size: 8px; font-weight: 600; color: var(--t2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.lg-n { font-size: 14px; font-weight: 800; color: var(--t0); letter-spacing: -0.03em; }
.lg-stage-cta .lg-n { color: #34D399; }
[data-theme="light"] .lg-stage-cta .lg-n { color: #059669; }
.lg-arr { font-size: 12px; color: var(--t2); padding: 0 3px; flex-shrink: 0; }
.lg-moving { display: flex; }
.lg-mv-pill {
  font-size: 9px; font-weight: 600;
  background: rgba(52,211,153,0.12); color: #34D399;
  border: 1px solid rgba(52,211,153,0.3); border-radius: 20px;
  padding: 2px 9px;
  animation: lgSlide 3.5s ease-in-out infinite;
}
[data-theme="light"] .lg-mv-pill { color: #059669; background: rgba(5,150,105,0.09); border-color: rgba(5,150,105,0.25); }
@keyframes lgSlide { 0%,100%{opacity:0.5;transform:translateX(0)} 50%{opacity:1;transform:translateX(6px)} }

/* ============================================================
   SCROLL-TRIGGERED MOTION — reuses the existing initReveal()
   IntersectionObserver / .reveal/.reveal-l/.reveal-r/.reveal-s/.stagger
   system in site-v2.js and site-v2.css. These are additive overrides
   (higher specificity, loaded last) applied via extra classes on the
   same elements — no new observer, no new scroll listener.
   ============================================================ */

/* Section eyebrow → heading → paragraph stagger (order = DOM order). */
.sec-reveal-head.stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(0.16, 0.8, 0.24, 1), transform .6s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.sec-reveal-head.stagger.in > * { opacity: 1; transform: none; }
.sec-reveal-head.stagger.in > *:nth-child(1) { transition-delay: .04s; }
.sec-reveal-head.stagger.in > *:nth-child(2) { transition-delay: .15s; }
.sec-reveal-head.stagger.in > *:nth-child(3) { transition-delay: .26s; }
.sec-reveal-head.stagger.in > *:nth-child(4) { transition-delay: .36s; }

/* Card / bento grids — larger, clearly visible stagger with a subtle
   scale so the group reads as "assembling" rather than just fading in. */
.card-reveal.stagger > * {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity .6s cubic-bezier(0.16, 0.8, 0.24, 1), transform .6s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.card-reveal.stagger.in > * { opacity: 1; transform: none; }
.card-reveal.stagger.in > *:nth-child(1) { transition-delay: .00s; }
.card-reveal.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.card-reveal.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.card-reveal.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.card-reveal.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.card-reveal.stagger.in > *:nth-child(6) { transition-delay: .40s; }
.card-reveal.stagger.in > *:nth-child(7) { transition-delay: .48s; }
.card-reveal.stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* Operations Core wrapper reveal — animates the *section* (position,
   overflow:hidden, holds the mount point) only. CSS transform/opacity
   on this outer element does not affect the orb's internal canvas size,
   R3F render loop, or pointer handlers mounted inside it. */
.opscore-wrap-reveal.reveal-s {
  transform: translateY(22px) scale(0.98);
  transition-delay: .12s;
}
.opscore-wrap-reveal.reveal-s.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-reveal-head.stagger > *,
  .card-reveal.stagger > *,
  .opscore-wrap-reveal.reveal-s {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── MOBILE SCROLL CUE ──
   The "Scroll" hint (site.css .scroll-hint, bottom:28px on mobile) sits
   inside the hero and overlaps the proof-stat row / CTA area once the
   hero's mobile height was tightened in an earlier pass. Desktop/tablet
   keep the existing cue unchanged; below 640px it's hidden entirely
   (arrow + line + text together, since the whole cue is what overlaps,
   not just the label) rather than leaving a reserved empty gap — it's
   position:absolute in site.css, so removing it from view doesn't
   affect any sibling's layout or shift the hero's height. */
@media (max-width: 640px) {
  .hero-intro .scroll-hint {
    display: none;
  }
}
