/* ============================================================
   OmniVantrex — Home redesign (bold pass)
   ------------------------------------------------------------
   Link AFTER styles.css. Token-only (Phase-3 --wos-* / :root).
   Scope: new dark hero (.hero3 — task-lifecycle object),
   scroll-reveal utilities, section rhythm, type/hierarchy polish.
   All motion is CSS-only and gated by prefers-reduced-motion.
   No copy changes. No invented product surfaces (brand §6).
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   0 · SCROLL-REVEAL UTILITIES (below-the-fold only)
   Default state is VISIBLE. JS adds .reveal-pre to elements that
   start below the fold, hiding only those; the observer then
   reveals them on scroll. Above-fold content is never hidden, so
   no-JS / reduced-motion / static captures always show content.
   ════════════════════════════════════════════════════════════ */
.js-reveal .reveal {
  transition: transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Transform-only (no opacity) so content is NEVER blank, even if a
   host pauses animations/transitions while the tab/iframe is hidden. */
.js-reveal .reveal.reveal-pre {
  transform: translateY(24px);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal.reveal-pre { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance — pure CSS, always settles visible (no observer). */
@media (prefers-reduced-motion: no-preference) {
  .hero3-text > *,
  .hero3-visual {
    animation: heroRise 0.8s var(--ease-out) both;
  }
  .hero3-eyebrow  { animation-delay: 0.05s; }
  .hero3-kicker   { animation-delay: 0.05s; }
  .hero3-title    { animation-delay: 0.13s; }
  .hero3-lead     { animation-delay: 0.22s; }
  .hero3-actions  { animation-delay: 0.31s; }
  .hero3-trust    { animation-delay: 0.40s; }
  .hero3-visual   { animation-delay: 0.26s; }
}
@keyframes heroRise {
  from { transform: translateY(24px); }
  to   { transform: none; }
}

/* Paused-animation fallback (set by home-reveal.js): show everything. */
.rd-noanim .hero3-text > *,
.rd-noanim .hero3-visual,
.rd-noanim .reveal,
.rd-noanim .reveal.reveal-pre {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ════════════════════════════════════════════════════════════
   1 · HERO 3 — task-lifecycle object (dark band)
   Left: oversized editorial headline + value + CTAs + trust row.
   Right: one elevated product panel that walks a single task from
   inbound → captured → owned → resolved, with a travelling accent
   pulse. Product-truth labels only. Distinct from the rail hero.
   ════════════════════════════════════════════════════════════ */
.hero3 {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 116px) 0 clamp(56px, 8vw, 104px);
  isolation: isolate;
}
/* Ambient infrastructure texture — faint dot grid + soft steel glow.
   Deliberately low-key (no sci-fi glow per brand §5.4). */
.hero3__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(125,163,204,0.13) 0%, transparent 62%),
    radial-gradient(48% 60% at 8% 92%, rgba(125,163,204,0.07) 0%, transparent 60%);
}
.hero3__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(125,163,204,0.10) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  opacity: 0.5;
}

.hero3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero3-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}
.hero3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wos-text-tertiary);
  margin: 0 0 var(--sp-lg);
}
.hero3-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--wos-accent);
  flex-shrink: 0;
}
/* Hero product kicker — introduces "Workflow OS" inside the hero
   (the header masthead carries the corporate OmniVantrex Systems mark). */
.hero3-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--wos-text-tertiary);
  margin: 0 0 var(--sp-lg);
}
.hero3-kicker__wm {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--wos-accent);
}
.hero3-kicker__wm::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--wos-accent);
  flex-shrink: 0;
}
.hero3-kicker__sep {
  width: 1px;
  height: 13px;
  background: var(--wos-border-strong);
  opacity: 0.7;
}
.hero3-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--wos-text-primary);
  margin: 0 0 var(--sp-lg);
  max-width: 15ch;
  text-wrap: balance;
}
.hero3-title em {
  font-style: normal;
  color: var(--wos-accent);
}
.hero3-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--wos-text-secondary);
  max-width: 52ch;
  margin: 0 0 var(--sp-xl);
}
.hero3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin: 0 0 var(--sp-2xl);
}
.hero3-actions .btn { padding: 13px 30px; font-size: 15px; }

.hero3-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--wos-border);
  width: 100%;
  max-width: 520px;
}
.hero3-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wos-text-secondary);
}
.hero3-trust__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wos-accent);
  opacity: 0.85;
  flex-shrink: 0;
}

/* ─── Lifecycle panel ─────────────────────────────────────── */
.hero3-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.lc-card {
  position: relative;
  background: var(--wos-surface);
  border: 1px solid var(--wos-border);
  border-radius: 18px;
  box-shadow: var(--wos-shadow);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.lc-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--wos-border);
  background: var(--wos-surface-2);
}
.lc-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lc-name {
  font-family: 'Geist', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: -0.005em; color: var(--wos-text-primary);
}
.lc-sep { width: 1px; height: 13px; background: var(--wos-border); }
.lc-org {
  font-size: 12.5px; color: var(--wos-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--wos-text-tertiary);
  flex-shrink: 0;
}
.lc-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--wos-ok);
  box-shadow: 0 0 0 0 rgba(63,168,114,0.5);
  animation: lcLive 2.4s ease-out infinite;
}

.lc-stages {
  list-style: none;
  margin: 0;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.lc-stage {
  position: relative;
  margin: 0;
  padding: 0 0 22px 30px;
}
.lc-stage:last-child { padding-bottom: 4px; }
/* the spine */
.lc-stage::before {
  content: "";
  position: absolute;
  left: 6px; top: 16px; bottom: -4px;
  width: 2px;
  background: var(--wos-border);
}
.lc-stage:last-child::before { display: none; }
/* travelling fill segment over the spine */
.lc-stage::after {
  content: "";
  position: absolute;
  left: 6px; top: 16px;
  width: 2px; height: 0;
  background: var(--wos-accent);
  animation: lcFill 7s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 1.05s + 0.5s);
}
.lc-stage:last-child::after { display: none; }
.lc-node {
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--wos-surface);
  border: 2px solid var(--wos-border-strong);
  z-index: 1;
  animation: lcNode 7s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 1.05s + 0.35s);
}
.lc-stage-label {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wos-text-tertiary);
  margin-bottom: 5px;
}
.lc-stage-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--wos-text-primary);
  line-height: 1.3;
}
.lc-stage-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--wos-text-tertiary);
  margin-top: 4px;
}
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; line-height: 1;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap;
  border: 1px solid transparent;
}
.lc-chip--now { background: var(--wos-urgent); color: #FBFCFD; }
.lc-chip--amber { color: var(--wos-warn); border-color: rgba(229,141,26,0.55); }
.lc-chip--neutral { color: var(--wos-text-secondary); border-color: var(--wos-border-strong); }
.lc-chip--ok {
  background: var(--wos-ok); color: #FBFCFD; font-size: 12px; padding: 6px 12px;
}
.lc-resolved {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 2px;
}
.lc-resolved__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--wos-text-tertiary);
}

@keyframes lcLive {
  0%   { box-shadow: 0 0 0 0 rgba(63,168,114,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(63,168,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,168,114,0); }
}
@keyframes lcFill {
  0%, 6%   { height: 0; }
  18%, 100% { height: calc(100% + 4px); }
}
@keyframes lcNode {
  0%, 4% {
    background: var(--wos-surface);
    border-color: var(--wos-border-strong);
    transform: scale(1);
  }
  12% {
    background: var(--wos-accent);
    border-color: var(--wos-accent);
    transform: scale(1.18);
  }
  20%, 100% {
    background: var(--wos-accent);
    border-color: var(--wos-accent);
    transform: scale(1);
  }
}
/* tiny floating accent tag on the panel corner */
.lc-tag {
  position: absolute;
  top: -13px; right: 20px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--wos-accent);
  color: var(--wos-accent-on);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: var(--wos-shadow-md);
}
.lc-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wos-accent-on); opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .lc-live::before { animation: none; }
  .lc-stage::after { animation: none; height: calc(100% + 4px); }
  .lc-node {
    animation: none;
    background: var(--wos-accent);
    border-color: var(--wos-accent);
  }
}

@media (max-width: 980px) {
  .hero3-grid { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); }
  .hero3-visual { justify-self: stretch; max-width: 440px; }
}
@media (max-width: 520px) {
  .lc-org { display: none; }
  .lc-stages { padding: 18px 16px 20px; }
}

/* ════════════════════════════════════════════════════════════
   2 · SECTION RHYTHM + TYPE HIERARCHY (home only — .home-rd)
   Stronger alternation, consistent section headers, scroll cadence.
   ════════════════════════════════════════════════════════════ */
.home-rd .section { padding: clamp(56px, 7vw, 96px) 0; }

/* Consistent section header: eyebrow marker + larger Geist title.
   Reuses .eyebrow; the marker square is added here. */
.home-rd .rd-sec-head { margin: 0 0 var(--sp-2xl); max-width: 760px; }
.home-rd .rd-sec-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--wos-text-tertiary, var(--m));
  margin: 0 0 var(--sp-md);
}
.home-rd .rd-sec-head .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--a); flex-shrink: 0;
}
.home-rd .rd-sec-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
}
.home-rd .rd-sec-head h2::before { display: none; } /* drop the global bar; eyebrow carries it */
.home-rd .rd-sec-head .rd-sec-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--m);
  margin: var(--sp-md) 0 0;
  max-width: 60ch;
}

/* Product bridge — elevated to a calm statement card with hairline */
.home-rd .product-bridge {
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 44px);
}

/* Proof cards — number-free, hover lift already in styles.css; refine type */
.home-rd .proof-card strong { font-size: 15.5px; letter-spacing: -0.005em; }

/* "What changes" preview — give the inline link more presence */
.home-rd .section--alt .content > p { font-size: 17px; line-height: 1.6; max-width: 66ch; }
.home-rd .rd-arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  color: var(--a);
}
.home-rd .rd-arrow-link svg { transition: transform 0.2s var(--ease-out); }
.home-rd .rd-arrow-link:hover { color: var(--t); }
.home-rd .rd-arrow-link:hover svg { transform: translateX(4px); }

/* Full-bleed hairline divider between major light sections */
.home-rd .rd-divider {
  height: 1px;
  background: var(--b);
  border: none;
  margin: 0;
}

/* Cockpit framing head (eyebrow + title + demo pill on one baseline) */
.home-rd .cockpit .rd-cockpit-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-xl); flex-wrap: wrap; margin: 0 0 var(--sp-2xl);
}
.home-rd .cockpit .rd-cockpit-head .rd-ck-text { max-width: 640px; }
.home-rd .rd-demo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--wos-text-tertiary);
  border: 1px solid var(--wos-border); border-radius: var(--r-pill);
  padding: 7px 14px; white-space: nowrap;
}
.home-rd .rd-demo-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wos-warn); flex-shrink: 0;
}

/* Closing philosophy — quiet but composed */
.home-rd .rd-closing p { font-size: 17px; line-height: 1.62; color: var(--m); }
.home-rd .rd-closing p strong { color: var(--t); }

/* Relocated hero intro paragraphs (Workflow OS page) */
.home-rd .rd-intro { max-width: 780px; }
.home-rd .rd-intro > p {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--t);
  margin: 0 0 var(--sp-md);
  max-width: none;
}
.home-rd .rd-intro > p.rd-intro__sub {
  font-size: 15px;
  color: var(--m);
}

/* Solo hero (About / simple pages) — text-only, no product visual */
.hero3--solo { padding: clamp(52px, 8vw, 104px) 0 clamp(44px, 6vw, 80px); }
.hero3--solo .hero3-text { max-width: 800px; }
.hero3--solo .hero3-title { font-size: clamp(36px, 5vw, 60px); max-width: 18ch; }
.hero3--solo .hero3-lead { margin-bottom: 0; }
