/* "What we do" motion piece: four auto-playing scenes (Advise / Prove / Build / Run). Prefix wv- */
.wv { --wv-dur: 7s; position: relative; z-index: 1; margin-top: 8px; }
.wv-stage { display: grid; background: #fff; border: 1px solid rgba(91,87,201,.08); border-radius: 32px; box-shadow: var(--soft-lg); overflow: hidden; position: relative; }
.wv-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, var(--blu-soft), transparent 70%), radial-gradient(50% 60% at 0% 100%, #F2FAF5, transparent 70%); pointer-events: none; }
.wv-scene { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 48px 52px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; position: relative; }
.wv-scene.on { opacity: 1; visibility: visible; transition: opacity .5s; }

/* caption */
.wv-num { font: 700 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blu); display: inline-flex; align-items: center; gap: 10px; }
.wv-num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(44,122,85,.14); }
.wv-cap h3 { font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--sans); letter-spacing: .01em; color: var(--ink); margin-top: 16px; }
.wv-cap h3 em { font-style: normal; color: var(--blu); }
.wv-cap p { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.wv-cap .link-arrow { margin-top: 18px; display: inline-flex; }
.wv-scene.on .wv-cap > * { animation: wv-up .6s both; }
.wv-scene.on .wv-cap > :nth-child(2) { animation-delay: .1s; }
.wv-scene.on .wv-cap > :nth-child(3) { animation-delay: .2s; }
.wv-scene.on .wv-cap > :nth-child(4) { animation-delay: .3s; }

/* visual panel */
.wv-vis { background: var(--porcelain); border: 1px solid rgba(91,87,201,.07); border-radius: 24px; padding: 22px; min-height: 300px; position: relative; font-size: 13.5px; color: var(--ink); }
.wv-vis-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 14px; }
.wv-vis-head .ms { font-size: 18px; color: var(--blu); }
.wv-vis-head small { margin-left: auto; font-weight: 500; font-size: 11px; color: #8E8CA6; }
.wv-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 16px -12px rgba(91,87,201,.5); }
.wv-row + .wv-row { margin-top: 8px; }
.wv-row .lbl { flex: 1 1 auto; min-width: 0; }
.wv-row .pill { margin-left: 0; }
.wv-meter { width: 90px; height: 6px; border-radius: 6px; background: var(--blu-soft); overflow: hidden; flex-shrink: 0; }
.wv-meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7C76E8, var(--blu)); width: var(--w); transform-origin: left; }
.wv-meter.low i { background: #E3B98F; }
.wv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wv-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--blu-line); border-radius: 999px; padding: 6px 12px 6px 8px; font-weight: 600; font-size: 12.5px; }
.wv-chip .ms { font-size: 16px; color: var(--blu); }

/* scene animations (only run on the active scene) */
.wv-scene.on .wv-a { animation: wv-up .5s both; animation-delay: var(--d, 0s); }
.wv-scene.on .wv-pop { animation: wv-pop .45s cubic-bezier(.3,1.5,.6,1) both; animation-delay: var(--d, 0s); }
.wv-scene.on .wv-meter i { animation: wv-grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes wv-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wv-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes wv-grow { from { transform: scaleX(0); } to { transform: none; } }

/* scene 2: pilot chart */
.wv-chart { position: relative; background: #fff; border-radius: 16px; padding: 14px 14px 8px; box-shadow: 0 6px 16px -12px rgba(91,87,201,.5); }
.wv-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.wv-chart .grid line { stroke: #EEEDF6; stroke-width: 1; }
.wv-chart .target { stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 5 5; }
.wv-chart .line { fill: none; stroke: var(--blu); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wv-chart .area { fill: url(#wv-area); opacity: 0; }
.wv-scene.on .wv-chart .line { animation: wv-draw 2.6s .6s cubic-bezier(.4,0,.2,1) forwards; }
.wv-scene.on .wv-chart .area { animation: wv-fade .8s 2.8s forwards; }
@keyframes wv-draw { to { stroke-dashoffset: 0; } }
@keyframes wv-fade { to { opacity: 1; } }
.wv-target-lbl { position: absolute; right: 16px; top: 44px; font-size: 11px; font-weight: 600; color: var(--mint); background: var(--mint-soft); border-radius: 999px; padding: 3px 8px; }
.wv-stamp { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 14px; border-radius: 12px; padding: 9px 14px; box-shadow: 0 12px 24px -12px rgba(44,122,85,.8); transform: rotate(-4deg); }
.wv-stamp .ms { font-size: 18px; }
.wv-scene.on .wv-stamp { animation: wv-stamp .5s 3.6s cubic-bezier(.3,1.6,.6,1) both; }
@keyframes wv-stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }

/* scene 3: systems hub */
.wv-hub { position: relative; aspect-ratio: 5 / 2.6; margin-bottom: 12px; }
.wv-hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wv-hub svg line { stroke: var(--blu-line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wv-scene.on .wv-hub svg line { animation: wv-draw .7s forwards; animation-delay: var(--d, .3s); }
.wv-node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--blu-line); border-radius: 12px; padding: 7px 11px; font-weight: 600; font-size: 12.5px; white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(91,87,201,.5); }
.wv-node .ms { font-size: 16px; color: var(--blu); }
.wv-node.core { background: var(--blu); color: #fff; border-color: var(--blu); padding: 10px 14px; font-size: 13px; box-shadow: 0 0 0 8px rgba(91,87,201,.12), 0 14px 28px -12px rgba(91,87,201,.8); }
.wv-node.core .logo-tile { width: 22px; height: 22px; font-size: 12px; border-radius: 7px; }
.wv-scene.on .wv-node { animation: wv-node .45s cubic-bezier(.3,1.5,.6,1) both; animation-delay: var(--d, 0s); }
@keyframes wv-node { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }
.wv-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--blu); box-shadow: 0 0 0 4px rgba(91,87,201,.18); opacity: 0; left: var(--x0); top: var(--y0); }
.wv-scene.on .wv-dot { animation: wv-travel 1.6s ease-in-out infinite; animation-delay: var(--d, 1.4s); }
@keyframes wv-travel { 0% { left: var(--x0); top: var(--y0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 50%; top: 50%; opacity: 0; } }
.wv-feed .wv-row { padding: 8px 12px; }
.wv-feed .ms { font-size: 18px; color: var(--mint); }

/* scene 4: governance */
.wv-checks .wv-row .ms { font-size: 20px; color: #C9C7E0; }
.wv-scene.on .wv-checks .wv-row .ms { animation: wv-tick .3s both; animation-delay: calc(var(--d, 0s) + .35s); }
@keyframes wv-tick { to { color: var(--mint); } }
.wv-hand { margin-top: 14px; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; }
.wv-hand .ms { font-size: 22px; color: #B9B5FF; }
.wv-hand b { display: block; font-size: 14px; }
.wv-hand span.s { font-size: 12px; color: #C9C7E0; }

.wv-illu { position: absolute; right: 16px; bottom: 10px; font-size: 10.5px; color: #9A98B2; }

/* control bar */
.wv-bar { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.wv-play { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--blu); cursor: pointer; position: relative; box-shadow: 0 10px 20px -10px rgba(91,87,201,.9); }
.wv-play::before, .wv-play::after { content: ""; position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 2px; background: #fff; }
.wv-play::before { left: 16px; } .wv-play::after { left: 24px; }
.wv.paused .wv-play::after { display: none; }
.wv.paused .wv-play::before { left: 17px; top: 14px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.wv-play:focus-visible, .wv-ch:focus-visible { outline: 3px solid var(--blu-line); outline-offset: 2px; }
.wv-chapters { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.wv-ch { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 600 13px/1.2 var(--sans); color: var(--muted); }
.wv-ch .track { display: block; height: 4px; border-radius: 4px; background: var(--blu-line); overflow: hidden; margin-bottom: 8px; }
.wv-ch .track i { display: block; height: 100%; width: 100%; background: var(--blu); transform: scaleX(0); transform-origin: left; }
.wv-ch.done .track i { transform: none; }
.wv-ch.on { color: var(--blu); }
.wv-ch.on .track i { animation: wv-prog var(--wv-dur) linear both; }
@keyframes wv-prog { to { transform: none; } }
.wv-ch b { font-weight: 700; color: #9A98B2; margin-right: 6px; }
.wv-ch.on b { color: var(--blu); }

.wv.paused *, .wv.paused *::before, .wv.paused *::after { animation-play-state: paused !important; }

@media (max-width: 860px) {
  .wv-scene { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 28px 22px 26px; align-content: start; }
  .wv-stage { border-radius: 26px; }
  .wv-vis { min-height: 0; padding: 16px; }
  .wv-meter { width: 60px; }
  .wv-chart svg { height: 130px; }
  .wv-node { font-size: 11px; padding: 5px 8px; }
  .wv-node .ms { display: none; }
  .wv-ch { font-size: 11.5px; }
  .wv-ch b { display: block; margin: 0 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .wv *, .wv *::before, .wv *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .wv-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wv .wv-ch.on .track i { animation-duration: var(--wv-dur) !important; } }
@media (max-width: 860px) { .wv-meter { display: none; } .wv-row .lbl { overflow-wrap: anywhere; } }
.wv-vis { padding-bottom: 30px; }

/* ── Player frame (v2): fixed frame, controls inside, big play when paused ── */
.wv-stage { aspect-ratio: 2 / 1; min-height: 520px; max-height: 640px; }
.wv-scene { padding: 36px 56px 92px; gap: 48px; }
.wv-vis { min-height: 0; }
.wv-hub { aspect-ratio: 5 / 2.1; }
.wv-feed .wv-row { padding: 7px 12px; }
.wv-feed .wv-row + .wv-row { margin-top: 6px; }
.wv-bar { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; margin: 0; gap: 16px; padding: 8px 20px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(91,87,201,.1); box-shadow: 0 12px 30px -18px rgba(91,87,201,.6); }
.wv-play { width: 40px; height: 40px; }
.wv-play::before, .wv-play::after { top: 13px; }
.wv-play::before { left: 14px; } .wv-play::after { left: 22px; }
.wv.paused .wv-play::before { left: 15px; top: 12px; }
.wv-ch { display: flex; flex-direction: column; justify-content: center; }
.wv-ch .track { margin-bottom: 6px; }
.wv-ch:hover { color: var(--blu); }
.wv-time { font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.wv-big { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; padding: 0 0 60px; cursor: pointer; background: rgba(248,247,252,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.wv.user-paused .wv-big { opacity: 1; visibility: visible; transition: opacity .3s; }
.wv-big-btn { width: 84px; height: 84px; border-radius: 50%; background: var(--blu); box-shadow: 0 0 0 12px rgba(91,87,201,.14), 0 20px 40px -14px rgba(91,87,201,.9); position: relative; transition: transform .2s; }
.wv-big-btn::before { content: ""; position: absolute; left: 33px; top: 26px; border-style: solid; border-width: 16px 0 16px 25px; border-color: transparent transparent transparent #fff; }
.wv-big:hover .wv-big-btn { transform: scale(1.06); }
.wv-big-lbl { font: 700 14px/1 var(--sans); letter-spacing: .04em; color: var(--ink); background: #fff; border-radius: 999px; padding: 9px 16px; box-shadow: var(--soft); }
@media (max-width: 1100px) { .wv-stage { aspect-ratio: auto; min-height: 0; max-height: none; } .wv-scene { padding: 32px 32px 96px; gap: 32px; } }
@media (max-width: 860px) {
  .wv-scene { padding: 26px 20px 112px; gap: 22px; }
  .wv-bar { left: 10px; right: 10px; bottom: 10px; border-radius: 22px; padding: 8px 12px 8px 8px; gap: 10px; }
  .wv-time { display: none; }
  .wv-big { padding-bottom: 90px; }
}
.wv-ch { display: block; } @media (max-width: 860px) { .wv-ch b { display: block; } }
@media (max-width: 860px) {
  .wv-cap p, .wv-cap .link-arrow { display: none; }
  .wv-cap h3 { font-size: 24px; margin-top: 10px; }
  .wv-scene { gap: 16px; padding: 22px 16px 104px; }
  .wv-vis { padding: 14px 14px 28px; }
  .wv-chips { margin-bottom: 10px; }
  .wv-row { padding: 8px 10px; }
}

/* ── Story player ("Why a consultancy that builds") ── */
.wv-chapters.c5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.wv-tag { position: absolute; top: 18px; right: 20px; z-index: 3; font: 600 11px/1 var(--sans); letter-spacing: .06em; color: #85480F; background: #FBEFE2; border-radius: 999px; padding: 6px 10px; }
.wv-persona { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wv-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #E3A07A, #C9715A); flex-shrink: 0; }
.wv-avatar.s { background: var(--blu); }
.wv-persona b { display: block; font-size: 14px; }
.wv-persona span.s2 { font-size: 12px; color: var(--muted); }
.wv-mail { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 24px -16px rgba(91,87,201,.6); }
.wv-mail .from { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wv-mail .from .ms { font-size: 16px; color: var(--blu); }
.wv-mail .from time { margin-left: auto; }
.wv-mail h5 { font: 700 16px/1.3 var(--sans); margin-top: 8px; color: var(--ink); }
.wv-mail p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.wv-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; }
.wv-scene.on .wv-type { animation: wv-typing 1.6s steps(40, end) forwards; animation-delay: var(--d, 1s); }
@keyframes wv-typing { to { max-width: 100%; } }
.wv-firms { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.wv-firm { background: #fff; border-radius: 14px; padding: 12px; text-align: center; font-weight: 600; font-size: 12.5px; box-shadow: 0 6px 16px -12px rgba(91,87,201,.5); }
.wv-firm .ms { display: block; margin: 0 auto 6px; font-size: 22px; color: var(--blu); }
.wv-firm small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }
.wv-gap { position: relative; width: 70px; height: 40px; }
.wv-gap::before, .wv-gap::after { content: ""; position: absolute; top: 50%; height: 0; border-top: 2px dashed #E3B98F; width: 26px; }
.wv-gap::before { left: 0; } .wv-gap::after { right: 0; }
.wv-gap i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #FBEFE2; color: #85480F; font: 700 13px/22px var(--sans); text-align: center; font-style: normal; }
.wv-scene.on .wv-gap i { animation: wv-wobble 1.2s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes wv-wobble { 0%,100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-12deg); } 75% { transform: translate(-50%, -50%) rotate(12deg); } }
.wv-budget { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.wv-budget .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--blu-soft); position: relative; overflow: visible; }
.wv-budget .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; width: 100%; background: linear-gradient(90deg, #7C76E8 0 70%, #E3B98F 70%); transform-origin: left; transform: scaleX(.3); }
.wv-budget .bar em { position: absolute; left: 70%; top: -5px; bottom: -5px; border-left: 2px solid var(--ink); }
.wv-scene.on .wv-budget .bar i { animation: wv-overrun 3s 2.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes wv-overrun { to { transform: scaleX(1); } }
.wv-budget .pct { color: #85480F; min-width: 42px; text-align: right; }
.wv-when { font-size: 11.5px; font-weight: 700; color: var(--blu); min-width: 62px; }
@media (max-width: 860px) { .wv-tag { top: 12px; right: 12px; } .wv-firms { gap: 6px; } .wv-gap { width: 44px; } .wv-gap::before, .wv-gap::after { width: 12px; } }
.wv-firms { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.wv-firm { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 860px) {
  .wv-stage:has(.wv-tag) .wv-scene { padding-top: 50px; }
  .wv-tag { left: 16px; right: auto; top: 16px; }
  .wv-firm { font-size: 11.5px; padding: 10px 8px; }
  .wv .wv-ch > .lang-en, .wv .wv-ch > .lang-de { display: none; }
  .wv-ch b { font-size: 12px; }
  .wv-chapters { gap: 8px; }
}
