/**
 * Prompt 2B motion/visual system. Everything here is scoped under the
 * .dv-motion body class (set only when DV_MOTION is true - see
 * functions.php) so DV_MOTION=false reverts the site to the prior
 * restrained system with no further code change. Within .dv-motion,
 * most rules are further scoped to html.js so a no-JS visitor always
 * sees fully visible, unanimated content (same convention as motion.css).
 * All continuous animations (marquee, section-bleed float) respect
 * html.motion-paused (the footer "Pause motion" control) and
 * prefers-reduced-motion unconditionally.
 */

/* =========================================================
   STEP 2 - HERO TEAL BAND (every page hero). Gradient stops verified:
   white text 4.93:1 (deep-teal .90 near-text zone) against a worst-case
   all-white source image, teal .55 lighter end reveals the subject -
   see docs/contrast-table.md.
   ========================================================= */
.dv-motion .section-hero-teal {
  background: var(--teal);
  color: var(--white);
}
.dv-motion .hero-teal-scrim {
  background: linear-gradient(100deg, rgba(22,123,140,.92) 0%, rgba(22,123,140,.78) 42%, rgba(22,123,140,.45) 100%);
}

/* =========================================================
   A. HERO LOAD ANIMATION - headline lines + image ease-in.
   Initial hidden state ONLY under dv-motion + html.js, so no-JS/
   DV_MOTION=false always shows the hero fully rendered immediately.
   ========================================================= */
.dv-motion html.js .hero-line {
  opacity: 0;
  transform: translateY(16px);
}
.dv-motion html.js .hero-media {
  opacity: 0;
  transform: scale(1.04);
}
/* GSAP (motion-system.js) animates these to their rest state and clears
   the inline transform/opacity it sets - these are just the JS hook
   starting points, not animated by CSS transition (GSAP drives it).
   Safety net: motion-system.js always checks prefers-reduced-motion and
   jumps straight to the rest state with no animation when it's set, but
   this CSS override exists too so these are never stuck invisible if
   GSAP fails to load or run for any reason. */
@media (prefers-reduced-motion: reduce) {
  .dv-motion html.js .hero-line,
  .dv-motion html.js .hero-media {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   C. HERO DEPTH (parallax) - hero media + floating glass cards move at
   different scroll speeds, max 40px travel (enforced in JS). Driven by
   GSAP ScrollTrigger; this just marks the containing box so layout
   doesn't shift as the children translate.
   ========================================================= */
.dv-motion .parallax-box { position: relative; overflow: hidden; }
.dv-motion [data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .dv-motion [data-parallax] { transform: none !important; }
}

/* =========================================================
   D. CARD HOVER REVEAL - image cards: dark navy gradient + title/text
   over the image at rest; on hover/focus the gradient+text slide down
   and out, revealing the image, with a small title strip staying
   visible. Text stays in the DOM and readable at all times (not
   display:none / visibility:hidden). Tap toggles on touch.
   ========================================================= */
.dv-motion .reveal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
}
.dv-motion .reveal-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.dv-motion .reveal-card-panel {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(16,38,62,0) 0%, rgba(16,38,62,.55) 45%, rgba(16,38,62,.92) 100%);
  padding: 1.5rem;
  transition: transform var(--m-duration-slow, 550ms) var(--m-ease-out);
}
.dv-motion .reveal-card-strip {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}
.dv-motion .reveal-card-body {
  margin-top: .5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.9);
  max-height: 200px;
  overflow: hidden;
  transition: max-height var(--m-duration-slow, 550ms) var(--m-ease-out), opacity var(--m-duration-slow, 550ms) var(--m-ease-out);
}
/* Slide the gradient+text down and out on hover/focus, leaving a strip. */
.dv-motion .reveal-card:hover .reveal-card-panel,
.dv-motion .reveal-card:focus-within .reveal-card-panel,
.dv-motion .reveal-card.is-revealed-touch .reveal-card-panel {
  transform: translateY(calc(100% - 4.25rem));
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .reveal-card-panel { transition: none; }
}

/* =========================================================
   E. INDUSTRIES TILTED ARC CAROUSEL (/industries/ only)
   ========================================================= */
.dv-motion .carousel-arc {
  position: relative;
  padding: 2rem 0 3rem;
}
.dv-motion .carousel-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: visible;
}
.dv-motion .carousel-card {
  flex: 0 0 auto;
  width: 240px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--m-duration-base) var(--m-ease-out);
  transform: rotate(var(--tilt, 0deg)) scale(.92);
}
/* The fade for inactive/side cards is scoped to the image+panel only
   (not the whole card) so the always-visible Explore link below it never
   drops under WCAG contrast - opacity on an ancestor would otherwise
   wash out that text regardless of its own color (axe color-contrast,
   found via checks.js). */
.dv-motion .carousel-card .reveal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: opacity var(--m-duration-base) var(--m-ease-out);
  opacity: .72;
}
.dv-motion .carousel-card.is-active .reveal-card { opacity: 1; }
.dv-motion .carousel-card.is-active {
  width: 300px;
  transform: rotate(0deg) scale(1);
  opacity: 1;
  box-shadow: 0 20px 40px -16px rgba(16,38,62,.28);
}
.dv-motion .carousel-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--offwhite); }
.dv-motion .carousel-card-media img { width: 100%; height: 100%; object-fit: cover; }
.dv-motion .carousel-card-body { padding: 1.25rem; }
/* (d) Card hover-reveal nested inside a carousel card needs an explicit
   aspect ratio - .reveal-card's absolutely-positioned children (media,
   panel) need a sized containing block, and .carousel-card itself has no
   intrinsic height once its old media+body split isn't used. */
.dv-motion .carousel-card .reveal-card { aspect-ratio: 4/3; }
.dv-motion .carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-card);
}
.dv-motion .carousel-arrow:disabled { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .dv-motion .carousel-card { transition: none; }
}
@media (max-width: 767px) {
  .dv-motion .carousel-track { flex-direction: column; }
  .dv-motion .carousel-card, .dv-motion .carousel-card.is-active {
    width: 100%;
    transform: none;
    opacity: 1;
  }
}

/* =========================================================
   I. MAGNETIC BUTTONS + ANIMATED NAV UNDERLINE
   ========================================================= */
.dv-motion html.js [data-magnetic] {
  transition: transform .25s var(--m-ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion [data-magnetic] { transition: none !important; transform: none !important; }
}
.dv-motion .nav-link {
  position: relative;
}
.dv-motion .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--m-ease-out);
}
.dv-motion .nav-link:hover::after,
.dv-motion .nav-link:focus-visible::after,
.dv-motion .nav-link.is-active::after {
  transform: scaleX(1);
}

/* =========================================================
   G. METHOD PAGE - stages light up in sequence (reuses .reveal/
   is-revealed from reveal.js); progress line draws via stepper-line
   (motion.css) already present - this just adds the "dim until lit"
   treatment layered on top under dv-motion.
   ========================================================= */
.dv-motion html.js .method-stage {
  opacity: .35;
  transition: opacity var(--m-duration-slow, 550ms) var(--m-ease-out);
}
.dv-motion html.js .method-stage.is-revealed {
  opacity: 1;
}

/* =========================================================
   GLASSMORPHISM (Step 3) - restrained, ~half of unique elements, never
   body text or plain white sections. Solid fallback when
   backdrop-filter is unsupported.
   ========================================================= */
.dv-motion .glass-ui {
  position: relative;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px -12px rgba(16,38,62,.35);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
/* On neutral (light) backgrounds, white glass reads as near-invisible -
   use a navy-tinted glass instead so text/icons on it still have
   something to contrast against. */
.dv-motion .glass-ui-on-light {
  background: rgba(16,38,62,.06);
  border: 1px solid rgba(16,38,62,.12);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-card);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dv-motion .glass-ui { background: rgba(255,255,255,.92); }
  .dv-motion .glass-ui-on-light { background: var(--offwhite); }
}

/* =========================================================
   L. PAGE TRANSITIONS - simple fade, no router/back-button interference.
   ========================================================= */
.dv-motion html.js body {
  animation: dv-page-in .35s ease-out;
}
@keyframes dv-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion html.js body { animation: none; }
}

/* ---- Founder card (Step 4, enlarged Step 8) ---- */
.dv-motion .founder-wrap { position: relative; }
.dv-motion .founder-backdrop {
  position: absolute;
  top: -1.5rem; left: -1.5rem; right: 2.5rem; bottom: -1.5rem;
  border-radius: var(--radius-xl);
  background: var(--grad-teal);
  z-index: 0;
}
.dv-motion .founder-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 64px -24px rgba(16,38,62,.4);
  padding-right: 2.5rem;
  padding-bottom: 2.5rem;
}
.dv-motion .founder-placeholder-tag {
  position: absolute;
  bottom: -.75rem;
  left: 2.5rem;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: .3rem .85rem;
  box-shadow: var(--shadow-card);
}
.dv-motion .founder-portrait-wrap {
  /* Round 6 B10: was a literal 140x140 square - widened per the
     square/narrow-card sweep (docs/2e-audit.md). */
  position: absolute;
  top: -2.5rem;
  left: 2.5rem;
  width: 168px;
  height: 128px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 32px -12px rgba(16,38,62,.35);
  border: 4px solid var(--white);
}
.dv-motion .founder-side-label {
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-deep);
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .dv-motion .founder-side-label { display: none; }
}

/* =========================================================
   PROMPT 2C - STEP 1: HOME HERO FAN CARDS. 5 glass cards in 3D
   perspective, one per capability. Float slowly, straighten + lift on
   hover/focus, respond to mouse parallax (JS, motion-system.js). Mobile:
   stacked, slight overlap, no 3D, no horizontal scroll.
   ========================================================= */
.dv-motion .hero-fan-wrap {
  position: relative;
  perspective: 1500px;
  padding-top: 1.5rem;
}
.dv-motion .hero-fan {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.5rem, 2vw, 1.25rem);
  transform-style: preserve-3d;
}
.dv-motion .hero-fan-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  padding: 1.1rem 1.1rem 1.25rem;
  /* Darker, more opaque glass than the default .glass-ui - this card sits
     over varying photo brightness (including bright sky), so it needs a
     contrast floor that doesn't depend on what's behind it. */
  background: rgba(16,38,62,.58);
  border-color: rgba(255,255,255,.22);
  color: var(--white);
  text-align: left;
  text-decoration: none;
  transform: rotateY(var(--fr, 0deg)) translateY(var(--fy, 0px));
  translate: 0 0;
  transition: transform .5s var(--m-ease-out), box-shadow .5s var(--m-ease-out);
  animation: dv-fan-float 6.5s ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
}
.dv-motion .hero-fan-card:hover,
.dv-motion .hero-fan-card:focus-visible {
  transform: rotateY(0deg) translateY(calc(var(--fy, 0px) - 14px));
  box-shadow: 0 30px 56px -18px rgba(16,38,62,.45);
  z-index: 10;
  animation-play-state: paused;
}
.dv-motion .hero-fan-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
}
.dv-motion .hero-fan-title {
  margin-top: .85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.dv-motion .hero-fan-link {
  margin-top: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal-light);
}
@keyframes dv-fan-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .hero-fan-card { animation: none; }
  .dv-motion .hero-fan { transition: none; }
}
@media (max-width: 1023px) {
  .dv-motion .hero-fan-wrap { perspective: none; }
  .dv-motion .hero-fan {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: none !important;
  }
  .dv-motion .hero-fan-card {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
    margin-top: -1.75rem;
    animation: none;
    transform: none !important;
  }
  .dv-motion .hero-fan-card:first-child { margin-top: 0; }
  .dv-motion .hero-fan-card:hover,
  .dv-motion .hero-fan-card:focus-visible {
    transform: translateY(-4px) !important;
    z-index: 5;
  }
}

/* =========================================================
   PROMPT 2C - STEP 2/3: SHARED BIG CAROUSEL (Core Capabilities,
   Industries). Extends the Prompt 2B tilted-arc carousel with a
   configurable card width (--card-w, set per instance), edge-anchored
   round arrow buttons, and a number label for the Ashwarya hover-reveal
   pattern.
   ========================================================= */
.dv-motion .carousel-arc {
  position: relative;
  padding: 2rem 3.5rem 3rem;
}
.dv-motion .carousel-card { width: var(--card-w, 300px); }
.dv-motion .carousel-card.is-active { width: calc(var(--card-w, 300px) * 1.12); }
.dv-motion .carousel-card .reveal-card { aspect-ratio: 3/4; height: auto; }
.dv-motion .reveal-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal-light);
}
.dv-motion .carousel-card-link {
  margin-top: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-deep);
}
.dv-motion .carousel-arrow-prev,
.dv-motion .carousel-arrow-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  opacity: .55;
  transition: opacity .25s var(--m-ease-out);
}
.dv-motion .carousel-arrow-prev:hover, .dv-motion .carousel-arrow-prev:focus-visible,
.dv-motion .carousel-arrow-next:hover, .dv-motion .carousel-arrow-next:focus-visible { opacity: 1; }
.dv-motion .carousel-arrow-prev { left: 0; }
.dv-motion .carousel-arrow-next { right: 0; }
@media (max-width: 767px) {
  .dv-motion .carousel-arc { padding: 0; }
  .dv-motion .carousel-arrow-prev, .dv-motion .carousel-arrow-next { display: none; }
  .dv-motion .carousel-card .reveal-card { aspect-ratio: 4/3; }
}

/* =========================================================
   PROMPT 2C - STEP 7: SERVICE CARDS EVERYWHERE. Ashwarya hover-reveal +
   number label + glass tag chip + subtle pointer tilt (scrolly.js),
   reused on every capability page's service grid.
   ========================================================= */
.dv-motion .service-card-tilt {
  transform-style: preserve-3d;
  transition: transform .3s var(--m-ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .service-card-tilt { transition: none !important; transform: none !important; }
}
.dv-motion .reveal-card-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(16,38,62,.78) 0%, rgba(22,123,140,.7) 100%);
}
.dv-motion .service-card-chip {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
}
.dv-motion .service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--white);
}

/* =========================================================
   PROMPT 2C - STEP 4: DIFFERENTIATION STACKED-MERGE (Our Firm). Small
   cards stacked vertically on the left; their right edges visually merge
   into one large card on the right via a shared rounded shape and
   negative margin overlap. The big card cross-fades between items,
   activated by scroll position (desktop, IntersectionObserver), click or
   focus. Mobile: plain accordion (native <details>, no JS needed).
   ========================================================= */
.dv-motion .diff-merge-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  align-items: stretch;
  gap: 0;
}
.dv-motion .diff-merge-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.dv-motion .diff-merge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-right: -2.5rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .4s var(--m-ease-out), box-shadow .4s var(--m-ease-out);
}
.dv-motion .diff-merge-item + .diff-merge-item { margin-top: 1rem; }
.dv-motion .diff-merge-item.is-active {
  transform: translateX(-.5rem) scale(1.03);
  box-shadow: 0 20px 40px -16px rgba(16,38,62,.3);
  border-color: var(--teal);
  z-index: 2;
}
.dv-motion .diff-merge-thumb {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--offwhite);
}
.dv-motion .diff-merge-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dv-motion .diff-merge-item-title { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.dv-motion .diff-merge-big {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 24px 56px -20px rgba(16,38,62,.35);
}
.dv-motion .diff-merge-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--m-ease-out);
}
.dv-motion .diff-merge-panel.is-active { opacity: 1; visibility: visible; }
.dv-motion .diff-merge-panel img { width: 100%; height: 100%; object-fit: cover; }
.dv-motion .diff-merge-panel-caption {
  position: absolute;
  left: 1.75rem; right: 1.75rem; bottom: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}
.dv-motion .diff-merge-mobile-detail { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dv-motion .diff-merge-item, .dv-motion .diff-merge-panel { transition: none; }
}
@media (max-width: 1023px) {
  .dv-motion .diff-merge-big, .dv-motion .diff-merge-grid { display: none; }
  .dv-motion .diff-merge-mobile-detail { display: block; }
}

/* =========================================================
   PROMPT 2C - STEP 6: ROADMAP TIMELINE (.dv-roadmap). Reused across The
   DAVERON Method, Data's 3-step approach, the AI stepper, Modernization,
   Private Equity's 100-day priorities, and Consultation's 3 steps. A
   winding SVG path draws itself via stroke-dashoffset scrub
   (ScrollTrigger); numbered nodes light up in sequence (reuses
   .method-stage's is-revealed convention); stage cards alternate left
   and right. Mobile: a straight vertical line, stacked cards.
   ========================================================= */
/* Prompt 3E, E6: shorter overall - stage padding cut so consecutive
   cards land ~16-20px apart instead of ~64px (2rem top+bottom each
   side), and the outer .dv-roadmap wrapper's own padding trimmed to
   match. */
.dv-motion .dv-roadmap { position: relative; padding: .75rem 0; }
.dv-motion .dv-roadmap-path-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 140px;
  transform: translateX(-50%);
  pointer-events: none;
}
.dv-motion .dv-roadmap-path-wrap svg { width: 100%; height: 100%; overflow: visible; }
.dv-motion .dv-roadmap-path-draw {
  fill: none;
  /* Prompt 4B, B4: the soft glow (was Method-only via --premium) now
     applies to every dv_roadmap() instance. */
  stroke: var(--teal-light);
  filter: drop-shadow(0 0 6px rgba(255,255,255, .75)) drop-shadow(0 0 14px rgba(255,255,255, .35));
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dv-motion .dv-roadmap-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  /* Prompt 3E, E6: 8px each side so two adjoining stages land ~16px
     apart - the number/heading/icon row is a fixed left-to-right order
     now (see dv_roadmap()), not mirrored per side, so text-align no
     longer alternates either. */
  padding: 8px 0;
}
.dv-motion .dv-roadmap-card { grid-column: 1; text-align: left; }
.dv-motion .dv-roadmap-stage:nth-child(even) .dv-roadmap-card { grid-column: 3; text-align: left; }
.dv-motion .dv-roadmap-card-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.dv-motion .dv-roadmap-card-title { flex: 1 1 auto; min-width: 0; }
.dv-motion .dv-roadmap-card-body { margin-top: .5rem; }
.dv-motion .dv-roadmap-card-body p { max-width: 42ch; }
.dv-motion .dv-roadmap-output { margin-top: .35rem; opacity: .75; }
.dv-motion .dv-roadmap-icon { display: flex; }
.dv-motion .dv-roadmap-node {
  grid-column: 2;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--border);
  overflow: hidden;
  opacity: .4;
  transition: opacity .5s var(--m-ease-out), border-color .5s var(--m-ease-out), box-shadow .5s var(--m-ease-out);
}
/* Prompt 4B, B4 added a small inner ring that fills with teal (scale
   0 -> 1), plus one pulse on arrival - Prompt 4E, E6 put the numeral
   back on top of it: navy in the empty (unfilled) ring, white once the
   ring fills teal as the line reaches it. */
.dv-roadmap-node-ring {
  width: 60%;
  height: 60%;
  border-radius: var(--radius-full);
  background: var(--teal);
  transform: scale(0);
  transition: transform .5s var(--m-ease-out);
}
.dv-roadmap-node-num {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  transition: color .5s var(--m-ease-out);
}
.dv-motion html.js .dv-roadmap-node.is-revealed {
  opacity: 1;
  border-color: var(--teal);
  box-shadow: 0 0 0 6px var(--teal-tint);
  animation: dv-node-pulse 1.8s var(--m-ease-out) 1;
}
.dv-motion html.js .dv-roadmap-node.is-revealed .dv-roadmap-node-ring {
  transform: scale(1);
}
.dv-motion html.js .dv-roadmap-node.is-revealed .dv-roadmap-node-num {
  color: var(--white);
}
@keyframes dv-node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,123,140,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(22,123,140,0); }
  100% { box-shadow: 0 0 0 6px var(--teal-tint); }
}
.dv-motion html.js .dv-roadmap-card {
  opacity: .35;
  transform: translateX(0);
  transition: opacity .5s var(--m-ease-out), transform .7s var(--m-ease-out);
}
/* Prompt 4B, B4: slide in from the card's own side, once, when its node activates. */
.dv-motion html.js .dv-roadmap-card[data-roadmap-card-slide="left"] { transform: translateX(-80px); }
.dv-motion html.js .dv-roadmap-card[data-roadmap-card-slide="right"] { transform: translateX(80px); }
.dv-motion html.js .dv-roadmap-stage.is-revealed .dv-roadmap-card {
  opacity: 1;
  transform: translateX(0);
}
/* Icon stroke-draw-on: scrolly.js measures each path/circle's real
   length and sets --dv-icon-len/stroke-dasharray inline; this rule only
   owns the transition and the initial hidden (full-offset) state. */
.dv-motion .dv-roadmap-icon svg path,
.dv-motion .dv-roadmap-icon svg circle {
  transition: stroke-dashoffset 900ms var(--m-ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-roadmap-node,
  .dv-motion .dv-roadmap-node-ring,
  .dv-motion html.js .dv-roadmap-card,
  .dv-motion .dv-roadmap-icon svg path,
  .dv-motion .dv-roadmap-icon svg circle {
    transition: none; animation: none; opacity: 1; transform: none;
    stroke-dashoffset: 0 !important;
  }
  .dv-roadmap-node-ring { transform: scale(1) !important; }
}
/* Navy-band variant (AI & Enterprise Automation stepper, Private Equity 100-day priorities). */
.dv-motion .dv-roadmap-on-navy .dv-roadmap-card h3 { color: var(--white); }
.dv-motion .dv-roadmap-on-navy .dv-roadmap-card p { color: rgba(255,255,255,.82); }
.dv-motion .dv-roadmap-on-navy .dv-roadmap-icon { background: rgba(255,255,255,.14); color: var(--teal-light); }
.dv-motion .dv-roadmap-on-navy .dv-roadmap-node { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: var(--white); }
.dv-motion .dv-roadmap-on-navy .dv-roadmap-node-num { color: rgba(255,255,255,.75); }
.dv-motion html.js .dv-roadmap-on-navy .dv-roadmap-node.is-revealed { border-color: var(--teal-light); }
/* Prompt 4E, E6: the small outlined numeral at the card's top left
   (premium/Method page only) - same size pattern as the other
   .dv-X-card-trigger .dv-num instances elsewhere in the theme. */
.dv-roadmap-card-num { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); flex-shrink: 0; }

@media (max-width: 767px) {
  .dv-motion .dv-roadmap-path-wrap { left: 1.5rem; width: 2px; transform: none; }
  .dv-motion .dv-roadmap-stage,
  .dv-motion .dv-roadmap-stage:nth-child(even) {
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    padding: 6px 0;
  }
  .dv-motion .dv-roadmap-card,
  .dv-motion .dv-roadmap-stage:nth-child(even) .dv-roadmap-card {
    grid-column: 2;
    text-align: left;
  }
  .dv-motion .dv-roadmap-icon { margin-left: 0 !important; }
  /* Prompt 3E, E6: the number+icon stay adjacent on one line; the
     heading is pushed after them in flex order, so it only wraps to
     its own line when the row doesn't have room for all three - it
     still shares the first line on a wide-enough phone. */
  .dv-motion .dv-roadmap-card-title { order: 3; }
  .dv-motion .dv-roadmap-node { grid-column: 1; width: 2.5rem; height: 2.5rem; }
}

/* =========================================================
   PROMPT 2C - STEP 5: WHO WE SERVE sticky stacking deck + PHILOSOPHY
   pinned word-fill statement.
   ========================================================= */
.dv-motion .audience-deck { position: relative; }
.dv-motion .audience-card {
  position: sticky;
  top: 6rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 48px -20px rgba(16,38,62,.45);
  transform-origin: top center;
  transition: transform .3s var(--m-ease-out);
}
.dv-motion .audience-card-media { position: absolute; inset: 0; }
.dv-motion .audience-card-media img { width: 100%; height: 100%; object-fit: cover; }
.dv-motion .audience-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,38,62,.35) 0%, rgba(16,38,62,.82) 100%);
}
.dv-motion .audience-card-body { position: relative; padding: 2rem; color: var(--white); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) {
  .dv-motion .audience-card { transition: none; }
}
.dv-motion .philosophy-fill-word {
  opacity: .25;
  transition: opacity .05s linear;
}
.dv-motion .philosophy-fill-word.is-filled { opacity: 1; }
.dv-motion .philosophy-chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .philosophy-fill-word { opacity: 1 !important; }
}
